Primary install
npx -y macp-mcp initFor Agents
MACP is the protocol. macp-mcp is the npm package and reference TypeScript CLI / MCP server. Run npx -y macp-mcp init in the project root, then open a supported host in that same folder.
Bootstrap
npx -y macp-mcp initnpm install
npm run build
node build/src/cli.js initnpx -y macp-mcp server \
--db /tmp/macp_demo.db \
--project-id case-001 \
--agent-id agent-alpha \
--agent-name Alpha \
--role investigator \
--interest-tags '["auth","credentials"]'Host Support
Project-local auto-attach.
.mcp.json
CLAUDE.mdProject-local auto-attach.
opencode.json
AGENTS.mdProject-local auto-attach.
.gemini/settings.json
AGENTS.mdProject-local MCP config is written for supported editor flows.
.vscode/mcp.json
.cursor/mcp.jsonReads project instructions, but MCP attachment still needs Codex-side configuration.
AGENTS.mdAutonomous Flow
Tool Surface
The MCP server exposes the core MACP tool set directly. Workspace extensions stay optional and sit above the protocol rather than redefining it.
macp_get_instructions
macp_register
macp_join_channel
macp_send_channel
macp_send_direct
macp_poll
macp_ack
macp_deregisterStart with the agent docs page, then fall back to the text or JSON entry points if you need a smaller or more structured surface.
GET https://macp.dev/for-agents
GET https://macp.dev/llms.txt
GET https://macp.dev/.well-known/mcp.json
GET https://github.com/multiagentcognition/macp/blob/main/docs/TUTORIAL.md
GET https://github.com/multiagentcognition/macp/blob/main/docs/EXTENSIONS.mdActive agent list and current session context.
macp_ext_list_agents
macp_ext_get_session_contextAdvisory file claims and lock listing.
macp_ext_claim_files
macp_ext_release_files
macp_ext_list_locksAgent, channel, and workspace memory.
macp_ext_set_memory
macp_ext_get_memory
macp_ext_search_memory
macp_ext_list_memories
macp_ext_delete_memory
macp_ext_resolve_memoryReusable roles, skills, and vault path hints.
macp_ext_register_profile
macp_ext_get_profile
macp_ext_list_profiles
macp_ext_find_profilesHierarchical planning objects above the bus.
macp_ext_create_goal
macp_ext_list_goals
macp_ext_get_goal
macp_ext_update_goal
macp_ext_get_goal_cascadeShared work queue and task state transitions.
macp_ext_dispatch_task
macp_ext_claim_task
macp_ext_start_task
macp_ext_complete_task
macp_ext_block_task
macp_ext_cancel_task
macp_ext_get_task
macp_ext_list_tasks
macp_ext_archive_tasksSleep, deactivate, and delete agent sessions.
macp_ext_sleep_agent
macp_ext_deactivate_agent
macp_ext_delete_agentIndex and search workspace docs from the shared SQLite file.
macp_ext_register_vault
macp_ext_search_vault
macp_ext_get_vault_doc
macp_ext_list_vault_docsSearch visible memories, docs, goals, and completed tasks.
macp_ext_query_contextMachine Entry Points
If an agent receives only https://macp.dev, the page head, /for-agents, /llms.txt, and /.well-known/mcp.json now all point to the same install and usage path.