mcp-domain-migrator

mcp-domain-migrator is an agent for Claude Code from Goldziher/basemind. It costs 51 tokens per session (1,899 once invoked), scanned A, original, MIT.

An agent for moving one group of basemind MCP tools from separate actions into one tool with selectable modes, plus matching command-line commands. MCP is a way for software tools to be exposed to AI agents.

In plain words
What is it for?
Use it when restructuring one basemind domain such as code, graph, Git, memory, web, agents, workspace, shell, or administration.
Why use it?
It lets several agents migrate different tool groups at the same time while avoiding edits to shared files.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the basemind plugin — 15 skills, 10 commands, 6 agents, 2 hooks, 1 MCP server shipped together

Good fit Use it when restructuring one basemind domain such as code, graph, Git, memory, web, agents, workspace, shell, or administration.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/goldziher/basemind/mcp-domain-migrator
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.

Clone the repo
git clone --depth 1 https://github.com/Goldziher/basemind

Made for: Claude Code.

Or install basemind, the plugin that ships this one along with the rest of its 15 skills, 10 commands, 6 agents, 2 hooks, 1 MCP server.

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 mcp-domain-migrator

README.md
[![agentmods](https://agentmods.dev/badge/agents/goldziher/basemind/mcp-domain-migrator/github.svg)](https://agentmods.dev/agents/goldziher/basemind/mcp-domain-migrator)
Your own site
<a href="https://agentmods.dev/agents/goldziher/basemind/mcp-domain-migrator"><img src="https://agentmods.dev/badge/agents/goldziher/basemind/mcp-domain-migrator/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 mcp-domain-migrator

Your own site · 80×15
<a href="https://agentmods.dev/agents/goldziher/basemind/mcp-domain-migrator"><img src="https://agentmods.dev/badge/agents/goldziher/basemind/mcp-domain-migrator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,899 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00051 $0.01899
Opus 5 $0.00026 $0.00949
Sonnet 5 $0.00010 $0.00380
Haiku 4.5 $0.00005 $0.00190

Measured 9d ago against content hash 66ad2fe5067e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

mcp-domain-migrator scanned grade A with 0 findings 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 9d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.ai-rulez/agents/mcp-domain-migrator.md · 128 lines

How it starts

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

mcp-domain-migrator

You migrate exactly one domain from basemind's flat 85-tool surface onto the 9-domain shape: one MCP tool and one CLI group per domain, both dispatching on a required mode enum. Other migrators run concurrently on other domains — staying inside your own files is the entire reason this parallelizes.

The nine domains

Domain Modes Feature gate
code outline, symbols, grep, files, find, definition, references, callers, implementations, dependents, expand, semantic, chunk always
graph calls, neighbors, path, subgraph, communities, map, export, display, open always
git status, recent, touching, by_path, churn, diff, diff_outline, blame, blame_symbol, symbol_history, search always
memory put, get, list, search, delete, audit, documents, mine, proposals, accept, reject always (body-gated)
web scrape, crawl, map crawl
agents register, list, thread_start, thread_list, join, leave, members, add_member, remove_member, archive, post, history, message, inbox, ack, wait comms
workspace workspaces, worktrees, branches, claim, release comms
shell spawn, send, capture, kill, list, broadcast shells
admin status, repo, rescan, cache_stats, gc, cache_clear, telemetry, compress, delta, checkpoint, waste always

Your assignment names one domain. Migrate that one and no other.

Read before you write

  • src/mcp/mode.rswhere your mode enum goes. Every domain's enum lives in this one file, declared with the define_mode! macro (do not hand-roll one) and compiled unconditionally even when its tool is feature-gated off, so a feature build can never change the spelling of a mode. It also holds reject_unsupported, the shared validator for parameters a mode does not accept, and domain_modes() — add your domain there, gated exactly like its router merge, because tests/cli_parity.rs walks it. WebMode is the worked example. Read the module docs; they carry the reasoning behind every constraint below.
  • src/mcp/types_memory.rs — the Visibility impl is the canonical hand-written flat-enum JsonSchema. Copy its shape exactly.
  • tests/mcp_schema_wire.rs — the guard you must not trip, and why it exists.
  • src/mcp/tools_web.rs, src/mcp/helpers_web.rs, src/mcp/types_web.rs, src/cli/web.rs — the finished reference implementation. web is already migrated; mirror its structure rather than inventing one. Note in particular that the shim keys telemetry on p.mode.telemetry_key() (the "domain:mode" string) rather than a bare tool name, and that it declares no output_schema because one tool cannot carry several response shapes without $ref.
  • src/mcp/tasks.rs — if any of your modes routinely runs for seconds, add its "domain:mode" key to SLOW_CALLS. Keying on the bare tool name would offload every mode of your domain or none.
  • Your domain's current tools_*.rs / helpers_*.rs / types_*.rs / src/cli/*.rs. You are moving behavior, not redesigning it.

Read the full file on GitHub · 128 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. 9d ago First seen · 128 lines · 51 tokens per session scan A 66ad2fe5067e

Subscribe to this mod's changes

mcp-domain-migrator is an agent published in the GitHub repository Goldziher/basemind (99 stars, last pushed 7d ago), licensed MIT. It adds 51 tokens to every session and 1,899 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.