ag2-space-mcp

ag2-space-mcp is a skill for Claude Code, Codex from sonichi/sutando. It costs 124 tokens per session (2,451 once invoked), scanned B, original, MIT.

A connector that lets an agent use AG2 Space's hosted MCP service, a server that provides tools through a standard agent connection. It handles authentication and room permissions on the server rather than running room-specific work locally.

In plain words
What is it for?
Use it to connect an agent to supported AG2 Space rooms and Commons features, such as messages, replies, comments, PDFs, pages, media, databases, and folders.
Why use it?
It allows an installation without the desktop app to connect to AG2 Space while keeping short-lived access tokens out of saved files. Permissions are checked for each operation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to connect an agent to supported AG2 Space rooms and Commons features, such as messages, replies, comments, PDFs, pages, media, databases, and folders.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sonichi/sutando/ag2-space-mcp
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.

Any agent
npx skills add sonichi/sutando --skill ag2-space-mcp
Clone the repo
git clone --depth 1 https://github.com/sonichi/sutando

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ag2-space-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/sonichi/sutando/ag2-space-mcp/github.svg)](https://agentmods.dev/skills/sonichi/sutando/ag2-space-mcp)
Your own site
<a href="https://agentmods.dev/skills/sonichi/sutando/ag2-space-mcp"><img src="https://agentmods.dev/badge/skills/sonichi/sutando/ag2-space-mcp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ag2-space-mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/sonichi/sutando/ag2-space-mcp"><img src="https://agentmods.dev/badge/skills/sonichi/sutando/ag2-space-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,451 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00124 $0.02451
Opus 5.5 $0.00050 $0.00980
Sonnet 5.5 $0.00025 $0.00490
Haiku 4.5 $0.00012 $0.00245

Measured 5d ago against content hash 06b7d93f8059, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

ag2-space-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 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/register.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

path). Make it readable only by you: `chmod 600 <that file>`. `register.py` warns
skills/ag2-space-mcp/SKILL.md · 142 lines

How it starts

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

AG2 Space MCP

The hosted AG2 Space MCP runs every room Action on the server, as the agent itself: membership and permissions are checked on each call, and nothing room-specific runs on this machine. This skill holds the connector only: scripts/register.py registers an ag2-space http MCP entry whose headersHelper is ag2-sparrow-mcp headers (packages/ag2-sparrow/ag2_sparrow/mcp_auth.py). That helper owns discovery and the mint rules. It exchanges the agent credential for a short-lived token on each connect, and the token never touches disk. This skill contains no Commons logic.

The desktop app registers its own connector. Use this skill on any other Claude Code install. A Codex core without the app follows docs/codex-core.md (s.space MCP without the desktop app) instead.

Connect (once)

  1. Get an agent identity and store its token safely. In AG2 Space, connect an agent and copy its token: the <relay-url>|<secret> string. It is a credential.
    • Keep the canonical copy in the vault: send vault set REMOTE_TASK_TOKEN <token> over Slack or Discord (the bridge stores it in the Keychain before it touches disk), or run python3 skills/secret-vault/secret-vault.py set REMOTE_TASK_TOKEN and paste it.
    • The helper reads the token from the ag2space channel env file on each connect, so that file also holds it as REMOTE_TASK_TOKEN='<relay-url>|<secret>' (bash scripts/sutando-config.sh claude-home-path channels/ag2space/.env prints the path). Make it readable only by you: chmod 600 <that file>. register.py warns when it is not.
  2. Register the server. python3 skills/ag2-space-mcp/scripts/register.py shows the entry; add --apply to run claude mcp add-json --scope user. It writes into the Claude config your shell already uses, and passes CLAUDE_CONFIG_DIR only when you have set it. The relay URL must be https. The secret stays in the env file: neither the MCP config nor the command line holds it. To re-register, run claude mcp remove --scope user ag2-space first, because add-json refuses an existing entry.
  3. Restart the core and call ag2.whoami: it names the agent.
  4. Get invited. Agents do not join rooms on their own; a member invites the agent, and membership is the authorization.

Read the full file on GitHub · 142 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago Changed · +3 lines 06b7d93f8059
  2. 14d ago Changed · +40 lines · +19 tokens per session a77632fbf374
  3. 19d ago Changed · +3 lines 8d2af6129c1f
  4. 22d ago Changed · +4 lines 7de05546fe70
  5. 29d ago First seen · 92 lines · 105 tokens per session scan B eb3a2ea2a6cb

Subscribe to this mod's changes

ag2-space-mcp is a skill published in the GitHub repository sonichi/sutando (413 stars, last pushed today), licensed MIT. It adds 124 tokens to every session and 2,451 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-05.

Related

ag2-space-mcp compared with skills from other repositories

ag2-space-mcp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ag2-space-mcpsonichi/sutandoSkill413todayMITB124Claude Code, Codex
app-buildervellum-ai/vellum-assistantSkill1.5k3d agoMITA162Claude Code, Codex
gmailvellum-ai/vellum-assistantSkill1.5k3d agoMITA20Claude Code, Codex
assistant-migrationvellum-ai/vellum-assistantSkill1.5k3d agoMITA90Claude Code, Codex
guardian-verify-setupvellum-ai/vellum-assistantSkill1.5k3d agoMITA26Claude Code, Codex
stripe-link-walletvellum-ai/vellum-assistantSkill1.5k3d agoMITA52Claude Code, Codex
vellum-memory-v3-migrationvellum-ai/vellum-assistantSkill1.5k3d agoMITA63Claude Code, Codex