You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Replace --agent-managed flag with --discovery in cmd-mcp.ts
- Remove index_repo and delete_index tool handlers from mcp-server.ts
- Delete layered-store.ts and layered-store.test.ts files
- Keep list_indexes in both modes
- Use withListIndexesReference() in discovery mode, withIndexList() in fixed mode
- Update MCPServerConfig to use discovery flag instead of agentManaged
- All tests pass, build succeeds
Agent-Id: agent-84f44748-891f-477f-b3f3-c078cb5bd2c5
@@ -195,71 +195,6 @@ export async function createMCPServer(
195
195
},
196
196
];
197
197
198
-
// Add index_repo if store supports write operations
199
-
if('save'inconfig.store){
200
-
tools.push({
201
-
name: "index_repo",
202
-
description: "Create or update an index from a repository. This may take 30+ seconds for large repos. The index will be available for search, list_files, and read_file after creation.",
203
-
inputSchema: {
204
-
type: "object",
205
-
properties: {
206
-
name: {
207
-
type: "string",
208
-
description: "Unique name for this index (e.g., 'pytorch', 'my-lib')"
209
-
},
210
-
source_type: {
211
-
type: "string",
212
-
enum: ["github","gitlab","bitbucket","website"],
213
-
description: "Type of source to index"
214
-
},
215
-
owner: {
216
-
type: "string",
217
-
description: "GitHub repository owner (required for github)"
218
-
},
219
-
repo: {
220
-
type: "string",
221
-
description: "Repository name (required for github, bitbucket)"
222
-
},
223
-
project_id: {
224
-
type: "string",
225
-
description: "GitLab project ID or path (required for gitlab)"
226
-
},
227
-
workspace: {
228
-
type: "string",
229
-
description: "BitBucket workspace slug (required for bitbucket)"
230
-
},
231
-
url: {
232
-
type: "string",
233
-
description: "URL to crawl (required for website)"
234
-
},
235
-
ref: {
236
-
type: "string",
237
-
description: "Branch, tag, or commit (default: HEAD)"
238
-
},
239
-
},
240
-
required: ["name","source_type"],
241
-
},
242
-
});
243
-
}
244
-
245
-
// Add delete_index if store supports it
246
-
if('delete'inconfig.store){
247
-
tools.push({
248
-
name: "delete_index",
249
-
description: "Delete an index by name. This removes the index from storage and it will no longer be available for search.",
250
-
inputSchema: {
251
-
type: "object",
252
-
properties: {
253
-
name: {
254
-
type: "string",
255
-
description: "Name of the index to delete",
256
-
},
257
-
},
258
-
required: ["name"],
259
-
},
260
-
});
261
-
}
262
-
263
198
// Only advertise file tools if not in search-only mode
264
199
if(!searchOnly){
265
200
tools.push(
@@ -272,7 +207,7 @@ export async function createMCPServer(
0 commit comments