From cbc34a12c9f0f96c3b89cbbaac34365120357ecc Mon Sep 17 00:00:00 2001 From: matevip Date: Sat, 2 May 2026 15:41:53 +0800 Subject: [PATCH] docs(mcp): align /tools javadoc with HTTP 200 + biz-code convention --- .../mcp/controller/McpServerController.java | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) 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")