@ldraney/github-mcp 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +131 -0
- package/dist/auth/local-server.d.ts +16 -0
- package/dist/auth/local-server.js +146 -0
- package/dist/auth/oauth-device-flow.d.ts +20 -0
- package/dist/auth/oauth-device-flow.d.ts.map +1 -0
- package/dist/auth/oauth-device-flow.js +141 -0
- package/dist/auth/oauth-device-flow.js.map +1 -0
- package/dist/auth/oauth-flow.d.ts +20 -0
- package/dist/auth/oauth-flow.js +95 -0
- package/dist/auth/token-storage.d.ts +16 -0
- package/dist/auth/token-storage.d.ts.map +1 -0
- package/dist/auth/token-storage.js +33 -0
- package/dist/auth/token-storage.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +85 -0
- package/dist/index.js.map +1 -0
- package/dist/resources/webhooks.d.ts +15 -0
- package/dist/resources/webhooks.d.ts.map +1 -0
- package/dist/resources/webhooks.js +194 -0
- package/dist/resources/webhooks.js.map +1 -0
- package/dist/server.d.ts +4 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +247 -0
- package/dist/server.js.map +1 -0
- package/dist/tools/categories/actions.d.ts +5 -0
- package/dist/tools/categories/actions.d.ts.map +1 -0
- package/dist/tools/categories/actions.js +395 -0
- package/dist/tools/categories/actions.js.map +1 -0
- package/dist/tools/categories/gists.d.ts +5 -0
- package/dist/tools/categories/gists.d.ts.map +1 -0
- package/dist/tools/categories/gists.js +315 -0
- package/dist/tools/categories/gists.js.map +1 -0
- package/dist/tools/categories/issues.d.ts +5 -0
- package/dist/tools/categories/issues.d.ts.map +1 -0
- package/dist/tools/categories/issues.js +425 -0
- package/dist/tools/categories/issues.js.map +1 -0
- package/dist/tools/categories/orgs.d.ts +5 -0
- package/dist/tools/categories/orgs.d.ts.map +1 -0
- package/dist/tools/categories/orgs.js +452 -0
- package/dist/tools/categories/orgs.js.map +1 -0
- package/dist/tools/categories/pulls.d.ts +5 -0
- package/dist/tools/categories/pulls.d.ts.map +1 -0
- package/dist/tools/categories/pulls.js +370 -0
- package/dist/tools/categories/pulls.js.map +1 -0
- package/dist/tools/categories/repos.d.ts +5 -0
- package/dist/tools/categories/repos.d.ts.map +1 -0
- package/dist/tools/categories/repos.js +392 -0
- package/dist/tools/categories/repos.js.map +1 -0
- package/dist/tools/categories/search.d.ts +5 -0
- package/dist/tools/categories/search.d.ts.map +1 -0
- package/dist/tools/categories/search.js +217 -0
- package/dist/tools/categories/search.js.map +1 -0
- package/dist/tools/categories/users.d.ts +5 -0
- package/dist/tools/categories/users.d.ts.map +1 -0
- package/dist/tools/categories/users.js +247 -0
- package/dist/tools/categories/users.js.map +1 -0
- package/dist/tools/generator.d.ts +19 -0
- package/dist/tools/generator.d.ts.map +1 -0
- package/dist/tools/generator.js +69 -0
- package/dist/tools/generator.js.map +1 -0
- package/dist/webhooks/event-queue.d.ts +54 -0
- package/dist/webhooks/event-queue.d.ts.map +1 -0
- package/dist/webhooks/event-queue.js +117 -0
- package/dist/webhooks/event-queue.js.map +1 -0
- package/dist/webhooks/smee-client.d.ts +27 -0
- package/dist/webhooks/smee-client.d.ts.map +1 -0
- package/dist/webhooks/smee-client.js +153 -0
- package/dist/webhooks/smee-client.js.map +1 -0
- package/package.json +53 -0
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
export const reposTools = [
|
|
2
|
+
{
|
|
3
|
+
name: 'github_repos_list',
|
|
4
|
+
description: 'List repositories for the authenticated user',
|
|
5
|
+
inputSchema: {
|
|
6
|
+
type: 'object',
|
|
7
|
+
properties: {
|
|
8
|
+
visibility: {
|
|
9
|
+
type: 'string',
|
|
10
|
+
enum: ['all', 'public', 'private'],
|
|
11
|
+
description: 'Filter by visibility',
|
|
12
|
+
},
|
|
13
|
+
affiliation: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
description: 'Comma-separated list: owner, collaborator, organization_member',
|
|
16
|
+
},
|
|
17
|
+
sort: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
enum: ['created', 'updated', 'pushed', 'full_name'],
|
|
20
|
+
description: 'Sort field',
|
|
21
|
+
},
|
|
22
|
+
per_page: {
|
|
23
|
+
type: 'number',
|
|
24
|
+
description: 'Results per page (max 100)',
|
|
25
|
+
},
|
|
26
|
+
page: {
|
|
27
|
+
type: 'number',
|
|
28
|
+
description: 'Page number',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'github_repos_get',
|
|
35
|
+
description: 'Get a repository by owner and repo name',
|
|
36
|
+
inputSchema: {
|
|
37
|
+
type: 'object',
|
|
38
|
+
properties: {
|
|
39
|
+
owner: { type: 'string', description: 'Repository owner' },
|
|
40
|
+
repo: { type: 'string', description: 'Repository name' },
|
|
41
|
+
},
|
|
42
|
+
required: ['owner', 'repo'],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'github_repos_create',
|
|
47
|
+
description: 'Create a new repository for the authenticated user',
|
|
48
|
+
inputSchema: {
|
|
49
|
+
type: 'object',
|
|
50
|
+
properties: {
|
|
51
|
+
name: { type: 'string', description: 'Repository name' },
|
|
52
|
+
description: { type: 'string', description: 'Repository description' },
|
|
53
|
+
private: { type: 'boolean', description: 'Whether the repo is private' },
|
|
54
|
+
auto_init: { type: 'boolean', description: 'Initialize with README' },
|
|
55
|
+
gitignore_template: { type: 'string', description: 'Gitignore template name' },
|
|
56
|
+
license_template: { type: 'string', description: 'License template name' },
|
|
57
|
+
},
|
|
58
|
+
required: ['name'],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'github_repos_delete',
|
|
63
|
+
description: 'Delete a repository (requires admin access)',
|
|
64
|
+
inputSchema: {
|
|
65
|
+
type: 'object',
|
|
66
|
+
properties: {
|
|
67
|
+
owner: { type: 'string', description: 'Repository owner' },
|
|
68
|
+
repo: { type: 'string', description: 'Repository name' },
|
|
69
|
+
},
|
|
70
|
+
required: ['owner', 'repo'],
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: 'github_repos_listForUser',
|
|
75
|
+
description: 'List public repositories for a user',
|
|
76
|
+
inputSchema: {
|
|
77
|
+
type: 'object',
|
|
78
|
+
properties: {
|
|
79
|
+
username: { type: 'string', description: 'GitHub username' },
|
|
80
|
+
type: {
|
|
81
|
+
type: 'string',
|
|
82
|
+
enum: ['all', 'owner', 'member'],
|
|
83
|
+
description: 'Type of repos to list',
|
|
84
|
+
},
|
|
85
|
+
sort: {
|
|
86
|
+
type: 'string',
|
|
87
|
+
enum: ['created', 'updated', 'pushed', 'full_name'],
|
|
88
|
+
},
|
|
89
|
+
per_page: { type: 'number' },
|
|
90
|
+
page: { type: 'number' },
|
|
91
|
+
},
|
|
92
|
+
required: ['username'],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: 'github_repos_listForOrg',
|
|
97
|
+
description: 'List repositories for an organization',
|
|
98
|
+
inputSchema: {
|
|
99
|
+
type: 'object',
|
|
100
|
+
properties: {
|
|
101
|
+
org: { type: 'string', description: 'Organization name' },
|
|
102
|
+
type: {
|
|
103
|
+
type: 'string',
|
|
104
|
+
enum: ['all', 'public', 'private', 'forks', 'sources', 'member'],
|
|
105
|
+
},
|
|
106
|
+
sort: {
|
|
107
|
+
type: 'string',
|
|
108
|
+
enum: ['created', 'updated', 'pushed', 'full_name'],
|
|
109
|
+
},
|
|
110
|
+
per_page: { type: 'number' },
|
|
111
|
+
page: { type: 'number' },
|
|
112
|
+
},
|
|
113
|
+
required: ['org'],
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: 'github_repos_fork',
|
|
118
|
+
description: 'Fork a repository',
|
|
119
|
+
inputSchema: {
|
|
120
|
+
type: 'object',
|
|
121
|
+
properties: {
|
|
122
|
+
owner: { type: 'string', description: 'Repository owner' },
|
|
123
|
+
repo: { type: 'string', description: 'Repository name' },
|
|
124
|
+
organization: { type: 'string', description: 'Fork to this organization' },
|
|
125
|
+
name: { type: 'string', description: 'New name for the fork' },
|
|
126
|
+
},
|
|
127
|
+
required: ['owner', 'repo'],
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: 'github_repos_listBranches',
|
|
132
|
+
description: 'List branches for a repository',
|
|
133
|
+
inputSchema: {
|
|
134
|
+
type: 'object',
|
|
135
|
+
properties: {
|
|
136
|
+
owner: { type: 'string', description: 'Repository owner' },
|
|
137
|
+
repo: { type: 'string', description: 'Repository name' },
|
|
138
|
+
protected: { type: 'boolean', description: 'Only protected branches' },
|
|
139
|
+
per_page: { type: 'number' },
|
|
140
|
+
page: { type: 'number' },
|
|
141
|
+
},
|
|
142
|
+
required: ['owner', 'repo'],
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: 'github_repos_getBranch',
|
|
147
|
+
description: 'Get a specific branch',
|
|
148
|
+
inputSchema: {
|
|
149
|
+
type: 'object',
|
|
150
|
+
properties: {
|
|
151
|
+
owner: { type: 'string', description: 'Repository owner' },
|
|
152
|
+
repo: { type: 'string', description: 'Repository name' },
|
|
153
|
+
branch: { type: 'string', description: 'Branch name' },
|
|
154
|
+
},
|
|
155
|
+
required: ['owner', 'repo', 'branch'],
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: 'github_repos_getContent',
|
|
160
|
+
description: 'Get repository content (files or directories)',
|
|
161
|
+
inputSchema: {
|
|
162
|
+
type: 'object',
|
|
163
|
+
properties: {
|
|
164
|
+
owner: { type: 'string', description: 'Repository owner' },
|
|
165
|
+
repo: { type: 'string', description: 'Repository name' },
|
|
166
|
+
path: { type: 'string', description: 'Path to file or directory' },
|
|
167
|
+
ref: { type: 'string', description: 'Branch, tag, or commit SHA' },
|
|
168
|
+
},
|
|
169
|
+
required: ['owner', 'repo', 'path'],
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: 'github_repos_createOrUpdateFileContents',
|
|
174
|
+
description: 'Create or update a file in a repository',
|
|
175
|
+
inputSchema: {
|
|
176
|
+
type: 'object',
|
|
177
|
+
properties: {
|
|
178
|
+
owner: { type: 'string', description: 'Repository owner' },
|
|
179
|
+
repo: { type: 'string', description: 'Repository name' },
|
|
180
|
+
path: { type: 'string', description: 'Path to file' },
|
|
181
|
+
message: { type: 'string', description: 'Commit message' },
|
|
182
|
+
content: { type: 'string', description: 'Base64 encoded file content' },
|
|
183
|
+
sha: { type: 'string', description: 'SHA of file being replaced (for updates)' },
|
|
184
|
+
branch: { type: 'string', description: 'Branch name' },
|
|
185
|
+
},
|
|
186
|
+
required: ['owner', 'repo', 'path', 'message', 'content'],
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
name: 'github_repos_listCommits',
|
|
191
|
+
description: 'List commits for a repository',
|
|
192
|
+
inputSchema: {
|
|
193
|
+
type: 'object',
|
|
194
|
+
properties: {
|
|
195
|
+
owner: { type: 'string', description: 'Repository owner' },
|
|
196
|
+
repo: { type: 'string', description: 'Repository name' },
|
|
197
|
+
sha: { type: 'string', description: 'Branch or commit SHA to start from' },
|
|
198
|
+
path: { type: 'string', description: 'Only commits containing this file path' },
|
|
199
|
+
author: { type: 'string', description: 'GitHub username or email' },
|
|
200
|
+
since: { type: 'string', description: 'ISO 8601 date' },
|
|
201
|
+
until: { type: 'string', description: 'ISO 8601 date' },
|
|
202
|
+
per_page: { type: 'number' },
|
|
203
|
+
page: { type: 'number' },
|
|
204
|
+
},
|
|
205
|
+
required: ['owner', 'repo'],
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: 'github_repos_getCommit',
|
|
210
|
+
description: 'Get a specific commit',
|
|
211
|
+
inputSchema: {
|
|
212
|
+
type: 'object',
|
|
213
|
+
properties: {
|
|
214
|
+
owner: { type: 'string', description: 'Repository owner' },
|
|
215
|
+
repo: { type: 'string', description: 'Repository name' },
|
|
216
|
+
ref: { type: 'string', description: 'Commit SHA or branch name' },
|
|
217
|
+
},
|
|
218
|
+
required: ['owner', 'repo', 'ref'],
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
name: 'github_repos_compareCommits',
|
|
223
|
+
description: 'Compare two commits',
|
|
224
|
+
inputSchema: {
|
|
225
|
+
type: 'object',
|
|
226
|
+
properties: {
|
|
227
|
+
owner: { type: 'string', description: 'Repository owner' },
|
|
228
|
+
repo: { type: 'string', description: 'Repository name' },
|
|
229
|
+
basehead: { type: 'string', description: 'Base and head in format base...head' },
|
|
230
|
+
},
|
|
231
|
+
required: ['owner', 'repo', 'basehead'],
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
name: 'github_repos_listContributors',
|
|
236
|
+
description: 'List repository contributors',
|
|
237
|
+
inputSchema: {
|
|
238
|
+
type: 'object',
|
|
239
|
+
properties: {
|
|
240
|
+
owner: { type: 'string', description: 'Repository owner' },
|
|
241
|
+
repo: { type: 'string', description: 'Repository name' },
|
|
242
|
+
anon: { type: 'string', description: 'Include anonymous contributors' },
|
|
243
|
+
per_page: { type: 'number' },
|
|
244
|
+
page: { type: 'number' },
|
|
245
|
+
},
|
|
246
|
+
required: ['owner', 'repo'],
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
name: 'github_repos_listTags',
|
|
251
|
+
description: 'List repository tags',
|
|
252
|
+
inputSchema: {
|
|
253
|
+
type: 'object',
|
|
254
|
+
properties: {
|
|
255
|
+
owner: { type: 'string', description: 'Repository owner' },
|
|
256
|
+
repo: { type: 'string', description: 'Repository name' },
|
|
257
|
+
per_page: { type: 'number' },
|
|
258
|
+
page: { type: 'number' },
|
|
259
|
+
},
|
|
260
|
+
required: ['owner', 'repo'],
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
name: 'github_repos_listReleases',
|
|
265
|
+
description: 'List repository releases',
|
|
266
|
+
inputSchema: {
|
|
267
|
+
type: 'object',
|
|
268
|
+
properties: {
|
|
269
|
+
owner: { type: 'string', description: 'Repository owner' },
|
|
270
|
+
repo: { type: 'string', description: 'Repository name' },
|
|
271
|
+
per_page: { type: 'number' },
|
|
272
|
+
page: { type: 'number' },
|
|
273
|
+
},
|
|
274
|
+
required: ['owner', 'repo'],
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
name: 'github_repos_getLatestRelease',
|
|
279
|
+
description: 'Get the latest release',
|
|
280
|
+
inputSchema: {
|
|
281
|
+
type: 'object',
|
|
282
|
+
properties: {
|
|
283
|
+
owner: { type: 'string', description: 'Repository owner' },
|
|
284
|
+
repo: { type: 'string', description: 'Repository name' },
|
|
285
|
+
},
|
|
286
|
+
required: ['owner', 'repo'],
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
name: 'github_repos_createRelease',
|
|
291
|
+
description: 'Create a release',
|
|
292
|
+
inputSchema: {
|
|
293
|
+
type: 'object',
|
|
294
|
+
properties: {
|
|
295
|
+
owner: { type: 'string', description: 'Repository owner' },
|
|
296
|
+
repo: { type: 'string', description: 'Repository name' },
|
|
297
|
+
tag_name: { type: 'string', description: 'Tag name for release' },
|
|
298
|
+
name: { type: 'string', description: 'Release title' },
|
|
299
|
+
body: { type: 'string', description: 'Release notes' },
|
|
300
|
+
draft: { type: 'boolean', description: 'Create as draft' },
|
|
301
|
+
prerelease: { type: 'boolean', description: 'Mark as prerelease' },
|
|
302
|
+
target_commitish: { type: 'string', description: 'Branch or commit SHA' },
|
|
303
|
+
},
|
|
304
|
+
required: ['owner', 'repo', 'tag_name'],
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
];
|
|
308
|
+
export async function handleReposTool(octokit, args) {
|
|
309
|
+
// Extract tool name from the call context
|
|
310
|
+
// This is a simplified handler - in practice, you'd want to route based on tool name
|
|
311
|
+
// For list (authenticated user's repos)
|
|
312
|
+
if ('visibility' in args || ('affiliation' in args && !('username' in args) && !('org' in args))) {
|
|
313
|
+
const { data } = await octokit.repos.listForAuthenticatedUser(args);
|
|
314
|
+
return data;
|
|
315
|
+
}
|
|
316
|
+
// For listForUser
|
|
317
|
+
if ('username' in args && !('owner' in args)) {
|
|
318
|
+
const { data } = await octokit.repos.listForUser(args);
|
|
319
|
+
return data;
|
|
320
|
+
}
|
|
321
|
+
// For listForOrg
|
|
322
|
+
if ('org' in args && !('owner' in args)) {
|
|
323
|
+
const { data } = await octokit.repos.listForOrg(args);
|
|
324
|
+
return data;
|
|
325
|
+
}
|
|
326
|
+
// For get
|
|
327
|
+
if ('owner' in args && 'repo' in args && !('name' in args) && !('path' in args) && !('branch' in args) && !('ref' in args) && !('tag_name' in args) && !('basehead' in args)) {
|
|
328
|
+
const { data } = await octokit.repos.get(args);
|
|
329
|
+
return data;
|
|
330
|
+
}
|
|
331
|
+
// For create
|
|
332
|
+
if ('name' in args && !('owner' in args)) {
|
|
333
|
+
const { data } = await octokit.repos.createForAuthenticatedUser(args);
|
|
334
|
+
return data;
|
|
335
|
+
}
|
|
336
|
+
// For fork
|
|
337
|
+
if ('owner' in args && 'repo' in args && ('organization' in args || Object.keys(args).length === 2)) {
|
|
338
|
+
const { data } = await octokit.repos.createFork(args);
|
|
339
|
+
return data;
|
|
340
|
+
}
|
|
341
|
+
// For branches
|
|
342
|
+
if ('owner' in args && 'repo' in args && 'branch' in args) {
|
|
343
|
+
const { data } = await octokit.repos.getBranch(args);
|
|
344
|
+
return data;
|
|
345
|
+
}
|
|
346
|
+
if ('owner' in args && 'repo' in args && 'protected' in args) {
|
|
347
|
+
const { data } = await octokit.repos.listBranches(args);
|
|
348
|
+
return data;
|
|
349
|
+
}
|
|
350
|
+
// For content
|
|
351
|
+
if ('owner' in args && 'repo' in args && 'path' in args && !('message' in args)) {
|
|
352
|
+
const { data } = await octokit.repos.getContent(args);
|
|
353
|
+
return data;
|
|
354
|
+
}
|
|
355
|
+
// For create/update file
|
|
356
|
+
if ('owner' in args && 'repo' in args && 'path' in args && 'message' in args && 'content' in args) {
|
|
357
|
+
const { data } = await octokit.repos.createOrUpdateFileContents(args);
|
|
358
|
+
return data;
|
|
359
|
+
}
|
|
360
|
+
// For commits
|
|
361
|
+
if ('owner' in args && 'repo' in args && 'ref' in args && !('basehead' in args)) {
|
|
362
|
+
const { data } = await octokit.repos.getCommit(args);
|
|
363
|
+
return data;
|
|
364
|
+
}
|
|
365
|
+
if ('owner' in args && 'repo' in args && 'basehead' in args) {
|
|
366
|
+
const { data } = await octokit.repos.compareCommits(args);
|
|
367
|
+
return data;
|
|
368
|
+
}
|
|
369
|
+
if ('owner' in args && 'repo' in args && ('sha' in args || 'author' in args || 'since' in args || 'until' in args)) {
|
|
370
|
+
const { data } = await octokit.repos.listCommits(args);
|
|
371
|
+
return data;
|
|
372
|
+
}
|
|
373
|
+
// For contributors
|
|
374
|
+
if ('owner' in args && 'repo' in args && 'anon' in args) {
|
|
375
|
+
const { data } = await octokit.repos.listContributors(args);
|
|
376
|
+
return data;
|
|
377
|
+
}
|
|
378
|
+
// For releases
|
|
379
|
+
if ('owner' in args && 'repo' in args && 'tag_name' in args) {
|
|
380
|
+
const { data } = await octokit.repos.createRelease(args);
|
|
381
|
+
return data;
|
|
382
|
+
}
|
|
383
|
+
// For tags
|
|
384
|
+
if ('owner' in args && 'repo' in args) {
|
|
385
|
+
const { data } = await octokit.repos.listTags(args);
|
|
386
|
+
return data;
|
|
387
|
+
}
|
|
388
|
+
// Default: list for authenticated user
|
|
389
|
+
const { data } = await octokit.repos.listForAuthenticatedUser();
|
|
390
|
+
return data;
|
|
391
|
+
}
|
|
392
|
+
//# sourceMappingURL=repos.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repos.js","sourceRoot":"","sources":["../../../src/tools/categories/repos.ts"],"names":[],"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
|
3
|
+
export declare const searchTools: Tool[];
|
|
4
|
+
export declare function handleSearchTool(octokit: Octokit, args: Record<string, unknown>): Promise<unknown>;
|
|
5
|
+
//# sourceMappingURL=search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/tools/categories/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAE1D,eAAO,MAAM,WAAW,EAAE,IAAI,EAoK7B,CAAC;AAEF,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CAAC,OAAO,CAAC,CA+DlB"}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
export const searchTools = [
|
|
2
|
+
{
|
|
3
|
+
name: 'github_search_repos',
|
|
4
|
+
description: 'Search repositories',
|
|
5
|
+
inputSchema: {
|
|
6
|
+
type: 'object',
|
|
7
|
+
properties: {
|
|
8
|
+
q: {
|
|
9
|
+
type: 'string',
|
|
10
|
+
description: 'Search query. Use qualifiers like language:javascript, stars:>1000, user:username',
|
|
11
|
+
},
|
|
12
|
+
sort: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
enum: ['stars', 'forks', 'help-wanted-issues', 'updated'],
|
|
15
|
+
description: 'Sort field',
|
|
16
|
+
},
|
|
17
|
+
order: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
enum: ['asc', 'desc'],
|
|
20
|
+
},
|
|
21
|
+
per_page: { type: 'number' },
|
|
22
|
+
page: { type: 'number' },
|
|
23
|
+
},
|
|
24
|
+
required: ['q'],
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'github_search_code',
|
|
29
|
+
description: 'Search code in repositories',
|
|
30
|
+
inputSchema: {
|
|
31
|
+
type: 'object',
|
|
32
|
+
properties: {
|
|
33
|
+
q: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
description: 'Search query. Use qualifiers like repo:owner/name, language:python, extension:py',
|
|
36
|
+
},
|
|
37
|
+
sort: {
|
|
38
|
+
type: 'string',
|
|
39
|
+
enum: ['indexed'],
|
|
40
|
+
description: 'Sort field',
|
|
41
|
+
},
|
|
42
|
+
order: {
|
|
43
|
+
type: 'string',
|
|
44
|
+
enum: ['asc', 'desc'],
|
|
45
|
+
},
|
|
46
|
+
per_page: { type: 'number' },
|
|
47
|
+
page: { type: 'number' },
|
|
48
|
+
},
|
|
49
|
+
required: ['q'],
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'github_search_issues',
|
|
54
|
+
description: 'Search issues and pull requests',
|
|
55
|
+
inputSchema: {
|
|
56
|
+
type: 'object',
|
|
57
|
+
properties: {
|
|
58
|
+
q: {
|
|
59
|
+
type: 'string',
|
|
60
|
+
description: 'Search query. Use qualifiers like repo:owner/name, is:issue, is:pr, state:open, label:bug',
|
|
61
|
+
},
|
|
62
|
+
sort: {
|
|
63
|
+
type: 'string',
|
|
64
|
+
enum: ['comments', 'reactions', 'reactions-+1', 'reactions--1', 'reactions-smile', 'reactions-thinking_face', 'reactions-heart', 'reactions-tada', 'interactions', 'created', 'updated'],
|
|
65
|
+
},
|
|
66
|
+
order: {
|
|
67
|
+
type: 'string',
|
|
68
|
+
enum: ['asc', 'desc'],
|
|
69
|
+
},
|
|
70
|
+
per_page: { type: 'number' },
|
|
71
|
+
page: { type: 'number' },
|
|
72
|
+
},
|
|
73
|
+
required: ['q'],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'github_search_users',
|
|
78
|
+
description: 'Search users',
|
|
79
|
+
inputSchema: {
|
|
80
|
+
type: 'object',
|
|
81
|
+
properties: {
|
|
82
|
+
q: {
|
|
83
|
+
type: 'string',
|
|
84
|
+
description: 'Search query. Use qualifiers like type:user, type:org, location:city, followers:>100',
|
|
85
|
+
},
|
|
86
|
+
sort: {
|
|
87
|
+
type: 'string',
|
|
88
|
+
enum: ['followers', 'repositories', 'joined'],
|
|
89
|
+
},
|
|
90
|
+
order: {
|
|
91
|
+
type: 'string',
|
|
92
|
+
enum: ['asc', 'desc'],
|
|
93
|
+
},
|
|
94
|
+
per_page: { type: 'number' },
|
|
95
|
+
page: { type: 'number' },
|
|
96
|
+
},
|
|
97
|
+
required: ['q'],
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'github_search_commits',
|
|
102
|
+
description: 'Search commits',
|
|
103
|
+
inputSchema: {
|
|
104
|
+
type: 'object',
|
|
105
|
+
properties: {
|
|
106
|
+
q: {
|
|
107
|
+
type: 'string',
|
|
108
|
+
description: 'Search query. Use qualifiers like repo:owner/name, author:username, committer:username',
|
|
109
|
+
},
|
|
110
|
+
sort: {
|
|
111
|
+
type: 'string',
|
|
112
|
+
enum: ['author-date', 'committer-date'],
|
|
113
|
+
},
|
|
114
|
+
order: {
|
|
115
|
+
type: 'string',
|
|
116
|
+
enum: ['asc', 'desc'],
|
|
117
|
+
},
|
|
118
|
+
per_page: { type: 'number' },
|
|
119
|
+
page: { type: 'number' },
|
|
120
|
+
},
|
|
121
|
+
required: ['q'],
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: 'github_search_topics',
|
|
126
|
+
description: 'Search topics',
|
|
127
|
+
inputSchema: {
|
|
128
|
+
type: 'object',
|
|
129
|
+
properties: {
|
|
130
|
+
q: {
|
|
131
|
+
type: 'string',
|
|
132
|
+
description: 'Search query for topics',
|
|
133
|
+
},
|
|
134
|
+
per_page: { type: 'number' },
|
|
135
|
+
page: { type: 'number' },
|
|
136
|
+
},
|
|
137
|
+
required: ['q'],
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: 'github_search_labels',
|
|
142
|
+
description: 'Search labels in a repository',
|
|
143
|
+
inputSchema: {
|
|
144
|
+
type: 'object',
|
|
145
|
+
properties: {
|
|
146
|
+
repository_id: { type: 'number', description: 'Repository ID to search in' },
|
|
147
|
+
q: {
|
|
148
|
+
type: 'string',
|
|
149
|
+
description: 'Search query for labels',
|
|
150
|
+
},
|
|
151
|
+
sort: {
|
|
152
|
+
type: 'string',
|
|
153
|
+
enum: ['created', 'updated'],
|
|
154
|
+
},
|
|
155
|
+
order: {
|
|
156
|
+
type: 'string',
|
|
157
|
+
enum: ['asc', 'desc'],
|
|
158
|
+
},
|
|
159
|
+
per_page: { type: 'number' },
|
|
160
|
+
page: { type: 'number' },
|
|
161
|
+
},
|
|
162
|
+
required: ['repository_id', 'q'],
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
];
|
|
166
|
+
export async function handleSearchTool(octokit, args) {
|
|
167
|
+
const q = args.q;
|
|
168
|
+
// Determine search type based on args or query content
|
|
169
|
+
if ('repository_id' in args) {
|
|
170
|
+
const { data } = await octokit.search.labels(args);
|
|
171
|
+
return data;
|
|
172
|
+
}
|
|
173
|
+
// Check for type hints in the query or sort field
|
|
174
|
+
const sort = args.sort;
|
|
175
|
+
if (sort === 'indexed') {
|
|
176
|
+
const { data } = await octokit.search.code(args);
|
|
177
|
+
return data;
|
|
178
|
+
}
|
|
179
|
+
if (sort === 'author-date' || sort === 'committer-date') {
|
|
180
|
+
const { data } = await octokit.search.commits(args);
|
|
181
|
+
return data;
|
|
182
|
+
}
|
|
183
|
+
if (sort === 'followers' || sort === 'repositories' || sort === 'joined') {
|
|
184
|
+
const { data } = await octokit.search.users(args);
|
|
185
|
+
return data;
|
|
186
|
+
}
|
|
187
|
+
if (sort === 'comments' || sort === 'reactions' || sort === 'interactions' || sort?.startsWith('reactions-')) {
|
|
188
|
+
const { data } = await octokit.search.issuesAndPullRequests(args);
|
|
189
|
+
return data;
|
|
190
|
+
}
|
|
191
|
+
if (sort === 'stars' || sort === 'forks' || sort === 'help-wanted-issues' || sort === 'updated') {
|
|
192
|
+
const { data } = await octokit.search.repos(args);
|
|
193
|
+
return data;
|
|
194
|
+
}
|
|
195
|
+
// Check query content for hints
|
|
196
|
+
const lowerQ = q.toLowerCase();
|
|
197
|
+
if (lowerQ.includes('is:issue') || lowerQ.includes('is:pr') || lowerQ.includes('is:open') || lowerQ.includes('is:closed') || lowerQ.includes('label:')) {
|
|
198
|
+
const { data } = await octokit.search.issuesAndPullRequests(args);
|
|
199
|
+
return data;
|
|
200
|
+
}
|
|
201
|
+
if (lowerQ.includes('type:user') || lowerQ.includes('type:org') || lowerQ.includes('followers:') || lowerQ.includes('location:')) {
|
|
202
|
+
const { data } = await octokit.search.users(args);
|
|
203
|
+
return data;
|
|
204
|
+
}
|
|
205
|
+
if (lowerQ.includes('author:') || lowerQ.includes('committer:') || lowerQ.includes('author-date:') || lowerQ.includes('committer-date:')) {
|
|
206
|
+
const { data } = await octokit.search.commits(args);
|
|
207
|
+
return data;
|
|
208
|
+
}
|
|
209
|
+
if (lowerQ.includes('extension:') || lowerQ.includes('filename:') || lowerQ.includes('path:') || (lowerQ.includes('repo:') && !lowerQ.includes('is:'))) {
|
|
210
|
+
const { data } = await octokit.search.code(args);
|
|
211
|
+
return data;
|
|
212
|
+
}
|
|
213
|
+
// Default: search repos
|
|
214
|
+
const { data } = await octokit.search.repos(args);
|
|
215
|
+
return data;
|
|
216
|
+
}
|
|
217
|
+
//# sourceMappingURL=search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/tools/categories/search.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,WAAW,GAAW;IACjC;QACE,IAAI,EAAE,qBAAqB;QAC3B,WAAW,EAAE,qBAAqB;QAClC,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,CAAC,EAAE;oBACD,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,mFAAmF;i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AC,iBAAiB,CAAC,EAAE,CAAC;QACzI,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,IAAoD,CAAC,CAAC;QACpG,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;QACvJ,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,IAAiD,CAAC,CAAC;QAC9F,OAAO,IAAI,CAAC;IACd,CAAC;IAED,wBAAwB;IACxB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAkD,CAAC,CAAC;IAChG,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Octokit } from '@octokit/rest';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
export declare const usersTools: Tool[];
|
|
4
|
+
export declare function handleUsersTool(octokit: Octokit, args: Record<string, unknown>): Promise<unknown>;
|
|
5
|
+
//# sourceMappingURL=users.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/tools/categories/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAE1D,eAAO,MAAM,UAAU,EAAE,IAAI,EA8L5B,CAAC;AAEF,wBAAsB,eAAe,CACnC,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CAAC,OAAO,CAAC,CA8DlB"}
|