octocode-mcp 7.0.11 → 7.0.12-alpha.2
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 +15 -30
- package/dist/index.js +3 -3
- package/dist/src/scheme/github_search_pull_requests.d.ts +36 -36
- package/dist/src/tools/toolMetadata.d.ts +203 -0
- package/dist/src/tools/utils.d.ts +1 -1
- package/dist/tests/tools/github_search_code.match_modes.test.d.ts +0 -4
- package/dist/tests/tools/response_structure.test.d.ts +0 -6
- package/dist/tests/utils/testHelpers.d.ts +16 -0
- package/package.json +14 -18
- package/server.json +2 -2
- package/dist/src/constants.d.ts +0 -8
- package/dist/src/scheme/schemDescriptions.d.ts +0 -180
- package/dist/src/tools/descriptions.d.ts +0 -7
- package/dist/src/tools/hints.d.ts +0 -29
|
@@ -67,23 +67,23 @@ export declare const GitHubPullRequestSearchQuerySchema: z.ZodObject<{
|
|
|
67
67
|
repo?: string | undefined;
|
|
68
68
|
sort?: "created" | "updated" | "best-match" | undefined;
|
|
69
69
|
head?: string | undefined;
|
|
70
|
-
|
|
71
|
-
'no-milestone'?: boolean | undefined;
|
|
72
|
-
'no-project'?: boolean | undefined;
|
|
73
|
-
'no-assignee'?: boolean | undefined;
|
|
74
|
-
'merged-at'?: string | undefined;
|
|
70
|
+
base?: string | undefined;
|
|
75
71
|
match?: ("title" | "body" | "comments")[] | undefined;
|
|
76
72
|
limit?: number | undefined;
|
|
77
73
|
merged?: boolean | undefined;
|
|
74
|
+
'merged-at'?: string | undefined;
|
|
78
75
|
author?: string | undefined;
|
|
79
76
|
mentions?: string | undefined;
|
|
80
77
|
commenter?: string | undefined;
|
|
81
78
|
involves?: string | undefined;
|
|
82
79
|
'reviewed-by'?: string | undefined;
|
|
83
80
|
'review-requested'?: string | undefined;
|
|
84
|
-
base?: string | undefined;
|
|
85
81
|
interactions?: string | number | undefined;
|
|
86
82
|
label?: string | string[] | undefined;
|
|
83
|
+
'no-assignee'?: boolean | undefined;
|
|
84
|
+
'no-label'?: boolean | undefined;
|
|
85
|
+
'no-milestone'?: boolean | undefined;
|
|
86
|
+
'no-project'?: boolean | undefined;
|
|
87
87
|
prNumber?: number | undefined;
|
|
88
88
|
withComments?: boolean | undefined;
|
|
89
89
|
withContent?: boolean | undefined;
|
|
@@ -104,23 +104,23 @@ export declare const GitHubPullRequestSearchQuerySchema: z.ZodObject<{
|
|
|
104
104
|
repo?: string | undefined;
|
|
105
105
|
sort?: "created" | "updated" | "best-match" | undefined;
|
|
106
106
|
head?: string | undefined;
|
|
107
|
-
|
|
108
|
-
'no-milestone'?: boolean | undefined;
|
|
109
|
-
'no-project'?: boolean | undefined;
|
|
110
|
-
'no-assignee'?: boolean | undefined;
|
|
111
|
-
'merged-at'?: string | undefined;
|
|
107
|
+
base?: string | undefined;
|
|
112
108
|
match?: ("title" | "body" | "comments")[] | undefined;
|
|
113
109
|
limit?: number | undefined;
|
|
114
110
|
merged?: boolean | undefined;
|
|
111
|
+
'merged-at'?: string | undefined;
|
|
115
112
|
author?: string | undefined;
|
|
116
113
|
mentions?: string | undefined;
|
|
117
114
|
commenter?: string | undefined;
|
|
118
115
|
involves?: string | undefined;
|
|
119
116
|
'reviewed-by'?: string | undefined;
|
|
120
117
|
'review-requested'?: string | undefined;
|
|
121
|
-
base?: string | undefined;
|
|
122
118
|
interactions?: string | number | undefined;
|
|
123
119
|
label?: string | string[] | undefined;
|
|
120
|
+
'no-assignee'?: boolean | undefined;
|
|
121
|
+
'no-label'?: boolean | undefined;
|
|
122
|
+
'no-milestone'?: boolean | undefined;
|
|
123
|
+
'no-project'?: boolean | undefined;
|
|
124
124
|
order?: "asc" | "desc" | undefined;
|
|
125
125
|
prNumber?: number | undefined;
|
|
126
126
|
withComments?: boolean | undefined;
|
|
@@ -184,23 +184,23 @@ export declare const GitHubPullRequestSearchBulkQuerySchema: z.ZodObject<{
|
|
|
184
184
|
repo?: string | undefined;
|
|
185
185
|
sort?: "created" | "updated" | "best-match" | undefined;
|
|
186
186
|
head?: string | undefined;
|
|
187
|
-
|
|
188
|
-
'no-milestone'?: boolean | undefined;
|
|
189
|
-
'no-project'?: boolean | undefined;
|
|
190
|
-
'no-assignee'?: boolean | undefined;
|
|
191
|
-
'merged-at'?: string | undefined;
|
|
187
|
+
base?: string | undefined;
|
|
192
188
|
match?: ("title" | "body" | "comments")[] | undefined;
|
|
193
189
|
limit?: number | undefined;
|
|
194
190
|
merged?: boolean | undefined;
|
|
191
|
+
'merged-at'?: string | undefined;
|
|
195
192
|
author?: string | undefined;
|
|
196
193
|
mentions?: string | undefined;
|
|
197
194
|
commenter?: string | undefined;
|
|
198
195
|
involves?: string | undefined;
|
|
199
196
|
'reviewed-by'?: string | undefined;
|
|
200
197
|
'review-requested'?: string | undefined;
|
|
201
|
-
base?: string | undefined;
|
|
202
198
|
interactions?: string | number | undefined;
|
|
203
199
|
label?: string | string[] | undefined;
|
|
200
|
+
'no-assignee'?: boolean | undefined;
|
|
201
|
+
'no-label'?: boolean | undefined;
|
|
202
|
+
'no-milestone'?: boolean | undefined;
|
|
203
|
+
'no-project'?: boolean | undefined;
|
|
204
204
|
prNumber?: number | undefined;
|
|
205
205
|
withComments?: boolean | undefined;
|
|
206
206
|
withContent?: boolean | undefined;
|
|
@@ -221,23 +221,23 @@ export declare const GitHubPullRequestSearchBulkQuerySchema: z.ZodObject<{
|
|
|
221
221
|
repo?: string | undefined;
|
|
222
222
|
sort?: "created" | "updated" | "best-match" | undefined;
|
|
223
223
|
head?: string | undefined;
|
|
224
|
-
|
|
225
|
-
'no-milestone'?: boolean | undefined;
|
|
226
|
-
'no-project'?: boolean | undefined;
|
|
227
|
-
'no-assignee'?: boolean | undefined;
|
|
228
|
-
'merged-at'?: string | undefined;
|
|
224
|
+
base?: string | undefined;
|
|
229
225
|
match?: ("title" | "body" | "comments")[] | undefined;
|
|
230
226
|
limit?: number | undefined;
|
|
231
227
|
merged?: boolean | undefined;
|
|
228
|
+
'merged-at'?: string | undefined;
|
|
232
229
|
author?: string | undefined;
|
|
233
230
|
mentions?: string | undefined;
|
|
234
231
|
commenter?: string | undefined;
|
|
235
232
|
involves?: string | undefined;
|
|
236
233
|
'reviewed-by'?: string | undefined;
|
|
237
234
|
'review-requested'?: string | undefined;
|
|
238
|
-
base?: string | undefined;
|
|
239
235
|
interactions?: string | number | undefined;
|
|
240
236
|
label?: string | string[] | undefined;
|
|
237
|
+
'no-assignee'?: boolean | undefined;
|
|
238
|
+
'no-label'?: boolean | undefined;
|
|
239
|
+
'no-milestone'?: boolean | undefined;
|
|
240
|
+
'no-project'?: boolean | undefined;
|
|
241
241
|
order?: "asc" | "desc" | undefined;
|
|
242
242
|
prNumber?: number | undefined;
|
|
243
243
|
withComments?: boolean | undefined;
|
|
@@ -262,23 +262,23 @@ export declare const GitHubPullRequestSearchBulkQuerySchema: z.ZodObject<{
|
|
|
262
262
|
repo?: string | undefined;
|
|
263
263
|
sort?: "created" | "updated" | "best-match" | undefined;
|
|
264
264
|
head?: string | undefined;
|
|
265
|
-
|
|
266
|
-
'no-milestone'?: boolean | undefined;
|
|
267
|
-
'no-project'?: boolean | undefined;
|
|
268
|
-
'no-assignee'?: boolean | undefined;
|
|
269
|
-
'merged-at'?: string | undefined;
|
|
265
|
+
base?: string | undefined;
|
|
270
266
|
match?: ("title" | "body" | "comments")[] | undefined;
|
|
271
267
|
limit?: number | undefined;
|
|
272
268
|
merged?: boolean | undefined;
|
|
269
|
+
'merged-at'?: string | undefined;
|
|
273
270
|
author?: string | undefined;
|
|
274
271
|
mentions?: string | undefined;
|
|
275
272
|
commenter?: string | undefined;
|
|
276
273
|
involves?: string | undefined;
|
|
277
274
|
'reviewed-by'?: string | undefined;
|
|
278
275
|
'review-requested'?: string | undefined;
|
|
279
|
-
base?: string | undefined;
|
|
280
276
|
interactions?: string | number | undefined;
|
|
281
277
|
label?: string | string[] | undefined;
|
|
278
|
+
'no-assignee'?: boolean | undefined;
|
|
279
|
+
'no-label'?: boolean | undefined;
|
|
280
|
+
'no-milestone'?: boolean | undefined;
|
|
281
|
+
'no-project'?: boolean | undefined;
|
|
282
282
|
prNumber?: number | undefined;
|
|
283
283
|
withComments?: boolean | undefined;
|
|
284
284
|
withContent?: boolean | undefined;
|
|
@@ -301,23 +301,23 @@ export declare const GitHubPullRequestSearchBulkQuerySchema: z.ZodObject<{
|
|
|
301
301
|
repo?: string | undefined;
|
|
302
302
|
sort?: "created" | "updated" | "best-match" | undefined;
|
|
303
303
|
head?: string | undefined;
|
|
304
|
-
|
|
305
|
-
'no-milestone'?: boolean | undefined;
|
|
306
|
-
'no-project'?: boolean | undefined;
|
|
307
|
-
'no-assignee'?: boolean | undefined;
|
|
308
|
-
'merged-at'?: string | undefined;
|
|
304
|
+
base?: string | undefined;
|
|
309
305
|
match?: ("title" | "body" | "comments")[] | undefined;
|
|
310
306
|
limit?: number | undefined;
|
|
311
307
|
merged?: boolean | undefined;
|
|
308
|
+
'merged-at'?: string | undefined;
|
|
312
309
|
author?: string | undefined;
|
|
313
310
|
mentions?: string | undefined;
|
|
314
311
|
commenter?: string | undefined;
|
|
315
312
|
involves?: string | undefined;
|
|
316
313
|
'reviewed-by'?: string | undefined;
|
|
317
314
|
'review-requested'?: string | undefined;
|
|
318
|
-
base?: string | undefined;
|
|
319
315
|
interactions?: string | number | undefined;
|
|
320
316
|
label?: string | string[] | undefined;
|
|
317
|
+
'no-assignee'?: boolean | undefined;
|
|
318
|
+
'no-label'?: boolean | undefined;
|
|
319
|
+
'no-milestone'?: boolean | undefined;
|
|
320
|
+
'no-project'?: boolean | undefined;
|
|
321
321
|
order?: "asc" | "desc" | undefined;
|
|
322
322
|
prNumber?: number | undefined;
|
|
323
323
|
withComments?: boolean | undefined;
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
export interface ToolMetadata {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
schema: Record<string, string>;
|
|
5
|
+
hints: {
|
|
6
|
+
hasResults: readonly string[];
|
|
7
|
+
empty: readonly string[];
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface CompleteMetadata {
|
|
11
|
+
instructions: string;
|
|
12
|
+
toolNames: {
|
|
13
|
+
GITHUB_FETCH_CONTENT: 'githubGetFileContent';
|
|
14
|
+
GITHUB_SEARCH_CODE: 'githubSearchCode';
|
|
15
|
+
GITHUB_SEARCH_PULL_REQUESTS: 'githubSearchPullRequests';
|
|
16
|
+
GITHUB_SEARCH_REPOSITORIES: 'githubSearchRepositories';
|
|
17
|
+
GITHUB_VIEW_REPO_STRUCTURE: 'githubViewRepoStructure';
|
|
18
|
+
};
|
|
19
|
+
baseSchema: {
|
|
20
|
+
mainResearchGoal: string;
|
|
21
|
+
researchGoal: string;
|
|
22
|
+
reasoning: string;
|
|
23
|
+
bulkQuery: (toolName: string) => string;
|
|
24
|
+
};
|
|
25
|
+
tools: Record<string, ToolMetadata>;
|
|
26
|
+
baseHints: {
|
|
27
|
+
hasResults: readonly string[];
|
|
28
|
+
empty: readonly string[];
|
|
29
|
+
};
|
|
30
|
+
genericErrorHints: readonly string[];
|
|
31
|
+
}
|
|
32
|
+
export declare const INSTRUCTIONS: string;
|
|
33
|
+
export declare const TOOL_NAMES: {
|
|
34
|
+
GITHUB_FETCH_CONTENT: "githubGetFileContent";
|
|
35
|
+
GITHUB_SEARCH_CODE: "githubSearchCode";
|
|
36
|
+
GITHUB_SEARCH_PULL_REQUESTS: "githubSearchPullRequests";
|
|
37
|
+
GITHUB_SEARCH_REPOSITORIES: "githubSearchRepositories";
|
|
38
|
+
GITHUB_VIEW_REPO_STRUCTURE: "githubViewRepoStructure";
|
|
39
|
+
};
|
|
40
|
+
export type ToolName = (typeof TOOL_NAMES)[keyof typeof TOOL_NAMES];
|
|
41
|
+
export declare const BASE_SCHEMA: {
|
|
42
|
+
mainResearchGoal: string;
|
|
43
|
+
researchGoal: string;
|
|
44
|
+
reasoning: string;
|
|
45
|
+
bulkQuery: (toolName: string) => string;
|
|
46
|
+
};
|
|
47
|
+
export declare const GENERIC_ERROR_HINTS: readonly string[];
|
|
48
|
+
export declare function getCompleteMetadata(): Promise<CompleteMetadata>;
|
|
49
|
+
export declare function getToolsMetadata(): Promise<Record<string, ToolMetadata>>;
|
|
50
|
+
export declare function getToolMetadata(toolName: string): Promise<ToolMetadata | undefined>;
|
|
51
|
+
export declare function getToolDescription(toolName: string): Promise<string>;
|
|
52
|
+
export declare function getToolSchema(toolName: string): Promise<Record<string, string>>;
|
|
53
|
+
export declare function getToolHints(toolName: string, resultType: 'hasResults' | 'empty'): Promise<readonly string[]>;
|
|
54
|
+
export declare function getToolHintsSync(toolName: string, resultType: 'hasResults' | 'empty'): readonly string[];
|
|
55
|
+
export declare function getGenericErrorHints(): Promise<readonly string[]>;
|
|
56
|
+
export declare function getGenericErrorHintsSync(): readonly string[];
|
|
57
|
+
export declare function getBaseHints(): Promise<{
|
|
58
|
+
hasResults: readonly string[];
|
|
59
|
+
empty: readonly string[];
|
|
60
|
+
}>;
|
|
61
|
+
export declare function getDynamicHints(toolName: string, hintType: 'topicsHasResults' | 'topicsEmpty' | 'keywordsEmpty'): readonly string[];
|
|
62
|
+
export declare function getBulkOperationsInstructions(): {
|
|
63
|
+
base: string;
|
|
64
|
+
hasResults: string;
|
|
65
|
+
empty: string;
|
|
66
|
+
error: string;
|
|
67
|
+
};
|
|
68
|
+
export declare const DESCRIPTIONS: Record<string, string>;
|
|
69
|
+
export declare const TOOL_HINTS: Record<string, {
|
|
70
|
+
hasResults: readonly string[];
|
|
71
|
+
empty: readonly string[];
|
|
72
|
+
}> & {
|
|
73
|
+
base: {
|
|
74
|
+
hasResults: readonly string[];
|
|
75
|
+
empty: readonly string[];
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export declare const GITHUB_FETCH_CONTENT: {
|
|
79
|
+
scope: {
|
|
80
|
+
owner: string;
|
|
81
|
+
repo: string;
|
|
82
|
+
branch: string;
|
|
83
|
+
path: string;
|
|
84
|
+
};
|
|
85
|
+
processing: {
|
|
86
|
+
minified: string;
|
|
87
|
+
sanitize: string;
|
|
88
|
+
};
|
|
89
|
+
range: {
|
|
90
|
+
startLine: string;
|
|
91
|
+
endLine: string;
|
|
92
|
+
fullContent: string;
|
|
93
|
+
matchString: string;
|
|
94
|
+
matchStringContextLines: string;
|
|
95
|
+
};
|
|
96
|
+
validation: {
|
|
97
|
+
parameterConflict: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
export declare const GITHUB_SEARCH_CODE: {
|
|
101
|
+
search: {
|
|
102
|
+
keywordsToSearch: string;
|
|
103
|
+
};
|
|
104
|
+
scope: {
|
|
105
|
+
owner: string;
|
|
106
|
+
repo: string;
|
|
107
|
+
};
|
|
108
|
+
filters: {
|
|
109
|
+
extension: string;
|
|
110
|
+
stars: string;
|
|
111
|
+
filename: string;
|
|
112
|
+
path: string;
|
|
113
|
+
match: string;
|
|
114
|
+
};
|
|
115
|
+
resultLimit: {
|
|
116
|
+
limit: string;
|
|
117
|
+
};
|
|
118
|
+
processing: {
|
|
119
|
+
minify: string;
|
|
120
|
+
sanitize: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
export declare const GITHUB_SEARCH_REPOS: {
|
|
124
|
+
search: {
|
|
125
|
+
keywordsToSearch: string;
|
|
126
|
+
topicsToSearch: string;
|
|
127
|
+
};
|
|
128
|
+
scope: {
|
|
129
|
+
owner: string;
|
|
130
|
+
};
|
|
131
|
+
filters: {
|
|
132
|
+
stars: string;
|
|
133
|
+
size: string;
|
|
134
|
+
created: string;
|
|
135
|
+
updated: string;
|
|
136
|
+
match: string;
|
|
137
|
+
};
|
|
138
|
+
sorting: {
|
|
139
|
+
sort: string;
|
|
140
|
+
};
|
|
141
|
+
resultLimit: {
|
|
142
|
+
limit: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
export declare const GITHUB_SEARCH_PULL_REQUESTS: {
|
|
146
|
+
search: {
|
|
147
|
+
query: string;
|
|
148
|
+
};
|
|
149
|
+
scope: {
|
|
150
|
+
prNumber: string;
|
|
151
|
+
owner: string;
|
|
152
|
+
repo: string;
|
|
153
|
+
};
|
|
154
|
+
filters: {
|
|
155
|
+
match: string;
|
|
156
|
+
created: string;
|
|
157
|
+
updated: string;
|
|
158
|
+
state: string;
|
|
159
|
+
assignee: string;
|
|
160
|
+
author: string;
|
|
161
|
+
commenter: string;
|
|
162
|
+
involves: string;
|
|
163
|
+
mentions: string;
|
|
164
|
+
"review-requested": string;
|
|
165
|
+
"reviewed-by": string;
|
|
166
|
+
label: string;
|
|
167
|
+
"no-label": string;
|
|
168
|
+
"no-milestone": string;
|
|
169
|
+
"no-project": string;
|
|
170
|
+
"no-assignee": string;
|
|
171
|
+
head: string;
|
|
172
|
+
base: string;
|
|
173
|
+
closed: string;
|
|
174
|
+
"merged-at": string;
|
|
175
|
+
comments: string;
|
|
176
|
+
reactions: string;
|
|
177
|
+
interactions: string;
|
|
178
|
+
merged: string;
|
|
179
|
+
draft: string;
|
|
180
|
+
};
|
|
181
|
+
sorting: {
|
|
182
|
+
sort: string;
|
|
183
|
+
order: string;
|
|
184
|
+
};
|
|
185
|
+
resultLimit: {
|
|
186
|
+
limit: string;
|
|
187
|
+
};
|
|
188
|
+
outputShaping: {
|
|
189
|
+
withComments: string;
|
|
190
|
+
withContent: string;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
export declare const GITHUB_VIEW_REPO_STRUCTURE: {
|
|
194
|
+
scope: {
|
|
195
|
+
owner: string;
|
|
196
|
+
repo: string;
|
|
197
|
+
branch: string;
|
|
198
|
+
path: string;
|
|
199
|
+
};
|
|
200
|
+
range: {
|
|
201
|
+
depth: string;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GitHubAPIError } from '../github/githubAPI';
|
|
2
2
|
import type { ToolErrorResult, ToolSuccessResult } from '../types.js';
|
|
3
|
-
import { TOOL_NAMES } from '
|
|
3
|
+
import { TOOL_NAMES } from './toolMetadata.js';
|
|
4
4
|
export declare function createErrorResult(query: {
|
|
5
5
|
mainResearchGoal?: string;
|
|
6
6
|
researchGoal?: string;
|
|
@@ -18,9 +18,5 @@
|
|
|
18
18
|
* - This makes sense: you're finding files by name, not searching their content!
|
|
19
19
|
*
|
|
20
20
|
* Test Results from Actual Octocode MCP Server (Verified):
|
|
21
|
-
* ✅ match='file' searches IN file content and returns paths WITH text_matches
|
|
22
|
-
* ✅ match='path' searches in filenames/directories and returns ONLY paths (no text_matches)
|
|
23
|
-
* ✅ Multiple paths are returned when match='path' finds multiple matches
|
|
24
|
-
* ✅ Both modes work correctly in bulk operations
|
|
25
21
|
*/
|
|
26
22
|
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Test helpers for type guards and common test utilities
|
|
3
|
+
*/
|
|
4
|
+
import type { ContentBlock } from '@modelcontextprotocol/sdk/types.js';
|
|
5
|
+
/**
|
|
6
|
+
* Type guard to check if a ContentBlock is TextContent
|
|
7
|
+
*/
|
|
8
|
+
export declare function isTextContent(content: ContentBlock | undefined): content is {
|
|
9
|
+
type: 'text';
|
|
10
|
+
text: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Extracts text from a ContentBlock array, asserting it's text content
|
|
14
|
+
* @throws Error if content is not text type
|
|
15
|
+
*/
|
|
16
|
+
export declare function getTextContent(content: ContentBlock[]): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "octocode-mcp",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.12-alpha.2",
|
|
4
4
|
"description": "Model Context Protocol (MCP) server for advanced GitHub repository analysis and code discovery. Provides AI assistants with powerful tools to search, analyze, and understand codebases across GitHub.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -39,32 +39,27 @@
|
|
|
39
39
|
"octocode-mcp-beta": "dist/index.js"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
42
|
+
"@modelcontextprotocol/sdk": "^1.22.0",
|
|
43
43
|
"@octokit/core": "^7.0.6",
|
|
44
|
-
"@octokit/openapi-types": "^
|
|
45
|
-
"@octokit/plugin-rest-endpoint-methods": "^
|
|
46
|
-
"@octokit/plugin-throttling": "^11.0.
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"dotenv": "^16.4.5",
|
|
51
|
-
"express": "^4.18.2",
|
|
52
|
-
"mcp-s-oauth": "^1.0.5",
|
|
44
|
+
"@octokit/openapi-types": "^27.0.0",
|
|
45
|
+
"@octokit/plugin-rest-endpoint-methods": "^17.0.0",
|
|
46
|
+
"@octokit/plugin-throttling": "^11.0.3",
|
|
47
|
+
"axios": "^1.13.2",
|
|
48
|
+
"dotenv": "^17.2.3",
|
|
49
|
+
"express": "^5.1.0",
|
|
53
50
|
"node-cache": "^5.1.2",
|
|
54
|
-
"
|
|
55
|
-
"octocode-utils": "^5.0.0",
|
|
51
|
+
"octocode-utils": "latest",
|
|
56
52
|
"octokit": "^5.0.5",
|
|
57
53
|
"uuid": "^13.0.0",
|
|
58
|
-
"zod": "^3.
|
|
54
|
+
"zod": "^3.23.8"
|
|
59
55
|
},
|
|
60
56
|
"devDependencies": {
|
|
61
57
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
62
58
|
"@rollup/plugin-json": "^6.1.0",
|
|
63
59
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
64
60
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
65
|
-
"@types/express": "^5
|
|
61
|
+
"@types/express": "^5",
|
|
66
62
|
"@types/node": "^22.15.29",
|
|
67
|
-
"@types/uuid": "^11.0.0",
|
|
68
63
|
"eslint": "^8.57.0",
|
|
69
64
|
"eslint-config-prettier": "^10.1.5",
|
|
70
65
|
"eslint-plugin-prettier": "^5.4.1",
|
|
@@ -112,5 +107,6 @@
|
|
|
112
107
|
"type": "stdio",
|
|
113
108
|
"command": "octocode-mcp",
|
|
114
109
|
"args": []
|
|
115
|
-
}
|
|
116
|
-
|
|
110
|
+
},
|
|
111
|
+
"stableVersion": "7.0.12"
|
|
112
|
+
}
|
package/server.json
CHANGED
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
"url": "https://github.com/bgauryy/octocode-mcp",
|
|
9
9
|
"source": "github"
|
|
10
10
|
},
|
|
11
|
-
"version": "7.0.
|
|
11
|
+
"version": "7.0.12",
|
|
12
12
|
"packages": [
|
|
13
13
|
{
|
|
14
14
|
"registryType": "npm",
|
|
15
15
|
"identifier": "octocode-mcp",
|
|
16
|
-
"version": "7.0.
|
|
16
|
+
"version": "7.0.12",
|
|
17
17
|
"transport": {
|
|
18
18
|
"type": "stdio"
|
|
19
19
|
},
|
package/dist/src/constants.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const TOOL_NAMES: {
|
|
2
|
-
readonly GITHUB_FETCH_CONTENT: "githubGetFileContent";
|
|
3
|
-
readonly GITHUB_SEARCH_CODE: "githubSearchCode";
|
|
4
|
-
readonly GITHUB_SEARCH_PULL_REQUESTS: "githubSearchPullRequests";
|
|
5
|
-
readonly GITHUB_SEARCH_REPOSITORIES: "githubSearchRepositories";
|
|
6
|
-
readonly GITHUB_VIEW_REPO_STRUCTURE: "githubViewRepoStructure";
|
|
7
|
-
};
|
|
8
|
-
export type ToolName = (typeof TOOL_NAMES)[keyof typeof TOOL_NAMES];
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
export declare const COMMON: {
|
|
2
|
-
scope: {
|
|
3
|
-
owner: string;
|
|
4
|
-
repo: string;
|
|
5
|
-
branch: string;
|
|
6
|
-
path: string;
|
|
7
|
-
};
|
|
8
|
-
processing: {
|
|
9
|
-
minify: string;
|
|
10
|
-
minified: string;
|
|
11
|
-
sanitize: string;
|
|
12
|
-
};
|
|
13
|
-
filters: {
|
|
14
|
-
stars: string;
|
|
15
|
-
created: string;
|
|
16
|
-
updated: string;
|
|
17
|
-
state: string;
|
|
18
|
-
extension: string;
|
|
19
|
-
filename: string;
|
|
20
|
-
};
|
|
21
|
-
users: {
|
|
22
|
-
author: string;
|
|
23
|
-
assignee: string;
|
|
24
|
-
commenter: string;
|
|
25
|
-
involves: string;
|
|
26
|
-
mentions: string;
|
|
27
|
-
};
|
|
28
|
-
git: {
|
|
29
|
-
head: string;
|
|
30
|
-
base: string;
|
|
31
|
-
merged: string;
|
|
32
|
-
draft: string;
|
|
33
|
-
};
|
|
34
|
-
sorting: {
|
|
35
|
-
sort: string;
|
|
36
|
-
order: string;
|
|
37
|
-
};
|
|
38
|
-
resultLimit: {
|
|
39
|
-
limit: string;
|
|
40
|
-
};
|
|
41
|
-
engagement: {
|
|
42
|
-
comments: string;
|
|
43
|
-
reactions: string;
|
|
44
|
-
interactions: string;
|
|
45
|
-
};
|
|
46
|
-
dates: {
|
|
47
|
-
closed: string;
|
|
48
|
-
'merged-at': string;
|
|
49
|
-
};
|
|
50
|
-
labels: {
|
|
51
|
-
label: string;
|
|
52
|
-
'no-label': string;
|
|
53
|
-
'no-milestone': string;
|
|
54
|
-
'no-project': string;
|
|
55
|
-
'no-assignee': string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
export declare const GITHUB_SEARCH_CODE: {
|
|
59
|
-
search: {
|
|
60
|
-
keywordsToSearch: string;
|
|
61
|
-
};
|
|
62
|
-
scope: {
|
|
63
|
-
owner: string;
|
|
64
|
-
repo: string;
|
|
65
|
-
};
|
|
66
|
-
filters: {
|
|
67
|
-
extension: string;
|
|
68
|
-
stars: string;
|
|
69
|
-
filename: string;
|
|
70
|
-
path: string;
|
|
71
|
-
match: string;
|
|
72
|
-
};
|
|
73
|
-
resultLimit: {
|
|
74
|
-
limit: string;
|
|
75
|
-
};
|
|
76
|
-
processing: {
|
|
77
|
-
minify: string;
|
|
78
|
-
sanitize: string;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
export declare const GITHUB_SEARCH_REPOS: {
|
|
82
|
-
search: {
|
|
83
|
-
keywordsToSearch: string;
|
|
84
|
-
topicsToSearch: string;
|
|
85
|
-
};
|
|
86
|
-
scope: {
|
|
87
|
-
owner: string;
|
|
88
|
-
};
|
|
89
|
-
filters: {
|
|
90
|
-
stars: string;
|
|
91
|
-
size: string;
|
|
92
|
-
created: string;
|
|
93
|
-
updated: string;
|
|
94
|
-
match: string;
|
|
95
|
-
};
|
|
96
|
-
sorting: {
|
|
97
|
-
sort: string;
|
|
98
|
-
};
|
|
99
|
-
resultLimit: {
|
|
100
|
-
limit: string;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
export declare const GITHUB_SEARCH_PULL_REQUESTS: {
|
|
104
|
-
search: {
|
|
105
|
-
query: string;
|
|
106
|
-
};
|
|
107
|
-
scope: {
|
|
108
|
-
prNumber: string;
|
|
109
|
-
owner: string;
|
|
110
|
-
repo: string;
|
|
111
|
-
};
|
|
112
|
-
filters: {
|
|
113
|
-
state: string;
|
|
114
|
-
assignee: string;
|
|
115
|
-
author: string;
|
|
116
|
-
commenter: string;
|
|
117
|
-
involves: string;
|
|
118
|
-
mentions: string;
|
|
119
|
-
'review-requested': string;
|
|
120
|
-
'reviewed-by': string;
|
|
121
|
-
label: string;
|
|
122
|
-
'no-label': string;
|
|
123
|
-
'no-milestone': string;
|
|
124
|
-
'no-project': string;
|
|
125
|
-
'no-assignee': string;
|
|
126
|
-
head: string;
|
|
127
|
-
base: string;
|
|
128
|
-
created: string;
|
|
129
|
-
updated: string;
|
|
130
|
-
closed: string;
|
|
131
|
-
'merged-at': string;
|
|
132
|
-
comments: string;
|
|
133
|
-
reactions: string;
|
|
134
|
-
interactions: string;
|
|
135
|
-
merged: string;
|
|
136
|
-
draft: string;
|
|
137
|
-
match: string;
|
|
138
|
-
};
|
|
139
|
-
sorting: {
|
|
140
|
-
sort: string;
|
|
141
|
-
order: string;
|
|
142
|
-
};
|
|
143
|
-
resultLimit: {
|
|
144
|
-
limit: string;
|
|
145
|
-
};
|
|
146
|
-
outputShaping: {
|
|
147
|
-
withComments: string;
|
|
148
|
-
withContent: string;
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
export declare const GITHUB_FETCH_CONTENT: {
|
|
152
|
-
scope: {
|
|
153
|
-
owner: string;
|
|
154
|
-
repo: string;
|
|
155
|
-
branch: string;
|
|
156
|
-
path: string;
|
|
157
|
-
};
|
|
158
|
-
processing: {
|
|
159
|
-
minified: string;
|
|
160
|
-
sanitize: string;
|
|
161
|
-
};
|
|
162
|
-
range: {
|
|
163
|
-
startLine: string;
|
|
164
|
-
endLine: string;
|
|
165
|
-
fullContent: string;
|
|
166
|
-
matchString: string;
|
|
167
|
-
matchStringContextLines: string;
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
|
-
export declare const GITHUB_VIEW_REPO_STRUCTURE: {
|
|
171
|
-
scope: {
|
|
172
|
-
owner: string;
|
|
173
|
-
repo: string;
|
|
174
|
-
branch: string;
|
|
175
|
-
path: string;
|
|
176
|
-
};
|
|
177
|
-
range: {
|
|
178
|
-
depth: string;
|
|
179
|
-
};
|
|
180
|
-
};
|