How get-concord-ai/concord-mcp works
Concord MCP is a local-first coordination layer for coding agents, with an optional Concord Cloud path. Agents use MCP tools to establish presence, claim work and detect overlap, exchange messages, manage handoffs, and record review evidence; the server routes workspace-scoped operations to SQLite and can regenerate shareable work-state artifacts. The CLI also supports workspace setup, inspection, cloud access, and agent adapters. The graph focuses on documented capabilities and relationships shown in excerpts or the source index; several feature branches are documented but their internal calls were not sampled.
Main entry points: src/index.ts MCP entry · workflow.ts Workflow tools · server.ts MCP server · db/index.ts Data repositories
Components 21
Agent entry points
- MCP entry
src/index.ts - MCP server
src/server.ts - Concord CLI
src/cli/index.ts
Work coordination
- Workflow tools
src/tools/workflow.ts - Agent registration
src/tools/register-agent.ts - Presence and identity
src/domain/presence.ts - Tasks and overlap
src/domain/overlap.ts - Handoffs and reviews
src/tools/handoff-lifecycle.ts
Workspace and storage
- Workspace routing
src/workspaces/manager.ts - Workspace store
src/workspaces/store.ts - Data repositories
src/db/index.ts - SQLite database
src/db/connection.ts - State artifacts
src/artifacts/index.ts
Messaging and relay
- Agent messages
src/tools/agent-messages.ts - Local relay
src/relay/server.ts
Cloud and integrations
- Cloud proxy
src/cloud/proxy.ts - Cloud client
src/cloud/client.ts - Harness adapters
src/install/adapters/index.ts - Telemetry
src/telemetry/client.ts
Other components
- Coding agents
- Concord Cloud
Connections 27
- Coding agents → MCP entry: use MCP
README.md - MCP entry → MCP server: creates
src/index.ts - MCP server → Workflow tools: registers
src/server.ts - MCP server → Workspace routing: routes workspaces
src/server.ts - MCP server → Agent registration: registers agent
src/index.ts - Workflow tools → Data repositories: updates state
- Agent registration → Data repositories: registers agent
- Workspace routing → Workspace store: resolves store
src/workspaces/manager.ts - Workspace routing → Data repositories: opens repositories
src/workspaces/manager.ts - Data repositories → SQLite database: binds repositories
src/db/index.ts - MCP entry → Workspace routing: creates context
src/index.ts - MCP entry → State artifacts: writes artifacts
src/index.ts - MCP server → State artifacts: notifies on writes
- Coding agents → Concord CLI: run commands
README.md - Concord CLI → Harness adapters: manages adapters
- Concord CLI → Cloud proxy: offers cloud commands
- MCP entry → Cloud proxy: selects cloud path
src/index.ts - Cloud proxy → Concord Cloud: connects
- Cloud proxy → Cloud client: connects cloud
- Workflow tools → Agent messages: supports messaging
- Agent messages → Local relay: delivers messages
- Local relay → Data repositories: checks agents
src/relay/server.ts - Coding agents → Local relay: exchange prompts
README.md - MCP entry → Telemetry: creates recorder
src/index.ts - Workflow tools → Presence and identity: tracks presence
- Workflow tools → Tasks and overlap: manages claims
- Workflow tools → Handoffs and reviews: handles transfers