fix: wrap tools/list response in {tools: [...]} per MCP spec
This commit is contained in:
+1
-1
@@ -175,7 +175,7 @@ impl McpServer {
|
|||||||
McpResponse {
|
McpResponse {
|
||||||
jsonrpc: "2.0".to_string(),
|
jsonrpc: "2.0".to_string(),
|
||||||
id: request.id,
|
id: request.id,
|
||||||
result: Some(crate::tools::get_tools_list()),
|
result: Some(json!({"tools": crate::tools::get_tools_list()})),
|
||||||
error: None,
|
error: None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user