Skip to content

How to receive notifications on mcp client side? #889

@shashisingh

Description

@shashisingh

I am trying to send few logging events to the client during a tool invocation. I am using "Context.info('Hello)" inside a mcp.tool decorated function. I am using FASTMcp for hosting tools. I was expecting to receive these notifications in my ClientSession's "_received_notification" method. But I don't seem to get this to work. I do not see that _received_notification is getting called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Significant bug affecting many users, highly requested featureenhancementRequest for a new feature that's not currently supportedimproves sdk consistencyImproves consistency with other SDKs such as Tyepscriptimproves spec complianceWhen a change improves ability of SDK users to comply with spec definitionready for workEnough information for someone to start working on

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions