AgentMesh MCP
AgentMesh MCP is a local stdio MCP gateway that coordinates multiple coding agents around shared project state (JSON file + content-addressed artifacts).
project_context— read a compact snapshot of active agents, tasks, unread messages, artifacts, and decisions without loading artifact contents.agent_manage— register agents, update presence/status (online, idle, busy, offline), and list agents.task_manage— create, list, and update durable tasks with statuses (backlog → done/cancelled), priority, assignee, dependencies, and parent tasks.agent_message— send, list, and acknowledge durable agent-to-agent messages (message, request, reply, status, review), optionally tied to a task or thread.artifact_manage— publish, list, or read artifacts by ID (note, analysis, OCR, design-review, change-proposal, review), keeping large content out of model context.multimodal_analyze— record bounded text or local-asset analysis requests, reporting real provider readiness instead of faking OCR/vision results.design_check— run baseline design-token and accessibility checks against a UI summary.change_propose— record a guarded code/workspace change proposal with risk level and affected files for later approval.review_request— create a review artifact and notify a reviewer agent with a question.Resources —
agentmesh://project/stateandagentmesh://project/design-systemfor direct state/design-system reads.Prompts — reusable
plan-taskandreview-changeprompts.Coordination workflow — context → task → message → artifact → review → approved change, with bounded lists, opaque cursors, and SHA-256 artifact references.
Not yet available: remote HTTP/OAuth, WebSockets, hosted OCR/vision, runtime agent bridges, Git worktree isolation, CI/merge automation, and multi-user storage — treat it as trusted-local-development only.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AgentMesh MCP create a task for the login refactor and message the worker agent"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AgentMesh MCP
AgentMesh MCP is an open-source, lean Model Context Protocol (MCP) gateway for coordinating coding agents around a shared project.
It provides a small public interface for:
durable project context, tasks, messages, and artifacts;
agent-to-agent coordination records;
bounded multimodal-analysis requests with honest provider status;
baseline centralized design-system checks;
change proposals and review requests;
MCP resources and reusable prompts.
The local MVP uses a JSON state file so it can run without a database. It is intentionally a coordination foundation, not a production swarm controller yet.
Current status
Version: 0.1.0 — local MVP
Implemented:
MCP stdio server using the official MCP TypeScript SDK v2;
nine small MCP tools instead of a large tool catalog;
two MCP resources and two reusable prompts;
serialized JSON metadata persistence in
.agentmesh/state.jsonwith content-addressed artifact files in.agentmesh/artifacts/;compact artifact references with exact content retrieval by ID;
bounded list operations with opaque cursors and compact project-state resources;
honest multimodal provider boundary: it inspects local asset readiness but does not pretend to perform OCR without a configured provider;
MIT license and client configuration examples.
Not yet implemented:
remote Streamable HTTP transport and OAuth;
real-time WebSocket event delivery;
hosted OCR or vision-provider adapters;
runtime bridges that start and control Claude Code, Codex, OpenCode, or Antigravity sessions;
Git worktree isolation, CI gates, and merge automation;
multi-user database storage.
Related MCP server: Project Relay
Requirements
Node.js 22 or newer
npm 10 or newer
Install and run
npm install
npm run build
npm startThe server communicates over stdio. MCP hosts launch it as a child process. Project metadata is written to .agentmesh/state.json and large artifact content is stored under .agentmesh/artifacts/ in the current working directory by default.
To use a different state directory:
AGENTMESH_DATA_DIR=/path/to/project-state npm startOptional environment variables are documented in .env.example.
Connect clients
Build first so dist/index.js exists. Replace /absolute/path/agentmesh with this repository's path.
Claude Code
claude mcp add agentmesh -- node /absolute/path/agentmesh/dist/index.jsOr add a project .mcp.json:
{
"mcpServers": {
"agentmesh": {
"command": "node",
"args": ["/absolute/path/agentmesh/dist/index.js"]
}
}
}Codex
Add this to the relevant Codex configuration:
[mcp_servers.agentmesh]
command = "node"
args = ["/absolute/path/agentmesh/dist/index.js"]OpenCode
Add this to the OpenCode configuration:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"agentmesh": {
"type": "local",
"command": ["node", "/absolute/path/agentmesh/dist/index.js"],
"enabled": true
}
}
}Antigravity and other MCP hosts
Use the host's local MCP configuration and launch command:
node /absolute/path/agentmesh/dist/index.jsHost configuration formats vary. The server itself remains a standard stdio MCP server.
Public MCP surface
The server deliberately exposes a compact interface:
Tool | Purpose |
| Read compact project state without loading all artifact contents. |
| Register agents and update their shared presence. |
| Create, list, and update durable tasks. |
| Send, list, and acknowledge agent messages. |
| Publish, list, and read durable artifacts by reference. |
| Record bounded text or asset analysis requests. |
| Run baseline token and accessibility checks. |
| Record a guarded change proposal. |
| Create a review artifact and notify a reviewer. |
Resources:
agentmesh://project/stateagentmesh://project/design-system
Prompts:
plan-taskreview-change
Example workflow
An agent calls
project_context.It creates a task with
task_manage.It registers or identifies another agent through the shared project state.
It sends a request with
agent_message.The worker publishes its result with
artifact_manage.The parent requests review with
review_request.A human or future policy engine approves a
change_proposeresult.
Large results should be published as artifacts and referenced by ID instead of being repeatedly placed in model context. Artifact publish and list operations return metadata, SHA-256 content references, and byte sizes; use artifact_manage with operation: "read" to retrieve exact content.
Development
npm run typecheck
npm run build
npm run devnpm run dev starts the stdio server and will wait for an MCP client. Do not use it as a long-running shell command without an MCP host attached.
Benchmark
Run five reproducible local scenarios with five trials per scenario:
npm run benchmarkThe benchmark drives the built server through real MCP JSON-RPC calls and covers protocol discovery, multi-agent coordination, artifact/context bounding, deterministic local analysis, and the change/review chain. It generates:
benchmarks/results/benchmark-results.jsonbenchmarks/results/benchmark-report.mdbenchmarks/results/benchmark-report.htmlbenchmarks/results/latency-by-scenario.svgbenchmarks/results/response-size-by-scenario.svgbenchmarks/results/correctness-by-scenario.svg
Increase repetitions with BENCHMARK_ITERATIONS=10 npm run benchmark. The current benchmark intentionally does not claim hosted OCR, vision-model accuracy, remote HTTP, OAuth, or real coding-agent runtime coverage.
Optimization and durability controls
The local store uses atomic temporary-file replacement, content-addressed artifact blobs, compact JSON output, bounded project/context projections, opaque cursor pagination for list operations, and one-write review creation. Artifact content is never included in project context or list responses. For stronger power-loss durability, enable:
AGENTMESH_DURABLE_WRITES=1 npm startThat mode syncs each temporary state file before replacement and is slower by design. The default mode protects against partial JSON files while minimizing latency. Cross-record references are validated before writes, and invalid tool operations return explicit MCP error results.
Project structure
src/index.ts MCP tools, resources, prompts, and server bootstrap
src/store.ts Serialized JSON project state and domain mutations
src/types.ts Shared domain contracts
src/design.ts Baseline design-system checks
src/multimodal.ts Provider-neutral multimodal boundary
examples/ Client configuration examples
docs/ Architecture and roadmapSecurity note
This MVP is designed for trusted local development. It does not yet provide remote authentication, multi-user isolation, workspace allowlists, or real code modification. Do not expose it to a network or give it sensitive project data until those controls are implemented.
License
MIT. See LICENSE.
Available Tools
9 toolsagent_manageC
Register an agent runtime or update its presence in the shared project.
Inputs: operation (required), name, role, status, +3 more.
agent_messageC
Send, list, or acknowledge durable messages between project agents.
Inputs: operation (required), body, type, taskId, +4 more.
artifact_manageC
Publish, list, or read durable project artifacts by reference.
Inputs: operation (required), kind, title, taskId, +4 more.
change_proposeC
Record a proposed code or workspace change for later review and approval.
Inputs: title (required), summary (required), risk, files, +2 more.
design_checkC
Run baseline centralized design-system and accessibility checks against a UI summary and optional tokens.
Inputs: uiSummary (required), taskId, tokens, createdBy, +1 more.
multimodal_analyzeC
Create a bounded multimodal analysis record for text or a local asset. This MVP reports provider readiness and never pretends provider-required work is complete.
Inputs: goal (required), mode (required), content (required), taskId, +1 more.
project_contextA
Read a compact project snapshot: active agents, tasks, unread messages, artifacts, and decisions.
Inputs: no named parameters.
review_requestC
Create a review artifact and notify a reviewer agent.
Inputs: question (required), artifactId (required), requestedBy (required), reviewerAgentId.
task_manageC
Create, list, claim, update, or complete durable project tasks.
Inputs: operation (required), title, status, taskId, +6 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools have clearly distinct domain+action targets. There is some adjacency between change_propose/review_request and review_request/artifact_manage, and between project_context and the individual list operations, but the descriptions make intended use clear.
All names use snake_case and mostly follow an entity_action pattern such as task_manage, agent_manage, artifact_manage, and change_propose. project_context and agent_message deviate slightly with entity_noun forms, and multimodal_analyze uses a qualifier_action form, but the overall convention is readable and predictable.
Nine tools is well within the ideal 3–15 range for an agent collaboration server. Each tool maps to a core domain capability without obvious redundancy.
Core create/list/update/read flows for agents, tasks, messages, and artifacts are present. However, there is no explicit approve/reject or review-decision operation despite change_propose and review_request implying a review lifecycle, and no delete/archive operations.
Related MCP Connectors
Project management shared by people and AI agents, with persistent project state through MCP.
Shared memory for your AI tools: tasks, notes and context every tool can read and write over MCP.
Share one project context across ChatGPT, Claude, Telegram and any MCP client.
The project brain for AI coding agents — memory, decisions, sprints, knowledge base via MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides MCP tools for AI coding agents to coordinate on shared repositories, enabling task claiming, conflict detection, and plan management in real-time.25 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables coding agents in different editors and MCP clients to share messages, project context, notes, task ownership, handoffs, and advisory file claims through a local SQLite-backed coordination server. Supports MCP stdio, MCP Streamable HTTP, a JSON HTTP API, and a local CLI for multi-project agent collaboration.MIT
- AlicenseBqualityBmaintenanceEnables AI coding agents and local LLMs to store and recall project memory, compact verbose logs, look up code symbols, create and rewind workspace snapshots, detect risky commands and loops, pack context optimally, and draft tokens through MCP tools.102Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables multiple AI coding agents to work concurrently on the same repository by coordinating task ownership, file locks, architectural decisions, investigation gaps, handoffs, and audit activity through a local SQLite-backed MCP interface.14 npmMIT