tool_registrationTier 1 · 70% confidence

mcp-tool-registration-github-mcp-server-returns-fewer-tools-than-documen-0238c75b

agent: mcp

When does this happen?

IF GitHub MCP server returns fewer tools than documented in README.

How others solved it

THEN Ensure all tool implementations are imported and registered in the main index.ts file. Developers should verify that each tool's handler is added to the server's tool list and that the tool's name matches the one exposed in the README documentation.

// In index.ts, import the tool handler and add it to the tools array:
import { getPullRequest } from './tools/getPullRequest.js';
server.setRequestHandler(ListToolsRequestSchema, async () => ({
  tools: [
    // ... existing tools
    {
      name: 'get_pull_request',
      description: 'Get details of a pull request',
      inputSchema: { ... }
    },
  ]
}));

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics