moonbridge
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@moonbridgeGet Kimi's second opinion on this approach."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Moonbridge
Moonbridge is a local MCP server that lets compatible MCP clients invoke Kimi Code for independent second opinions, structured code reviews, and delegated coding tasks.
It gives your primary coding agent another model to ask—one that can challenge a plan, inspect a diff, or try an implementation while you keep control of the result. Moonbridge ships plugin integrations for Claude Code and Codex; other clients can use its local stdio server.
Contents: Why Moonbridge? · Requirements · Quick start · Safety model · Tools · Configuration · Development · Documentation
Why Moonbridge?
Different models notice different things. Moonbridge lets one coding agent bring Kimi into the conversation without making you switch tools or manually shuttle context between terminals.
Workflow | What Kimi does | What you get |
Consult | Reasons under a read-only agent profile | An answer or independent second opinion |
Review | Inspects your git changes without shell or write tools | Structured findings with coverage and verdict |
Delegate | Implements a task inside a throwaway worktree | A reviewable diff that is never applied automatically |
Every workflow returns a structured result to the calling client. Long-running work can run in the background and be recovered after a dropped connection.
Before using Moonbridge with sensitive code, read the safety model. The Kimi CLI has no sandbox or approval prompts, and a throwaway worktree is not a security boundary.
Related MCP server: Kimi MCP Server
Requirements
kimi(Kimi Code) 0.35.x — the version this release is verified againstPython ≥ 3.11,
uv, andgitmacOS or Linux
Claude Code, Codex, or another MCP client that can launch a local stdio server
Make sure Kimi is installed and has at least one configured provider and model alias:
kimi --version
kimi doctor configSee the Kimi Code documentation for CLI installation and authentication.
Quick start
No clone is required. The plugin integrations launch the server from the release tag pinned in
.mcp.json.
Codex
codex plugin marketplace add briandconnelly/moonbridge
codex plugin add moonbridge@moonbridgeStart a new Codex session so it loads the bundled skill and tools.
Claude Code
Run these commands inside Claude Code:
/plugin marketplace add briandconnelly/moonbridge
/plugin install moonbridge@moonbridgeOther MCP clients
Moonbridge can work with another client if it supports local stdio servers. Adapt the moonbridge
entry in .mcp.json to that client's configuration format. Claude Code and Codex are
the integrations currently packaged and documented by this project.
Try it
Ask your coding agent:
Check whether Kimi is ready.— a free readiness check with no model callGet Kimi's second opinion on this approach.Have Kimi review my current changes.Delegate this task to Kimi and show me the proposed diff.
Claude Code also provides /kimi:status, /kimi:consult, /kimi:review, and /kimi:delegate
shortcuts. In Codex, /plugins lets you browse, enable, or disable the installed plugin.
Safety model
Read this before pointing it at anything sensitive. Every statement below was verified by running
kimi-code 0.35.0, not inferred from its documentation.
The kimi CLI has no sandbox and no approval prompts. Prompt mode (kimi -p) forces
autonomous mode and runs shell commands and file writes with your own user's privileges. Unlike
Codex, there is no --sandbox flag to hand it. So this server constrains runs itself:
consult and review get an agent profile whose
tools:list omits every shell and write tool. This is the real control, and it works: an agent declaringRead, Glob, Grepreports exactly those three, and a shell write attempt produces nothing.every run uses a throwaway git worktree. This is defense in depth, not a boundary — asked to write outside its working directory, Kimi will do it. Treat the worktree as keeping honest runs tidy, not as containment.
Three limits that follow, stated plainly because they are easy to assume away:
Read-only prevents modification, not disclosure. Kimi's Read tool accepts absolute paths, so a prompt-injected repository can make a consult read files elsewhere on your machine and send them to your provider. Do not point any workflow at a workspace whose contents you would not hand to that provider.
Delegate is not network-isolated. A delegated task can push, fetch, install dependencies, and call out. The returned diff shows what changed in the worktree — not everything the run did.
Kimi loads context you did not mention. It auto-loads the workspace's
AGENTS.mdand discovers skills from its own user/project directories and from theextra_skill_dirsentries in itsconfig.toml, which may point anywhere on disk. Its built-in skills always load. Theisolationsetting reduces this but cannot eliminate it.
Secret redaction covers gathered diffs and Kimi's returned output. It does not cover what you type, or files Kimi reads for itself.
For the complete threat model and disclosure policy, see SECURITY.md and COMPATIBILITY.md.
Tools
“Paid” means the tool makes a Kimi model call and consumes quota from your configured provider; Moonbridge itself is not a paid service.
Tool | Cost | Notes |
| free | readiness, version, provider configuration, resolved defaults |
| free | full inventory, schemas, per-tool error codes |
| free | model aliases from your |
| paid | read-only Q&A |
| paid | structured review of |
| paid | returns a reviewable diff, never applied |
| free | preview scope, diff size, redactions before spending |
| free | background job lifecycle |
Two details prevent surprising runs:
modeltakes an alias, not a provider model id — whatever you defined as[models."<alias>"]inconfig.toml. An unknown alias is rejected asinvalid_model.reasoning_effortis validated locally. Kimi silently ignores an effort it does not recognize rather than rejecting it, so this server refuses one the alias does not declare — a run that quietly used the default while reporting your requested effort would be worse than an error.
Configuration
Environment variables, all prefixed MOONBRIDGE_:
Variable | Default | Meaning |
| 300 | per-call wall clock, clamped 10–600 |
| unset | default model alias |
| unset | default effort |
|
|
|
| 200000 | bound on gathered context |
| 200000 | bound on a returned diff |
| 86400 / 1800 / 50 | background job limits |
|
| job records |
|
| logging |
|
| tested |
| unset | no safe passthrough exists — any value is refused, see below |
MOONBRIDGE_EXTRA_ARGS accepts nothing today, deliberately. Kimi exposes no config-override,
profile, or feature flags, and reuses two short flags for other purposes: -p is prompt and
-c is continue. Passing them through would override the run's real instructions or resume an
unrelated session, so the allowlist is empty and a configured value fails loudly rather than being
silently ignored.
Development
Set up the project and run the focused test suites from the repository root:
uv sync
uv run pytest
uv run pytest -m integration --no-cov # optional: calls the real Kimi CLIThe authoritative quality gate and contribution workflow live in AGENTS.md and CONTRIBUTING.md.
To exercise the plugin manifest from a checkout, register that checkout as a marketplace:
codex plugin marketplace add <path to this checkout>
codex plugin add moonbridge@moonbridgeIn Claude Code, run /plugin marketplace add <path to this checkout>, then install as above. This
tests the plugin files in your checkout, but the MCP server still comes from the released tag
pinned in .mcp.json; Python edits in the checkout do not affect it.
To run the working tree in Codex, register a separate development server:
codex mcp add moonbridge-dev -- uv run --directory <path to this checkout> moonbridge-mcpIn Claude Code, override the server in the consuming project's own .mcp.json:
{
"mcpServers": {
"moonbridge": {
"command": "uv",
"args": ["run", "--directory", "<path to this checkout>", "moonbridge-mcp"]
}
}
}Documentation
Tool reference — the full caller-facing contract: envelopes, error codes, detail levels, idempotency, jobs. Read it when calling the MCP tools directly.
Compatibility — what the
kimiCLI does and does not guarantee, and every deliberate non-guarantee.Security policy — the verified security model, and how to report a vulnerability.
Contributing — set up a checkout and prepare a pull request.
Agent conventions — the authoritative working rules for humans and agents.
Upgrading kimi — the probes to re-run before supporting a new
kimiversion.Releasing — the ordered release runbook.
Changelog · Architecture decision records — decision history, not current policy.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables LLM-powered code analysis, generation, debugging, and context management through MCP integration with IDEs like Cursor and Claude Desktop.
- Alicense-qualityDmaintenanceAn MCP bridge that enables Claude Code to consult the Kimi AI model in a structured challenge-loop for code review, debugging, and architecture evaluation.722MIT
- Alicense-qualityCmaintenanceEnables users to request a second opinion from a locally authenticated Claude Code model via MCP tools, supporting asynchronous jobs with restricted tools for safety.MIT
- AlicenseBqualityBmaintenanceBridges Codex Desktop with Kimi Code CLI, enabling direct control of AI coding sessions via MCP tools for prompt, status, cancel, and CLI operations.165MIT
Related MCP Connectors
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
A paid remote MCP for CodeG, built to return verdicts, receipts, usage logs, and audit-ready JSON.
A paid remote MCP for code graph MCP for AI coding, built to return verdicts, receipts, usage logs,
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/briandconnelly/moonbridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server