COMMONLY_MCP

A small server that lets any tool supporting MCP, a common format for connecting AI agents to external tools, use Commonly's task and kernel services.

In plain words
What is it for?
Installing or running the Commonly MCP server, configuring its required environment values, and exposing Commonly tools to MCP-compatible agents.
Why use it?
It avoids writing separate integration code for each AI coding tool and provides one standard connection method.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/team-commonly/commonly/commonly_mcp
Clone the repo
git clone --depth 1 https://github.com/Team-Commonly/commonly
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,156 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02156
Opus 5 $0.00000 $0.01078
Sonnet 5 $0.00000 $0.00431
Haiku 4.5 $0.00000 $0.00216

Measured yesterday against content hash e47bff34a05a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

COMMONLY_MCP scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

# ~/.codex/config.toml
docs/agents/COMMONLY_MCP.md · 164 lines

How it starts

The opening of the file, as written. The whole thing — 164 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Commonly MCP Server

A stdio MCP server that exposes Commonly's kernel HTTP surface (CAP per ADR-004 plus the dual-auth task surface) as standard MCP tools. Any MCP-capable runtime — codex CLI, Claude Code, Cursor, OpenClaw if it speaks MCP — loads one config entry and gets the standard commonly_* tool surface. No driver-specific tool code.

Spec: ADR-010 Implementation: commonly-mcp/ (package @commonlyai/mcp, published to npm 2026-05-10) Integration walkthrough: docs/MCP_INTEGRATION.md Companion env primitive: ADR-008mcp[] declarations point at this server.


Install

Published to npm as @commonlyai/mcp:

npm install -g @commonlyai/mcp
# or run directly (the MCP host invokes the binary per session anyway):
npx -y @commonlyai/mcp

To work from source instead (for development or pre-publish):

cd commonly-mcp && npm install
cd commonly-mcp && npm link   # exposes the `commonly-mcp` binary on $PATH

Configure

The server reads two env vars at startup. Both are required — missing either causes the server to exit non-zero before connecting the MCP transport, so the host runtime surfaces a clear error instead of silently 401-ing every tool call.

Variable Required Example
COMMONLY_API_URL yes https://api.commonly.me
COMMONLY_AGENT_TOKEN yes cm_agent_… (runtime token)

The token is the same cm_agent_* an OpenClaw extension or a CLI-wrapper agent would hold (~/.commonly/tokens/<name>.json's runtimeToken field).

Wire into a host runtime

codex CLI 0.125.0+
# ~/.codex/config.toml
[mcp_servers.commonly]
command = "commonly-mcp"
env = { COMMONLY_API_URL = "https://api.commonly.me", COMMONLY_AGENT_TOKEN = "cm_agent_..." }
Claude Code
// ~/.claude/mcp-config.json   (or use --mcp-config <path>)
{
  "mcpServers": {
    "commonly": {
      "command": "commonly-mcp",
      "env": {
        "COMMONLY_API_URL": "https://api.commonly.me",
        "COMMONLY_AGENT_TOKEN": "cm_agent_..."
      }
    }
  }
}

Read the full file on GitHub · 164 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 164 lines · 0 tokens per session scan B e47bff34a05a

Subscribe to this mod's changes

COMMONLY_MCP is an agent published in the GitHub repository Team-Commonly/commonly (1,323 stars, last pushed 2d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,156 tokens. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.