briandconnelly

Moonbridge

Community briandconnelly
Updated

Connect your coding agent with Kimi for fresh perspectives, rigorous reviews, and delegated tasks

Moonbridge

License: MIT

Moonbridge is a local MCP server that lets compatible MCP clients invoke Kimi Code forindependent 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 adiff, or try an implementation while you keep control of the result. Moonbridge ships pluginintegrations 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 theconversation 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 thebackground and be recovered after a dropped connection.

Before using Moonbridge with sensitive code, read the safety model. The Kimi CLIhas no sandbox or approval prompts, and a throwaway worktree is not a security boundary.

Requirements

  • kimi (Kimi Code) 0.35.x — the version this release is verified against
  • Python ≥ 3.11, uv, and git
  • macOS 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 config

See the Kimi Code documentation for CLI installation andauthentication.

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@moonbridge

Start 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@moonbridge

Other MCP clients

Moonbridge can work with another client if it supports local stdio servers. Adapt the moonbridgeentry in .mcp.json to that client's configuration format. Claude Code and Codex arethe 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 call
  • Get 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:delegateshortcuts. 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 runningkimi-code 0.35.0, not inferred from its documentation.

The kimi CLI has no sandbox and no approval prompts. Prompt mode (kimi -p) forcesautonomous mode and runs shell commands and file writes with your own user's privileges. UnlikeCodex, 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 writetool. This is the real control, and it works: an agent declaring Read, Glob, Grep reportsexactly 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 keepinghonest runs tidy, not as containment.

Three limits that follow, stated plainly because they are easy to assume away:

  1. Read-only prevents modification, not disclosure. Kimi's Read tool accepts absolute paths, soa prompt-injected repository can make a consult read files elsewhere on your machine and sendthem to your provider. Do not point any workflow at a workspace whose contents you would not handto that provider.
  2. 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 rundid.
  3. Kimi loads context you did not mention. It auto-loads the workspace's AGENTS.md anddiscovers skills from its own user/project directories and from the extra_skill_dirs entriesin its config.toml, which may point anywhere on disk. Its built-in skills always load. Theisolation setting reduces this but cannot eliminate it.

Secret redaction covers gathered diffs and Kimi's returned output. It does not cover what youtype, or files Kimi reads for itself.

For the complete threat model and disclosure policy, see SECURITY.md andCOMPATIBILITY.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
kimi_status free readiness, version, provider configuration, resolved defaults
kimi_capabilities free full inventory, schemas, per-tool error codes
kimi_models free model aliases from your config.toml, with each alias's declared efforts
kimi_consult / _async paid read-only Q&A
kimi_review_changes / _async paid structured review of working_tree, branch, or commit
kimi_delegate / _async paid returns a reviewable diff, never applied
kimi_dry_run, kimi_delegate_dry_run free preview scope, diff size, redactions before spending
kimi_job_{status,result,consume_result,cancel,list} free background job lifecycle

Two details prevent surprising runs:

  • model takes an alias, not a provider model id — whatever you defined as[models."<alias>"] in config.toml. An unknown alias is rejected as invalid_model.
  • reasoning_effort is validated locally. Kimi silently ignores an effort it does notrecognize rather than rejecting it, so this server refuses one the alias does not declare — a runthat quietly used the default while reporting your requested effort would be worse than an error.

Configuration

Environment variables, all prefixed MOONBRIDGE_:

Variable Default Meaning
TIMEOUT_SECONDS 300 per-call wall clock, clamped 10–600
MODEL unset default model alias
REASONING_EFFORT unset default effort
ISOLATION inherit inherit or ignore-skills
MAX_INPUT_BYTES 200000 bound on gathered context
MAX_DELEGATE_DIFF_BYTES 200000 bound on a returned diff
JOB_TTL / JOB_MAX_SECONDS / JOB_MAX_COUNT 86400 / 1800 / 50 background job limits
STATE_DIR ~/.cache/moonbridge/jobs job records
LOG_LEVEL / LOG_FILE WARNING / unset logging
SUPPORTED_VERSIONS 0.35 tested kimi minors
EXTRA_ARGS 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 anunrelated session, so the allowlist is empty and a configured value fails loudly rather than beingsilently 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 CLI

The authoritative quality gate and contribution workflow live inAGENTS.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@moonbridge

In Claude Code, run /plugin marketplace add <path to this checkout>, then install as above. Thistests the plugin files in your checkout, but the MCP server still comes from the released tagpinned 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-mcp

In 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 kimi CLI does and does not guarantee, and everydeliberate 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 — decisionhistory, not current policy.

MCP Server · Populars

MCP Server · New

    Get-Concord-AI

    Concord MCP

    Live messaging for coding agents

    Community Get-Concord-AI
    alijancb

    Subio MCP

    Open-source MCP server for discovering fast-growing internet conversations with Subio

    Community alijancb
    ruezo

    MCP Video Digest (视频内容提取总结)

    MCP Server for transcribing videos via video links and summarizing video content

    Community ruezo
    LastSearch-HQ

    LastSearch

    Reliable research infrastructure for AI agents. Evidence-backed web search with citations, confidence scores, and Clarity anti-hallucination. MCP server, REST API, Python SDK.

    Community LastSearch-HQ
    gtfodevs

    Autonomo MCP

    Tired of 'it works' lies? Autonomo MCP makes your AI prove it—on real hardware, right in your editor.

    Community gtfodevs