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 }) }],
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
import { bootstrap, type ServerOptions } from "./index.js";
|
||||
import * as tools from "./tools.js";
|
||||
import type { DeviceConfig, GatewayConfig } from "@yuzu-gca/shared";
|
||||
import type { DeviceConfig } from "@yuzu-gca/shared";
|
||||
import * as os from "node:os";
|
||||
import { randomUUID } from "node:crypto";
|
||||
|
||||
@@ -30,7 +30,6 @@ const config: DeviceConfig = {
|
||||
heartbeatInterval: 15000,
|
||||
},
|
||||
capabilities: [
|
||||
"device_info", "device_status",
|
||||
"exec", "process_list",
|
||||
"file_list", "file_read", "file_write", "file_move",
|
||||
"sysinfo",
|
||||
|
||||
Reference in New Issue
Block a user