Skip to content

[DOCS] Drop GET /v1/mcp/tools, /v1/mcp/health and SDK list_tools - removed upstream #775

Closed

Description

Summary

The REST tool-listing surface was removed upstream, but the docs still present it as available. Gateway v0.56.1 dropped GET /v1/mcp/tools: the route is gone from cmd/gateway/main.go and ListToolsResponse / MCPTool are gone from openapi.yaml, so the request now falls through to the 404 NoRoute handler. The same schemas v0.34.2 sync removed the listing method from every SDK: Python list_tools (python-sdk v0.21.0), TypeScript listTools (typescript-sdk v0.25.1), Go ListTools (sdk v1.40.1) and Rust list_tools (rust-sdk v0.27.1). Tool discovery now goes through tools/list on POST /mcp, which the SDKs expose as mcp_jsonrpc / mcpJsonRpc / MCPJSONRPC / mcp_json_rpc, each with a protected-resource-metadata getter.

Two related MCP claims have no code behind them either. GET /v1/mcp/health was never a gateway route, since cmd/gateway/main.go registers no /v1/mcp/* routes. The mcp_* metric names in mcp.md are never emitted. MCP tool calls are recorded as inference_gateway_tool_calls_total (gen_ai_tool_type=mcp) and gen_ai_execute_tool_duration_seconds in internal/platform/otel/otel.go.

Acceptance Criteria

  • api-reference.md "MCP status endpoints": remove GET /v1/mcp/tools (removed in gateway v0.56.1, now 404) and GET /v1/mcp/health (never registered in cmd/gateway/main.go); point tool discovery at tools/list on POST /mcp and health probes at GET /health
  • api-reference.md "MCP Tool Schemas": remove ListToolsResponse and MCPTool, which no longer exist in the gateway openapi.yaml
  • mcp.md: remove the "Check MCP Server Health" section (GET /v1/mcp/health), the note that the legacy GET /v1/mcp/tools listing "is being removed" (it is gone), and the curl http://localhost:8080/v1/mcp/health line under Troubleshooting > Health Checks
  • mcp.md "Metrics": replace mcp_requests_total, mcp_request_duration and mcp_tool_calls_total (never emitted) with the series the gateway records for MCP tool calls: inference_gateway_tool_calls_total with gen_ai_tool_type=mcp, and gen_ai_execute_tool_duration_seconds (as listed in observability.md)
  • sdks.md "Picking an SDK": the sentence "The SDKs expose list_tools for discovery" and the MCP_EXPOSE "listing endpoint" note are outdated; no SDK ships a listing method any more, and discovery goes through tools/list on POST /mcp
  • sdks.md Python "Models, tools, and health": drop list_tools and its example (removed in python-sdk v0.21.0); cover mcp_jsonrpc and get_mcp_protected_resource_metadata instead
  • sdks.md TypeScript "Models, tools, and health": drop listTools and its example (removed in typescript-sdk v0.25.1); cover mcpJsonRpc and getMCPProtectedResourceMetadata instead
  • sdks.md Go "Models, tools, and health": drop ListTools, the "/mcp/tools endpoint" sentence and the example call (removed in sdk v1.40.1); cover MCPJSONRPC and GetMCPProtectedResourceMetadata instead
  • sdks.md Rust "Models, tools, and health": drop list_tools and ListToolsResponse from the prose, the imports and the example (removed in rust-sdk v0.27.1); cover mcp_json_rpc and mcp_protected_resource_metadata instead

Activity

  1. added
    documentation
    on Sep 25, 2026
  2. edenreich commented on Sep 25, 2026

    @edenreich
    Contributor

    @claude Can you work on this?

  3. inference-gateway-maintainer commented on Sep 25, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 6m 6s —— View job • docs/issue-775-20260925-2134 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-775-20260925-2134?quick_pull=1&title=Issue%20%23775%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23775%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Done - PR #783

    • Gather context (read api-reference.md, mcp.md, sdks.md)
    • api-reference.md: dropped GET /v1/mcp/tools + GET /v1/mcp/health; the section now states no /v1/mcp/* routes are registered and points discovery at tools/list on POST /mcp, probes at GET /health
    • api-reference.md: removed the whole "MCP Tool Schemas" section (ListToolsResponse, MCPTool) and the dangling #listtoolsresponse link
    • mcp.md: removed "Check MCP Server Health", the "is being removed" note, and the /v1/mcp/health curl under Troubleshooting > Health Checks
    • mcp.md: Metrics now lists inference_gateway_tool_calls_total (gen_ai_tool_type=mcp) and gen_ai_execute_tool_duration_seconds, linking Observability
    • sdks.md: "Picking an SDK" prose fixed; the capability row is now "MCP JSON-RPC client"
    • sdks.md: Python / TypeScript / Go / Rust sections cover mcp_jsonrpc / mcpJsonRpc / MCPJSONRPC / mcp_json_rpc plus each protected-resource-metadata getter
    • Validate: lint:md, format:check, bun test (12 pass), build - all green

    Notes

    • I checked every new example against the current SDK sources rather than guessing: Python mcp_jsonrpc(method, params, request_id, client_info), the TS SchemaMcpjsonrpcRequest envelope, Go's sdk.NewMCPJSONRPCRequest + sdk.ToolsList/sdk.ToolsCall, and Rust's McpjsonrpcRequest::tools_list/tools_call constructors. result is an untyped JSON object in all four, so the examples narrow it explicitly instead of pretending there is a typed tools field.
    • Two small extras beyond the acceptance criteria, both in the same spirit: mcp_errors_total was dropped alongside the other three mcp_* names (equally never emitted), and the capability matrix row "MCP tools (list)" was renamed, since it asserted the same removed feature.
    • The GET /health response in api-reference.md is a bare 200 OK with no dependency detail, so I did not claim it reports per-MCP-server health.

    Tracked on the Roadmap 2026 board, Status = QA.
    | branch

  4. inference-gateway-releaser commented on Sep 26, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.17 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions