Skip to content

[Server] Prepare server for integrated events #169

@EdouardCourty

Description

@EdouardCourty

Hi!

I've been working with Symfony's integration of this SDK through symfony/mcp-bundle.

I think it lacks event support (like a ToolCallErrorEvent, ToolCallResponseEvent, ToolCallRequestEvent... you get the point).

These events would greatly improve observability on the MCP servers, for example to have custom logging or logic triggered by the developers who use the MCP Server.

Of course, I thought about implementing this only on the Symfony bundle's side, but then I thought it could be great for the official SDK to have support for a callback logic when something happens; making it easier for implementations of the SDK to introduce events in their ecosystem (EventDispatcher with Symfony as an example).

Is this something that can we want to do on the SDK's side?

I would be willing to provide an implementation if this issue would be validated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ServerIssues & PRs related to the Server component

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions