Skip to content

[MCP Bundle] Add Events support #832

@EdouardCourty

Description

@EdouardCourty

The MCP Bundle could benefit from events being fired in some cases. (For example: an exception being thrown during the execution of a tool).
Like KernelEvents on a classic Symfony project, I think it could be very useful to have MCP-specific events.

I was thinking of firing an event when :

  • A client connects
  • Before and after when a capability is used (resource, tool, prompt)
  • When a response is sent back to the client

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    MCP BundleIssues & PRs about the MCP SDK integration bundleRFCRFC = Request For Comments (proposals about features that you want to be discussed)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions