Skip to content

Log exceptions in tool calls #3266

Description

@fabianlange

Initial Checks

Release line

2.x (current stable)

Description

Any exception while reading a resource or getting a prompt is being logged, while any exception during a tool call is not.

Example Code

Python & MCP Python SDK

Python==3.13.5
mcp==2.x (latest main)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions