fix: 审查修复 — import清理+capabilities匹配+placeholder加required
This commit is contained in:
@@ -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 }) }],
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user