fix: Add support for tools/list method to resolve MCP scanning issue
This commit is contained in:
parent
c1a0164d78
commit
3c902e350b
|
@ -161,7 +161,13 @@ export class StreamableHttpTransport implements MCPTransport {
|
|||
id: req.body.id
|
||||
});
|
||||
|
||||
case 'tools/list':
|
||||
// New MCP method name format
|
||||
result = { tools: toolList };
|
||||
break;
|
||||
|
||||
case 'list_tools':
|
||||
// Legacy method name for backward compatibility
|
||||
result = { tools: toolList };
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue