Workflow Gate
Workflow Gate lets the Symfony Workflow of a business object decide which tools an AI agent has. An unpaid order has no ship_order tool; when the payment arrives from outside, the tool appears, in a Symfony AI agent and live in a running MCP session (Claude Code gets tools/list_changed from another PHP process). You mark a transition in workflow.yaml and it becomes a tool: no tool classes, and workflow guards become agent policy. Every call is checked by the workflow again, so a stale client is refused. It uses the Symfony AI Agent and Toolbox with a custom ToolboxInterface, the PHP MCP SDK registry with runtime tool registration, and the MCP bundle's subscription bus. A measurement command compares it with agents that see all tools: with the rules only in the prompt, an earlier prompt version let the agent refund 900 EUR against its rule in 1 of 5 runs, and only better wording fixed it. With the workflow in charge the order never reached a forbidden state.
Play the video on YouTube
1:30