modedial MCP Server
Named modes for coding agents: focus, debug, review and more, with guards on some agents.
modedial scores 66 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 3 tools. Filed under Uncategorized. GitHub shows 0 stars. Package registries report about 770 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
73/100 for listing completeness. Lost points: 2 of 3 tools barely described, short summary, no docs link.
How quality is graded
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "mac146-modedial": { "command": "npx", "args": [ "-y", "modedial@0.1.3" ] } }}
Environment variables
This server does not declare environment variables.
Tools3Tool docs quality grade D
All capabilitiescurrent_modetoolthe active mode
end_modetoolback to default behavior
list_modestoolthe available modes (id, name, tagline)
About
modedial
Named modes for coding agents, as a tiny MCP server. Switch your agent between things like Deep Focus, Debug Mode or Fast Prototype with one call, and get a shareable card and a local recap.
Status: v0.1.x, new. Smoke-tested with Claude Code, Codex CLI and opencode (details). Cursor is untested.
Watch the 56-second tour of the site. It shows the page with its illustrative transcripts, not a real agent session.
A real session: three recorded Claude Code runs with the hooks installed. In the last one the agent is told to edit a file in Careful Reviewer mode, and the hook blocks it.
26 s: the guard · 83 s: all three scenes. Replayed from the recorded event log (pauses shortened, long replies trimmed, internal tool-loading steps hidden). Re-create it with tools/demo-recorder.
Every mode switch makes a card like these, drawn locally. The sample images are in docs/examples.
What it does (and doesn't)
list_modes: the available modes (id, name, tagline)set_mode(id): returns a short instruction bundle for the agent to follow, and logs the switch locallycurrent_mode: the active modeend_mode: back to default behaviorrecap: usage stats from your local log
An MCP tool cannot force an agent to do anything. set_mode returns text, and the agent chooses to follow it. Modes are nudges that tend to work when the agent is told to use them (see the snippet below), not guarantees. We have not measured whether modes improve results, so this project makes no performance claims. A small, observational check of what each mode changes is in docs/behavior-check.
Install
Requires Node 20+. The server runs with npx -y modedial.
Claude Code
claude mcp add modedial -- npx -y modedial
Cursor: add to .cursor/mcp.json (or ~/.cursor/mcp.json). Untested by us.
{ "mcpServers": { "modedial": { "command": "npx", "args": ["-y", "modedial"] } } }
Codex CLI: add to ~/.codex/config.toml. Tested by us. Codex asks before running a tool; the optional last line skips that prompt for this server.
[mcp_servers.modedial]
command = "npx"
args = ["-y", "modedial"]
default_tools_approval_mode = "approve"
opencode: add to opencode.json. Tested by us.
{ "mcp": { "modedial": { "type": "local", "command": ["npx", "-y", "modedial"] } } }
Any other MCP client: run npx -y modedial as a stdio server. On Windows, some clients need cmd /c npx -y modedial.
Make agents use it reliably
Paste this into CLAUDE.md, AGENTS.md, .cursor/rules, or your agent's equivalent:
## Modes (modedial)
You have a `modedial` MCP server. When the user asks for a mode (for example "deep focus",
"debug mode"), call `list_modes` if unsure, then `set_mode` with the matching id, and follow the
returned instructions until `end_mode` is called or the user picks another mode. When the user
changes task type (for example from building to reviewing), suggest a fitting mode in one line
instead of switching silently.
Enforcement (Claude Code)
By default a mode is advice: the agent reads the instructions and chooses to follow them. On Claude Code you can add guards, which run as hooks, outside the model:
npm install -g modedial # hooks run on every edit, so install globally (fast start)
modedial install claude-code # this project (.claude/settings.json)
modedial install claude-code --user # all projects
modedial uninstall claude-code # remove them again
| Mode | What is enforced |
|---|---|
| Careful Reviewer | Claude Code's file-edit tools are denied. Common shell commands that change files, git state or packages are denied too (best effort). Leaving the mode needs your approval. It is reminded once if its reply lacks "Not checked". |
| Debug Mode | If it tries to finish after an edit with nothing run, it is sent back once to run something or to say the fix is unconfirmed. After that it can finish. |
| Deep Focus | If the agent declares scope, file-tool edits outside it need your approval, and so does widening the scope or leaving the mode. It is reminded once if its reply lacks "Goal:" or "Set aside:". |
| Chill Refactor | File-tool edits to dependency manifests (package.json, lockfiles, requirements, go.mod…) need your approval, and so does leaving the mode. Shell commands such as npm install are not caught. It gets one reminder each to run something after editing and to end with "Changed / left alone:". |
| Creative Sprint, Fast Prototype | Instructions only. Nothing to enforce. |
The hooks are deterministic code with unit tests, and an end-to-end script (node scripts/e2e-claude-code.mjs) checks them against a real Claude Code session. Honest limits:
- The shell filter is best effort. For example,
node -ecan still write a file. Denying the file-edit tools is the part you can rely on; it is not a sandbox. - Other MCP servers' tools are not gated.
- Upgrading from 0.1.2 or earlier: run
modedial install claude-codeagain. Before 0.1.3 the agent could switch a guard off by callingend_modeorset_modeitself. - "Needs your approval" prompts you in an interactive session. In headless runs it simply does not apply the edit.
- The "verify" and "tell" nudges happen once per round, so a stubborn agent can still finish. They improve the odds, they are not a lock.
- Each hook is a short Node process. On the Windows machine this was measured on, where Node itself takes about 360 ms to start, a hook added roughly 100 ms per edit or command. Expect less on a faster setup. Through
npxinstead of a global install the same call took about 3.4 s, which is why the Claude Code installer asks fornpm install -g modedialfirst and refuses to writenpxhooks. - Hooks only run if you install them. Without them the guards are not enforced, and the modes behave as plain instructions.
- Other agents have their own installers (see the table below). Claude Code has the hooks above, and opencode's reviewer agent has its edit tools switched off. Roo Code modes declare tool limits, which we have not run. Elsewhere the guards are written into the mode as plain rules.
Setup for every agent
npx modedial install # lists the supported agents and marks the ones it finds in your project
npx modedial install <agent> # writes that agent's native files (add --dry-run to preview, --user for global where it applies)
npx modedial uninstall <agent> # removes exactly what install added
Each agent gets files in the format it reads natively, so a mode is a real rule file, agent or custom mode in your tool, not only text from a tool call.
| Agent | What install writes | Real enforcement | How it was checked |
|---|---|---|---|
| Claude Code | Hooks in .claude/settings.json | Yes (see above) | Real session, 3/3 scenarios |
| opencode | .opencode/agents/modedial-*.md, opencode.json | Yes: Careful Reviewer's agent has write, edit and bash off | Real run: agents parsed, reviewer could not create a file, control agent could |
| Codex CLI | AGENTS.md block; prints the config.toml snippet | Use codex --sandbox read-only for reviews | Real run: Codex read and used the block |
| Roo Code | .roomodes (custom modes) | Yes: reviewer has only read and MCP tools; refactor cannot edit manifests | Format from Roo's docs; not run here |
| Cursor | .cursor/rules/modedial-*.mdc, .cursor/mcp.json | No (rules) | Format from Cursor's docs; not run here (MCP loading was verified earlier) |
| Windsurf | .windsurf/rules/modedial-*.md | No | Format from Windsurf's docs; not run here |
| Cline | .clinerules/modedial.md | No | Format from docs; not run here |
Any AGENTS.md reader | AGENTS.md block | No | Same block Codex read |
| GitHub Copilot (VS Code) | .github/agents/modedial-*.agent.md, .vscode/mcp.json | Reviewer limited to read and search tools | Unverified |
| Gemini CLI | GEMINI.md block, .gemini/commands/modedial/*.toml, .gemini/settings.json | No | Unverified |
| Kilo Code | .kilocodemodes | Same as Roo | Unverified (file name not confirmed) |
| Aider | .modedial/MODES.md | No | Unverified (Aider has no MCP; you load it by hand) |
Where an agent cannot enforce a guard, install writes it into the mode as an explicit rule ("Do not finish until you have run something after your last edit"), so the agent at least knows it. Shared files (AGENTS.md, GEMINI.md, JSON configs) are edited in place with a marked block or one keyed entry, backed up once, and your other content is left alone. The modedial MCP server still needs adding to each agent; install prints or writes the config where it safely can.
Privacy
- No telemetry. No network calls. Nothing leaves your machine unless you choose to share a card or recap.
- The local log records only: schema version, timestamp, event (
set/end), mode id, and a random per-run session id. Never code, prompts, command text, file contents or the names of files that were edited. - If you install the Claude Code hooks, a small per-session state file (
sessions/<id>.jsonin the same folder) holds the active mode id, any scope you declared for Deep Focus (the file or folder names you chose to name), an edit count and a few flags. It is deleted after 7 days and never uploaded. - Location:
%APPDATA%\modedial(Windows),~/Library/Application Support/modedial(macOS),$XDG_DATA_HOME/modedialor~/.local/share/modedial(Linux). Override withMODEDIAL_HOME. Disable logging withMODEDIAL_NO_LOG=1. - Modes are static and bundled in the package. They are never fetched from the network.
CLI
npx modedial list # show modes
npx modedial card # export the latest mode card (PNG, 1200x630)
npx modedial card --mode debug # render a card for any mode
npx modedial recap # recap from your local log, as text
npx modedial recap --image # recap as a PNG (1080x1350)
Every set_mode also saves a mode card to cards/latest.png in the data folder below. Cards and recaps are drawn on your machine with bundled open-licensed fonts, so they look the same on every OS. Posting one is your choice; nothing is uploaded.
Settings
| Variable | Effect |
|---|---|
MODEDIAL_HOME | Use this folder for the log and cards |
MODEDIAL_NO_LOG=1 | Do not write the local log |
MODEDIAL_NO_CARD=1 | Do not save a card on set_mode |
MODEDIAL_CARD_PROJECT=1 | Show the project folder name in the card footer (off by default; drawn into the image only, never logged) |
Develop
npm install
npm test
npm run build
License
MIT
Frequently asked questions
What is modedial MCP Server?
Named modes for coding agents: focus, debug, review and more, with guards on some agents.
How do I install modedial MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. modedial MCP Server runs locally from the npm package modedial with the command npx -y modedial@0.1.3.
Is modedial MCP Server free and open source?
Yes. modedial MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does modedial MCP Server support remote (HTTP) connections?
No remote endpoint is listed for modedial MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does modedial MCP Server provide?
modedial MCP Server provides 3 tools: current_mode, end_mode, and list_modes. See the full tool list for descriptions and parameters.
How is modedial MCP Server's trust score calculated?
modedial MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.
