MCP
The Laravel SDK has no MCP code of its own. An agent working in your project (Claude Code, Cursor and similar) reaches the platform through the FlowCatalyst MCP server, which exposes the platform’s metadata read-only: event types and their JSON Schemas, subscriptions, applications, roles and OpenAPI documents. With that, the agent can write PHP DTOs and handlers that match the real schemas.
The server is part of fcdev: fcdev mcp. Its tools and arguments are listed in
MCP tools, and what the server is in MCP server.
Install fcdev (see Install fcdev), then register it with your agent.
Claude Code:
claude mcp add flowcatalyst -- fcdev mcpOther clients (Cursor, Windsurf, Claude Desktop) take an entry in their MCP config file:
{ "mcpServers": { "flowcatalyst": { "command": "fcdev", "args": ["mcp"], "env": { "FLOWCATALYST_URL": "https://your-platform.example.com", "FLOWCATALYST_CLIENT_ID": "svc_abc123", "FLOWCATALYST_CLIENT_SECRET": "your_secret" } } }}By default the server speaks MCP over stdio. fcdev mcp --http 127.0.0.1:8090 listens for the
streamable-HTTP transport instead, at /mcp.
Credentials
Section titled “Credentials”The server resolves its settings in this order: the flags --platform-url, --client-id and
--client-secret, then the environment (FLOWCATALYST_URL, FLOWCATALYST_CLIENT_ID,
FLOWCATALYST_CLIENT_SECRET), then the credentials file that fcdev writes for local development
(mcp-credentials.json in the user cache directory, or the path in FC_MCP_CREDENTIALS_PATH). It
authenticates with the client-credentials grant, and every tool issues GET requests as that service
account, so the agent can read only what the account may read.
Create a service account for the agent with read-only roles, and do not reuse the application’s runtime credentials.
What the agent can do
Section titled “What the agent can do”Start with whoami to learn the identity and accessible clients, then the list_* and get_* tools
for event types, subscriptions, applications and roles; get_schema returns an event type’s JSON
Schema, and get_application_capabilities bundles an application’s OpenAPI document, roles and
current event types. Nothing the server offers writes to the platform, so definitions still reach the
platform through your normal sync.