MCP — Model Context Protocol
MCP is Anthropic's open protocol for connecting LLMs to tools and data. Harmony speaks MCP in two directions.
Harmony as an MCP server
The Harmony MCP server exposes platform capabilities to any MCP-aware client (Claude Desktop, Claude Code, Cursor, your own agent). Connect once, get every Harmony workspace your key has access to.
Connect from Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"harmony": {
"command": "npx",
"args": ["-y", "@groupany/harmony-mcp"],
"env": {
"HARMONY_API_KEY": "hk_live_…",
"HARMONY_HOST": "https://platform.groupany.ai"
}
}
}
}
Exposed tools
| MCP tool | Wraps | Use |
|---|---|---|
harmony.workspaces.list | GET /api/workspaces | Pick the right workspace before any other call |
harmony.skills.search | GET /api/v1/skills?q= | Find a skill to run |
harmony.sessions.start | POST /api/v1/sessions | Spawn a session with a given skill |
harmony.sessions.events | GET /api/v1/sessions/{id}/events | Stream a live trace |
harmony.sessions.finalize | POST /api/v1/sessions/{id}/finalize | Wrap up |
harmony.creds.fetch | GET /api/v1/credentials/{key} | Pull a scoped secret |
harmony.memory.search | GET /api/v1/memory/search?q= | Retrieve from shared memory |
Every tool is annotated with idempotent: true/false and requires_confirmation: true/false so well-behaved MCP clients can show a confirmation UI for destructive actions.
External MCP tool servers
Bring MCP tool servers from anywhere — local stdio, remote SSE, Cloudflare Workers — and Harmony exposes them to agents in their workspace.
Register a server
curl -X POST https://platform.groupany.ai/api/v1/mcp/servers \
-H "Authorization: Bearer $HARMONY_KEY" \
-d '{
"name": "linear",
"transport": "sse",
"url": "https://mcp.linear.app/sse",
"auth": { "type": "bearer", "credential_ref": "linear_token" },
"scope": { "agents": ["*"] }
}'
Harmony introspects the server's tools at registration and caches them. Each tool surfaces in the agent loop as if it were a first-party Harmony tool — same dispatch, same trace events, same cost accounting.
Scoping
Tool exposure is gated by scope on the registration:
{
"scope": {
"agents": ["research-agent", "support-agent"],
"skills": ["research-a-topic"],
"tools": ["linear.issues.create", "linear.issues.search"]
}
}
Default scope is { "agents": ["*"] } — every agent in the workspace sees everything. Tighten in production.
MCP integration is drafted. The protocol mapping and scoping model are settled; the server-side dispatcher lands once
/api/v1/sessionsis live.