|
|
@@ -20,7 +20,7 @@ class McpRpc extends API {
|
|
|
result = {
|
|
|
protocolVersion: "1.0",
|
|
|
capabilities: { "tools": {} },
|
|
|
- serverInfo: { name: "runforge-mcp", version: "1.0" }
|
|
|
+ serverInfo: { name: "runforge", version: "1.0" }
|
|
|
}
|
|
|
} else if (method === 'tools/list') {
|
|
|
result = {
|
|
|
@@ -57,14 +57,14 @@ class McpRpc extends API {
|
|
|
},
|
|
|
{
|
|
|
"name": "set_notification",
|
|
|
- "description": "消息通知设置,type参数:bot:智能机器人通知、email:邮件通知、none:关闭通知",
|
|
|
+ "description": "消息通知设置,mode参数:bot:智能机器人通知、email:邮件通知、none:关闭通知",
|
|
|
"inputSchema": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"sender": { "type": "string" },
|
|
|
- "type": { "type": "string" }
|
|
|
+ "mode": { "mode": "string" }
|
|
|
},
|
|
|
- "required": ["sender", "type"]
|
|
|
+ "required": ["sender", "mode"]
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
@@ -99,13 +99,13 @@ class McpRpc extends API {
|
|
|
// 返回标准 JSON-RPC 响应
|
|
|
return res.json({
|
|
|
jsonrpc: "2.0",
|
|
|
- id: req_id,
|
|
|
+ id: req_id ?? null,
|
|
|
result
|
|
|
})
|
|
|
} catch (e) {
|
|
|
return res.json({
|
|
|
jsonrpc: "2.0",
|
|
|
- id: req_id,
|
|
|
+ id: req_id ?? null,
|
|
|
error: { code: -32000, message: e.message }
|
|
|
})
|
|
|
}
|