Repository navigation
Expand file tree
/
Copy pathweavetab.json
More file actions
334 lines (334 loc) · 9.74 KB
/
Copy pathweavetab.json
File metadata and controls
334 lines (334 loc) · 9.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
{
"$schema": "https://weavetab.dev/schema/plugin.json",
"name": "@weavetab/plugin-github",
"displayName": "GitHub",
"version": "1.3.0",
"description": "Official Weavetab GitHub plugin — modular repository analysis, raw source reads, issues, pull requests, raw diffs, CLI commands, and active-tab DOM inspection without burning browser turns or API quota.",
"entry": "dist/index.js",
"agentsMd": "AGENTS.md",
"author": {
"name": "Weavetab",
"url": "https://weavetab.dev",
"role": "Core Team"
},
"license": "MIT",
"homepage": "https://github.com/Weavetab/plugin-github",
"repository": "https://github.com/Weavetab/plugin-github",
"engines": {
"weavetab": "^2.6.2",
"node": ">=18.0.0"
},
"environments": [
"mcp",
"cli",
"browser"
],
"keywords": [
"weavetab",
"weavetab-plugin",
"weavetab-official",
"mcp",
"github",
"repository",
"issues",
"pull-requests"
],
"defaultConfig": {
"cacheTtlMs": 1800000,
"maxReadLines": 200,
"defaultIssueLimit": 5
},
"permissions": {
"config": {
"read": true,
"write": true,
"reason": "Read and persist isolated plugin settings."
},
"cdp": {
"evaluate": true,
"reason": "Reads URL and DOM on github.com without navigating or mutating."
},
"network": {
"domains": [
"api.github.com",
"raw.githubusercontent.com",
"github.com"
],
"reason": "Fetches repository metadata, issues, PRs, raw files, and diffs from GitHub."
},
"tools": {
"add": true,
"reason": "Registers the 6 modular github_* MCP tools."
},
"commands": {
"add": true,
"reason": "Registers repo-summary and pr-diff CLI commands."
},
"prompts": {
"add": true,
"reason": "Registers /pr-review prompt utility."
},
"resources": {
"add": true,
"reason": "Registers @github://ratelimit resource utility."
}
},
"tools": [
{
"name": "github_analyze",
"description": "High-level repository reconnaissance: metadata, default branch, recursive file tree, and README preview. Results are cached in isolated storage.",
"inputSchema": {
"type": "object",
"properties": {
"repo": {
"type": "string",
"description": "Repository in 'owner/repo' format or GitHub URL (inferred from active tab if omitted)."
}
}
}
},
{
"name": "github_read",
"description": "Fetch raw file contents from raw.githubusercontent.com with zero REST API quota consumption.",
"inputSchema": {
"type": "object",
"properties": {
"repo": {
"type": "string",
"description": "Repository in 'owner/repo' format or GitHub URL."
},
"paths": {
"type": "array",
"items": { "type": "string" },
"description": "File paths relative to repository root."
},
"branch": {
"type": "string",
"description": "Target branch or tag (defaults to cached default branch or 'main')."
},
"line_range": {
"type": "array",
"items": { "type": "number" },
"description": "Optional [start, end] 1-indexed line slice."
}
}
}
},
{
"name": "github_issues",
"description": "Inspect a single issue with comments or list/search repository issues.",
"inputSchema": {
"type": "object",
"properties": {
"repo": {
"type": "string",
"description": "Repository in 'owner/repo' format or GitHub URL."
},
"number": {
"type": "number",
"description": "Specific issue number to fetch with timeline comments."
},
"search": {
"type": "string",
"description": "Search query string for repository issues."
},
"labels": {
"type": "array",
"items": { "type": "string" },
"description": "Filter by label names."
},
"state": {
"type": "string",
"enum": ["open", "closed", "all"],
"description": "Issue state filter."
},
"limit": {
"type": "number",
"description": "Max issues to return (default 5)."
}
}
}
},
{
"name": "github_pull_request",
"description": "Inspect a pull request (changed files, diff stats, comments) or list recent pull requests.",
"inputSchema": {
"type": "object",
"properties": {
"repo": {
"type": "string",
"description": "Repository in 'owner/repo' format or GitHub URL."
},
"number": {
"type": "number",
"description": "Specific pull request number."
},
"state": {
"type": "string",
"enum": ["open", "closed", "all"],
"description": "PR state filter."
},
"limit": {
"type": "number",
"description": "Max PRs to return when listing (default 10)."
}
}
}
},
{
"name": "github_diff",
"description": "Fetch raw unified diffs or git patches directly from github.com with zero REST API quota usage.",
"inputSchema": {
"type": "object",
"properties": {
"repo": {
"type": "string",
"description": "Repository in 'owner/repo' format or GitHub URL."
},
"pull_number": {
"type": "number",
"description": "Pull request number to fetch diff for."
},
"commit_sha": {
"type": "string",
"description": "Commit SHA to fetch diff for."
},
"base": {
"type": "string",
"description": "Base branch or commit for compare diff."
},
"head": {
"type": "string",
"description": "Head branch or commit for compare diff."
},
"format": {
"type": "string",
"enum": ["diff", "patch"],
"description": "Output format: 'diff' or 'patch'."
}
}
}
},
{
"name": "github_active_tab",
"description": "Extract structured repository, PR, issue, or blob state from the active github.com browser tab via local CDP.",
"inputSchema": {
"type": "object",
"properties": {
"scope": {
"type": "string",
"enum": ["auto", "summary", "files", "comments", "raw"],
"description": "Extraction scope."
}
}
}
}
],
"commands": [
{
"name": "repo-summary",
"description": "Fetch repository metadata, default branch, file tree, and README snippet via CLI.",
"usage": "weavetab plugin use github repo-summary --repo <owner/repo>",
"options": [
{
"name": "repo",
"type": "string",
"description": "Repository in 'owner/repo' format or full GitHub URL",
"required": true
}
]
},
{
"name": "pr-diff",
"description": "Fetch unified diff and stats for a pull request directly from GitHub without API quota.",
"usage": "weavetab plugin use github pr-diff --repo <owner/repo> --pull_number <n>",
"options": [
{
"name": "repo",
"type": "string",
"description": "Repository in 'owner/repo' format",
"required": true
},
{
"name": "pull_number",
"type": "number",
"description": "Pull request number",
"required": true
}
]
},
{
"name": "issue-search",
"description": "Search open or closed repository issues by keyword directly via CLI.",
"usage": "weavetab plugin use github issue-search --repo <owner/repo> --query <text>",
"options": [
{
"name": "repo",
"type": "string",
"description": "Repository in 'owner/repo' format",
"required": true
},
{
"name": "query",
"type": "string",
"description": "Keywords to search",
"required": true
},
{
"name": "limit",
"type": "number",
"description": "Max issues to return (default 5)",
"required": false
}
]
}
],
"prompts": [
{
"name": "pr-review",
"description": "Structured pull request review prompt for security, performance, and regression analysis.",
"arguments": [
{
"name": "repo",
"description": "Repository in owner/repo format",
"required": true
},
{
"name": "pr",
"description": "Pull request number",
"required": true
}
]
},
{
"name": "issue-triage",
"description": "Structured issue triage prompt to diagnose root cause and plan implementation.",
"arguments": [
{
"name": "repo",
"description": "Repository in owner/repo format",
"required": true
},
{
"name": "issue",
"description": "Issue number",
"required": true
}
]
}
],
"resources": [
{
"name": "github-ratelimit",
"uri": "github://ratelimit",
"description": "Current GitHub REST API rate-limit budget and quota status.",
"mimeType": "application/json"
},
{
"name": "github-context",
"uri": "github://context",
"description": "Active tab GitHub DOM context (current repository, branch, open PR, or issue metadata).",
"mimeType": "application/json"
}
]
}