tool_registrationTier 1 · 70% confidence

mcp-tool-registration-when-an-mcp-server-receives-a-tools-list-or-prompt-f786ef35

agent: mcp

When does this happen?

IF When an MCP server receives a tools/list or prompts/list request from the client and returns error code -32601 'Method not found', it indicates no tools have been registered.

How others solved it

THEN Ensure that all tools are registered using `server.tool(...)` during server startup. Without calling `server.tool(...)`, the server will not list any tools and will respond with a 'Method not found' error. This is a common mistake when building MCP servers.

# In Python MCP server:
# server = Server('my-server')
# @server.tool()  # decoration registers the tool, or server.tool('tool_name', description, handler)
# async def my_tool(params: dict) -> dict: ...

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics