MCP Server
EventSourcerer is PHP at its core, but its Model Context Protocol (MCP) server makes the same capabilities available to any language or tool. Use the MCP server to let AI agents, scripts in other ecosystems, or third-party integrations talk to your events.
Capabilities exposed
- Tools — write events, query projections, read streams, list applications.
- Resources — read-only views of events, projections and stream metadata.
- Prompts — pre-built prompts that help an LLM reason about your domain.
Starting the MCP server
bin/console app:mcp-server:start
Connecting a client
Any MCP-compatible client (Claude Desktop, your own agent, etc.) can connect over stdio or HTTP.
Once connected, the client discovers EventSourcerer's tools and can call them with structured
arguments — for example, "write an OrderPlaced event for stream order-42".
Combine the MCP server with the framework clients: agents can drive your business processes by writing events that your normal application code then consumes through projections and Messenger/queue handlers.