Mcp · AgentFlow CLI
Serveur MCP local
CLI path: agentflow mcp
When to use
Use mcp serve whenever an IDE expects a bundled Model Context Protocol stdio shim that mirrors .agentflow configuration.
Original CLI synopsis: Serveur MCP local
Usage
agentflow mcp [flags]Options
| Flag | Scope | Default | Description |
|---|---|---|---|
--dry-run | Inherited | false | Simuler les exécutions sans lancer d'agent ni commandes externes |
Examples
agentflow mcpWire richer samples through cobra.Command.Example when the happy path warrants copy/paste-friendly automation beyond this scaffold.
What happens internally
- Validates configuration guards before multiplexing MCP stdio traffic through internal/mcp adapters rooted at the resolved repository path.
Failure modes
- Cobra rejects unknown flags or arity mismatches before any repository side effects occur.
- AgentFlow cannot resolve scaffolding when the command is invoked outside an initialised checkout.
- Disabled MCP integrations stop early with guidance drawn from .agentflow configuration diagnostics.