^0.4): Tight coupling to an external, evolving protocol. Monitor SDK updates for breaking changes.HttpFoundation, Routing). Non-Symfony PHP apps would require significant adaptation.^0.4); ensure runtime alignment.FrameworkBundle, HttpFoundation, and Console components.^0.4 is a floating constraint; pin to a specific patch version (e.g., 0.4.1) to avoid surprises.php-http/discovery) for transport configuration.composer require ajtis/mcp-bundle
mcp/sdk is installed (transitive dependency).config/packages/mcp.yaml (see Symfony docs).mcp:
server:
transport: http
tools:
- '@app.tool.my_tool'
symfony console mcp:server:run.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| MCP SDK Breaking Change | Bundle incompatibility | Pin SDK version; monitor MCP release notes; have fallback tools/prompts. |
| Symfony AI Discontinuation | No updates/support | Fork bundle or migrate to direct SDK usage. |
| HTTP Transport Failures | Agentic workflows stall | Implement retries with exponential backoff; circuit breakers. |
| STDIO Transport Crashes | Agent processes die | Use process managers (e.g., Supervisor) with auto-restart. |
| Resource Template Unavailability | Missing functionality | Delay implementation until SDK supports it; use workarounds. |
| High Latency | Poor user/agent experience | Optimize tool/prompt logic; consider edge caching. |
How can I help you explore Laravel packages today?