fix: 审查修复 — import清理+capabilities匹配+placeholder加required

This commit is contained in:
LukeMackin
2026-07-22 17:24:08 +08:00
parent f85ce9aa43
commit 8d8d99acdd
2 changed files with 3 additions and 4 deletions

View File

@@ -44,8 +44,8 @@ export function createServer(opts: ServerOptions): McpServer {
server.tool(
toolDef.name,
toolDef.description,
toolDef.inputSchema.properties,
async () => ({
{ ...toolDef.inputSchema.properties, _required: toolDef.inputSchema.required },
async (args: any) => {
content: [{ type: "text", text: JSON.stringify({ error: "Tool not yet implemented", tool: toolDef.name }) }],
}),
);