fix: 补全 MCP 快速选择并重新打包
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user