diff --git a/mateclaw-server/src/main/java/vip/mate/tool/mcp/controller/McpServerController.java b/mateclaw-server/src/main/java/vip/mate/tool/mcp/controller/McpServerController.java index 8ac4db2e..fef5937f 100644 --- a/mateclaw-server/src/main/java/vip/mate/tool/mcp/controller/McpServerController.java +++ b/mateclaw-server/src/main/java/vip/mate/tool/mcp/controller/McpServerController.java @@ -82,10 +82,21 @@ public class McpServerController { * RFC-03 Lane A3 — list the tools surfaced by an MCP server (QwenPaw #2495). * *

Reads from the in-memory cache populated on connect/refresh, so the - * call is non-blocking and safe to poll from the admin UI. Returns an - * empty list when the server is configured but disconnected, in error - * state, or has no tools — never an error response in that case. - * 404 is reserved for "the server id doesn't exist". + * call is non-blocking and safe to poll from the admin UI. + * + *

Response contract (matches project convention "HTTP 200 + biz code"): + *

*/ @Operation(summary = "列出 MCP Server 已发现的工具") @GetMapping("/{id}/tools")