Connect AI Agents to EVC Mesh
MCP server connecting AI agents to EVC Mesh for task management, persistent memory, event publishing, and multi-agent coordination via REST.
1.0.0Add to Favorites
Why it matters
Integrate your AI agents with the EVC Mesh for seamless multi-agent coordination. This connector facilitates task management, event publishing, and artifact uploads.
Outcomes
What it gets done
Connect AI agents to Mesh via MCP tools
Manage tasks across multiple agents
Publish events and upload artifacts
Share persistent memory and recall across sessions
Source
Get it from source
Spark does not host a copy of it.
Open sourceCapabilities
Tools your agent gets
Register agent presence and keep the session alive
List all tasks currently assigned to the calling agent
Fetch full task details including comments, artifacts, and metadata
Query tasks in a project by status, priority, label, or assignee
Create a new task with title, description, labels, assignee, and due date
Create a child task under a parent task with optional dependency edge
Transition task status between todo, in_progress, review, and done
Patch task fields such as priority, labels, due date, and title
Overview
EVC Mesh MCP
EVC Mesh MCP Server is the Model Context Protocol server for EVC Mesh, a task management platform for coordinating humans and AI agents. It translates MCP tool calls into REST API requests for task management, persistent memory (recall/remember/forget), event publishing, and multi-agent coordination, offered in a lightweight 20-tool core profile or a 45-tool full profile. Use it once an agent has a Mesh API key and needs to manage tasks or shared memory through MCP; pick the core profile for small-context clients like Claude Code or Cursor, and the full profile or SSE mode for heavier automation and multi-agent setups.
What it does
EVC Mesh MCP Server is the Model Context Protocol server for EVC Mesh, a task management platform for coordinating humans and AI agents. It connects AI agents (Claude Code, Cursor, Cline, OpenClaw, and others) to Mesh via MCP tools for task management, persistent memory, event publishing, and multi-agent coordination. It is a lightweight proxy: MCP tool calls are translated into REST API requests against the Mesh API server, with no direct database access from the MCP layer itself.
When to use - and when NOT to
Use it once an agent is registered in a running EVC Mesh instance with its own API key (agk_...) and needs to read/manage tasks, recall or write persistent memory, or coordinate with other agents through the same workspace. Two tool profiles trade context budget for capability: core (20 tools, about 6K tokens / 3% of a 200K context) suits Claude Code, Cursor, and other small-context clients, while full (45 tools, about 14K tokens / 7% of 200K, the default) suits power users, automation agents, and admin operations. SSE mode can serve both profiles simultaneously on separate paths for multiple agents sharing one server. It is not the only MCP server for Mesh - the core evc-mesh repo also ships one built from the same internal/mcp tool set - but this repository is the actively developed copy, and new tools and fixes land here first because Go's internal/ visibility rules keep the two repos from importing each other's package.
Capabilities
- Agent Context Protocol (ACP): a defined 5-step session-start sequence (heartbeat, get_project_knowledge, get_my_rules, get_context, get_my_tasks) and session-end sequence (publish_event, session_report).
- Task management: list/get/create/update/move/assign tasks, subtasks, dependencies, and atomic checkout/release locks for multi-agent coordination (full profile).
- Memory: recall/remember/forget, with hard-bounded result pages, scope/tag filtering that never leaks unmarked rows, and knowledge-graph neighbor expansion capped at at most a quarter of the page so it can never silently crowd out direct retrieval hits.
- Communication and events: comments, artifacts, publish_event/publish_summary, webhook subscriptions, and long-polling for new task assignments (full profile).
- Governance: project/assignment/workflow rules, plus workspace config import/export as YAML (full profile).
- Recurring tasks: create, list, inspect history, and manually trigger scheduled task instances (full profile).
How to install
go install github.com/entire-vc/evc-mesh-mcp@latest
Requires Go 1.22+ and a running Mesh instance. Configure via environment variables - MESH_API_URL and MESH_AGENT_KEY are required for stdio mode - and point a client's config at the built binary, for example in Claude Code's .mcp.json:
{
"mcpServers": {
"evc-mesh": {
"command": "evc-mesh-mcp",
"env": {
"MESH_API_URL": "https://your-mesh-instance.example.com",
"MESH_AGENT_KEY": "agk_your-workspace_your-key",
"MESH_MCP_PROFILE": "core"
}
}
}
}
For multiple agents sharing one server, run it in SSE mode (--transport sse) instead, authenticated per connection via a bearer token, header, or query parameter.
Who it's for
Teams running EVC Mesh who want their AI agents (Claude Code, Cursor, Cline, OpenClaw, and similar) to manage tasks, persist memory, and coordinate with each other directly through MCP tools rather than a custom integration; the core/full profile split makes it practical for both context-constrained coding agents and heavier automation/admin agents on the same platform. It's released under the MIT license.
Source README
EVC Mesh MCP Server
Model Context Protocol (MCP) server for EVC Mesh - a task management platform for coordinating humans and AI agents.
Connects AI agents (Claude Code, Cursor, Cline, OpenClaw, etc.) to EVC Mesh via MCP tools for task management, persistent memory, event publishing, and multi-agent coordination.
This is the actively developed copy. evc-mesh also ships an MCP server (./cmd/mcp, same internal/mcp tool set) that it builds and deploys itself - the two exist because Go's internal/ visibility rules mean one repo can't import the other's package, not because they're meant to diverge. New tools and fixes land here first.
Prerequisites
- Go 1.22+
- Running EVC Mesh instance
- Agent registered in Mesh with an API key (
agk_...)
Installation
go install github.com/entire-vc/evc-mesh-mcp@latest
Or build from source:
git clone https://github.com/entire-vc/evc-mesh-mcp.git
cd evc-mesh-mcp
go build -o evc-mesh-mcp .
Tool Profiles
The MCP server supports two profiles to optimize context window usage:
| Profile | Tools | Context overhead | Best for |
|---|---|---|---|
| core | 20 | ~6K tokens (3% of 200K) | Claude Code, Cursor, small-context models |
| full | 45 | ~14K tokens (7% of 200K) | Power users, automation agents, admin ops |
Set via MESH_MCP_PROFILE environment variable. Default: full.
Configuration
| Variable | Required | Default | Description |
|---|---|---|---|
MESH_API_URL |
Yes | http://localhost:8005 |
Base URL of the Mesh API |
MESH_AGENT_KEY |
Yes (stdio) | - | Agent API key (agk_...) |
MESH_MCP_PROFILE |
No | full |
Tool profile: core or full |
MESH_MCP_TRANSPORT |
No | stdio |
Transport mode: stdio or sse |
MESH_MCP_HOST |
No | 0.0.0.0 |
SSE server bind host |
MESH_MCP_PORT |
No | 8081 |
SSE server bind port |
Claude Code (stdio mode)
Add to your project's .mcp.json:
{
"mcpServers": {
"evc-mesh": {
"command": "evc-mesh-mcp",
"env": {
"MESH_API_URL": "https://your-mesh-instance.example.com",
"MESH_AGENT_KEY": "agk_your-workspace_your-key",
"MESH_MCP_PROFILE": "core"
}
}
}
}
Cursor
Add to Cursor MCP settings (Settings → MCP Servers):
{
"evc-mesh": {
"command": "evc-mesh-mcp",
"env": {
"MESH_API_URL": "https://your-mesh-instance.example.com",
"MESH_AGENT_KEY": "agk_your-workspace_your-key",
"MESH_MCP_PROFILE": "core"
}
}
}
SSE Mode (multi-agent, shared server)
For connecting multiple agents through a shared MCP endpoint:
MESH_API_URL=https://your-mesh-instance.example.com \
MESH_MCP_PORT=8081 \
evc-mesh-mcp --transport sse
SSE mode serves two profiles simultaneously on different paths:
| Path | Profile | Description |
|---|---|---|
/sse + /message |
full | All 45 tools (backward compatible) |
/core/sse + /core/message |
core | 20 essential tools |
Authentication per connection via:
Authorization: Bearer agk_...headerX-Agent-Key: agk_...header?agent_key=agk_...query parameter
Agent Context Protocol (ACP)
At session start, follow these 5 steps in order:
1. heartbeat(status="online") → register as alive
2. get_project_knowledge(project_id) → load accumulated decisions & conventions
3. get_my_rules(project_id) → understand constraints
4. get_context(project_id) → see recent activity + project knowledge
5. get_my_tasks() → check assigned work
At session end:
publish_event(type="summary", memory={persist: true}) → broadcast + persist
session_report(model, tokens_in, tokens_out) → report metrics
MCP Tools - Core Profile (20)
ACP & Identity
| Tool | Description |
|---|---|
heartbeat |
Send heartbeat. Call at session start with status=online. Response includes mesh_version (the running binary's build git-SHA, or "dev" for an unpinned local build) - cheap way to check whether a fix has actually reached the installed binary without shelling out to the host. |
get_project_knowledge |
Get ALL permanent knowledge (decisions, conventions). ACP Step 2 |
get_my_rules |
Get ALL governance rules (workflow + assignment). ACP Step 3 |
get_context |
Get recent activity + project knowledge. ACP Step 4 |
get_my_tasks |
Get assigned tasks. ACP Step 5 |
Task Management
| Tool | Description |
|---|---|
list_projects |
List workspace projects |
list_tasks |
List tasks with filters (status, priority, assignee, search) |
get_task |
Get task details with optional comments/artifacts/deps |
create_task |
Create a new task |
update_task |
Update task fields |
move_task |
Change task status using slugs |
assign_task |
Assign/unassign a task |
get_task_context |
Get everything about a task in one call |
Communication
| Tool | Description |
|---|---|
add_comment |
Add comment to a task (markdown) |
publish_event |
Publish event + optional memory hint for persistence |
Memory
| Tool | Description |
|---|---|
recall |
Search memory by keywords |
remember |
Save knowledge (UPSERT by key) |
forget |
Delete a memory entry |
What recall guarantees about its result
limit is a hard bound. The response never contains more than limit items,
and total always equals the number of items actually returned. Nothing is added
to the page after it has been sized - not pinned rows, not graph-expanded
neighbours.
Rows that fail scope/tags/tags_any are dropped, never returned unmarked.
This holds regardless of how a row reached the result: ordinary retrieval, pinning,
or graph expansion. A pinned row is exempt from ranking, not from eligibility -
"pinned" means "do not let ranking bury this", not "show this to a caller who asked
for a different scope".
Graph neighbours are marked and bounded. With RECALL_GRAPH_ENABLED=true,recall also runs a knowledge-graph expansion and folds in hop > 0 neighbours,
each carrying graph_boost: true and provenance: via:graph. They occupy at mostlimit/4 of the page (at least 1 when limit >= 2, none when limit < 2) and take
its tail slots, displacing the weakest retrieval hits rather than being appended
on top. When expansion returns nothing usable, the page is exactly the base result -
the reserve is a ceiling, not a quota. graph_boost_count reports how many slots
were actually spent.
The reserve exists because base hits carry score (RRF across the retrieval arms)
and neighbours carry composite_score from a separate traversal - different fields
on different scales. Sorting the union on a common key does not balance them; in
practice every observed neighbour ranks below every base hit, so a naive merge-sort
would silently disable graph boost. The reserve makes that trade explicit and
tunable.
Presets never overrule you. recall classifies the query and may apply a
profile (e.g. multi-session widens the page). A profile only fills in parameters you
did not supply; an explicit limit always wins.
Utility
| Tool | Description |
|---|---|
report_error |
Report an error on a task |
session_report |
Report session metrics (model, tokens, cost) |
MCP Tools - Full Profile (adds 25 more)
Additional Task Tools
| Tool | Description |
|---|---|
get_project |
Get project details with statuses and custom fields |
create_subtask |
Create subtask under a parent (status_slug optional; defaults to the project's default status, not the parent's) |
add_dependency |
Add dependency between tasks |
checkout_task |
Atomic task lock for multi-agent coordination |
release_task |
Release atomic task lock |
Comments & Artifacts
| Tool | Description |
|---|---|
list_comments |
List task comments |
upload_artifact |
Upload file/code/log to a task |
list_artifacts |
List task artifacts |
get_artifact |
Get artifact details and download URL |
Event Bus
| Tool | Description |
|---|---|
publish_summary |
Publish work summary (convenience wrapper) |
subscribe_events |
Configure webhook delivery for events |
poll_tasks |
Long-poll for new task assignments |
Agent & Team
| Tool | Description |
|---|---|
register_sub_agent |
Register a sub-agent |
list_sub_agents |
List sub-agents (optionally recursive) |
get_team_directory |
Get workspace team directory |
update_agent_profile |
Update agent role, capabilities, profile |
Governance & Config
| Tool | Description |
|---|---|
get_project_rules |
Get all project rules |
get_assignment_rules |
Get assignment rules |
get_workflow_rules |
Get workflow rules with caller permissions |
import_workspace_config |
Import workspace config from YAML |
export_workspace_config |
Export workspace config as YAML |
Recurring Tasks
| Tool | Description |
|---|---|
create_recurring_task |
Create recurring task schedule |
list_recurring_schedules |
List recurring schedules |
get_recurring_history |
Get instance history for a schedule |
trigger_recurring_now |
Trigger next instance immediately |
Architecture
AI Agent (Claude Code / Cursor / Cline / OpenClaw)
↕ MCP (stdio or SSE)
EVC Mesh MCP Server (core or full profile)
↕ REST API (HTTP)
EVC Mesh API Server
↕
PostgreSQL / Redis / NATS / S3
The MCP server is a lightweight proxy - it translates MCP tool calls into REST API requests. No direct database access needed.
Deploy checklist (prod server - no CI)
evc-mesh-mcp has no CD pipeline; deploys are manual. Mandatory order (per
CLAUDE-workflow.md §1b Deploy Discipline):migrate (goose up) → binary swap → restart. Never swap the binary before migrations pass.
# 1. Build for the prod target
GOOS=linux GOARCH=amd64 go build -o evc-mesh-mcp .
# 2. Copy binary to prod
scp evc-mesh-mcp root@prod-host:/opt/evc-mesh-mcp/evc-mesh-mcp.new
# 3. On the prod host: run migrations FIRST, then swap binary
ssh root@prod-host
# STEP 1 — Run evc-mesh DB migrations (mcp server reads the same DB).
# goose CLI is not installed on the host — use the official docker image.
# If this exits non-zero, STOP — do NOT swap the binary.
DB_URL=$(grep ^DATABASE_URL /opt/evc-mesh/.env.prod | cut -d= -f2-)
docker run --rm --network host \
-v /opt/evc-mesh/migrations:/migrations \
ghcr.io/pressly/goose:latest \
goose -dir /migrations postgres "$DB_URL" up
# STEP 2 — Swap binary (only after migrations succeed)
mv /opt/evc-mesh-mcp/evc-mesh-mcp /opt/evc-mesh-mcp/evc-mesh-mcp.bak.$(date +%Y%m%d-%H%M%S)
mv /opt/evc-mesh-mcp/evc-mesh-mcp.new /opt/evc-mesh-mcp/evc-mesh-mcp
# STEP 3 — Restart
sudo systemctl restart evc-mesh-mcp
# STEP 4 — Smoke test
curl -sf http://localhost:8081/health || echo "SMOKE FAILED"
evc-mesh-mcp does not run its own migrations - it relies on the evc-mesh API's
schema. The goose step above ensures the schema matches before the new binary serves traffic.
Local stdio binary - this repo also builds the tool your agent runs
The checklist above is for the SSE/HTTP prod server. This repo also builds the
binary a local stdio MCP client runs directly (no network deploy involved,
e.g. Claude Code's .mcp.json pointing at ~/bin/mesh-mcp). That path used to
be entirely manual - a merged fix could sit uninstalled indefinitely, looking
identical to "the feature doesn't exist" from inside an agent session (no
error, just an outdated tool). Where the fleet builds this way, a poll-based
watcher (not a GitHub-hosted runner - self-hosted CI runners on developer
machines are a known supply-chain risk this fleet avoids) rebuilds and
atomically installs the binary on origin/main changes, and the heartbeat
tool's mesh_version field (see the tools table above) lets a session confirm
which commit is actually installed without shelling out to the host.
Related
- evc-mesh - Core platform (API + Web UI)
- evc-mesh-openclaw-skill - OpenClaw skill (bash scripts)
FAQ
Common questions
Trust
How it checks out
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.