fix(mcp-kb): Add missing /mcp/tools endpoint for tool discovery #75

Closed
opened 2026-01-03 23:57:02 +00:00 by cardosofelipe · 0 comments

Bug Description

The Knowledge Base MCP server is missing the /mcp/tools endpoint required by the backend MCP client infrastructure. Without this endpoint, the backend cannot discover available KB tools.

Expected Endpoints (per backend MCP client)

  • GET /health - Exists
  • GET /mcp/tools - Missing (this issue)
  • POST /mcp - Missing (separate issue)

Location

mcp-servers/knowledge-base/server.py

Required Implementation

@app.get("/mcp/tools")
async def list_tools():
    """Return list of available tools with their schemas."""
    return {
        "tools": [
            {
                "name": "search_knowledge",
                "description": "...",
                "inputSchema": {...}
            },
            # ... other tools
        ]
    }
  • Found during PR #72 deep review
  • Issue #57 (Knowledge Base MCP Server)
  • Companion issue for /mcp endpoint
## Bug Description The Knowledge Base MCP server is missing the `/mcp/tools` endpoint required by the backend MCP client infrastructure. Without this endpoint, the backend cannot discover available KB tools. ### Expected Endpoints (per backend MCP client) - `GET /health` - ✅ Exists - `GET /mcp/tools` - ❌ Missing (this issue) - `POST /mcp` - ❌ Missing (separate issue) ### Location `mcp-servers/knowledge-base/server.py` ### Required Implementation ```python @app.get("/mcp/tools") async def list_tools(): """Return list of available tools with their schemas.""" return { "tools": [ { "name": "search_knowledge", "description": "...", "inputSchema": {...} }, # ... other tools ] } ``` ### Related - Found during PR #72 deep review - Issue #57 (Knowledge Base MCP Server) - Companion issue for /mcp endpoint
Sign in to join this conversation.