fix: 补全 MCP 快速选择并重新打包

This commit is contained in:
shiyue
2026-08-21 11:23:32 +08:00
parent 19c1601351
commit d234189a86
9 changed files with 292 additions and 13 deletions

View File

@@ -1111,6 +1111,47 @@ function handleRequest(message) {
send({ id, result: { reloaded: true, reloadCount: mcpReloadCount } });
return;
}
if (method === 'mcpServerStatus/list') {
const thread = ensureThread(params.threadId, params);
send({
id,
result: {
data: [
{
name: 'reg-app-project',
authStatus: 'unsupported',
resources: [],
resourceTemplates: [],
serverInfo: { name: 'reg-app-project', version: '1.0.0' },
tools: {
reg_app_inspect: {
name: 'reg_app_inspect',
description: 'Regression App MCP tool.',
inputSchema: { type: 'object' },
},
},
},
{
name: 'reg-runtime-only',
authStatus: 'unsupported',
resources: [],
resourceTemplates: [],
serverInfo: { name: 'reg-runtime-only', version: '1.0.0' },
tools: {
'mcp__reg-runtime-only__search': {
name: 'mcp__reg-runtime-only__search',
description: 'Runtime-only MCP tool.',
inputSchema: { type: 'object' },
},
},
},
],
nextCursor: null,
threadId: thread.id,
},
});
return;
}
if (method === 'thread/start') {
const thread = ensureThread(null, params);
thread.lastThreadConfigMethod = 'thread/start';