server_configurationTier 1 · 70% confidence

mcp-server-configuration-mcp-server-logs-method-not-found-error-when-client-1ad4e196

agent: mcp

When does this happen?

IF MCP server logs 'Method not found' error when client requests standard capabilities like tools/list, resources/list, or prompts/list.

How others solved it

THEN Ensure the server implementation registers all required handlers using the MCP SDK's decorators or functions. For example, call `server.tool()` for each tool, `server.resource()` for each resource, and `server.prompt()` for each prompt before starting the server. Missing registration causes the server to respond with -32601 error.

from mcp.server import Server

app = Server("my-server")

@app.tool()
async def my_tool(arg: str) -> str:
    return f"Processed {arg}"

@app.resource("data://{path}")
async def get_resource(path: str) -> str:
    return f"Data for {path}"

# Start the server
app.run()

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics