Skip to main content

MCP server for spawning Kimi K2.5 agents

Project description

Moonbridge

Your MCP client just got a team.

Spawn Kimi K2.5 agents from Claude Code, Cursor, or any MCP client. Run 5 approaches in parallel for the cost of one Claude request.

uvx moonbridge

Quick Start

  1. Install Kimi CLI and authenticate:

    uv tool install --python 3.13 kimi-cli && kimi login
    
  2. Add to MCP config (~/.mcp.json):

    {
      "mcpServers": {
        "moonbridge": {
          "type": "stdio",
          "command": "uvx",
          "args": ["moonbridge"]
        }
      }
    }
    
  3. Use it. Your MCP client now has spawn_agent and spawn_agents_parallel tools.

When to Use Moonbridge

Task Why Moonbridge
Parallel exploration Run 5 approaches simultaneously, pick the best
Frontend/UI work Kimi excels at visual coding and component design
Tests and documentation Cost-effective for high-volume tasks
Refactoring Try multiple strategies in one request

Best for: Tasks that benefit from parallel execution or volume.

Tools

Tool Use case
spawn_agent Single task: "Write tests for auth.ts"
spawn_agents_parallel Go wide: 5 agents, 5 approaches, pick the best
check_status Verify Kimi CLI is installed and authenticated

Example: Parallel Exploration

{
  "agents": [
    {"prompt": "Refactor to React hooks"},
    {"prompt": "Refactor to Zustand"},
    {"prompt": "Refactor to Redux Toolkit"}
  ]
}

Three approaches. One request. You choose the winner.

Tool Parameters

spawn_agent

Parameter Type Required Description
prompt string Yes Task description for the agent
thinking boolean No Enable reasoning mode (default: false)
timeout_seconds integer No Override default timeout (30-3600)

spawn_agents_parallel

Parameter Type Required Description
agents array Yes List of agent configs (max 5)
agents[].prompt string Yes Task for this agent
agents[].thinking boolean No Enable reasoning for this agent
agents[].timeout_seconds integer No Timeout for this agent

Response Format

All tools return JSON with these fields:

Field Type Description
status string success, error, timeout, auth_error, or cancelled
output string stdout from Kimi agent
stderr string|null stderr if any
returncode int Process exit code (-1 for timeout/error)
duration_ms int Execution time in milliseconds
agent_index int Agent index (0 for single, 0-N for parallel)
message string? Human-readable error context (when applicable)

Configuration

Environment Variables

Variable Description
MOONBRIDGE_TIMEOUT Default timeout in seconds (30-3600)
MOONBRIDGE_MAX_AGENTS Maximum parallel agents
MOONBRIDGE_ALLOWED_DIRS Colon-separated allowlist of working directories
MOONBRIDGE_LOG_LEVEL Set to DEBUG for verbose logging

Troubleshooting

"Kimi CLI not found"

Install the Kimi CLI:

uv tool install --python 3.13 kimi-cli
which kimi

"auth_error" responses

Authenticate with Kimi:

kimi login

Timeout errors

Increase the timeout for long-running tasks:

{"prompt": "...", "timeout_seconds": 1800}

Or set a global default:

export MOONBRIDGE_TIMEOUT=1800

Permission denied on working directory

Verify the directory is in your allowlist:

export MOONBRIDGE_ALLOWED_DIRS="/path/to/project:/another/path"

Debug logging

Enable verbose logging:

export MOONBRIDGE_LOG_LEVEL=DEBUG

Platform Support

macOS and Linux only. Windows is not supported.

License

MIT. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moonbridge-0.2.0.tar.gz (62.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moonbridge-0.2.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file moonbridge-0.2.0.tar.gz.

File metadata

  • Download URL: moonbridge-0.2.0.tar.gz
  • Upload date:
  • Size: 62.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for moonbridge-0.2.0.tar.gz
Algorithm Hash digest
SHA256 96f8e42ef005d952199bb50ca94b4532ac5634535869509294f347c50c460114
MD5 e87584d1f4700008eb67551af85a8daf
BLAKE2b-256 b838623488245d05d44a7ede72c075f8d7e301876684cc03c2521b4650f7b523

See more details on using hashes here.

Provenance

The following attestation bundles were made for moonbridge-0.2.0.tar.gz:

Publisher: publish.yml on misty-step/moonbridge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file moonbridge-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: moonbridge-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for moonbridge-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a1b4c2369a2c9fb5542e5122eb225651419a28623f412b24e17a1f8d145c7c2
MD5 dad814cb8c896c0c6aeb6ca734dd2348
BLAKE2b-256 bb5e2e0ce9b8c501e400e25b0edec1e341f7b2dfecec0b0adea113110c7581a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for moonbridge-0.2.0-py3-none-any.whl:

Publisher: publish.yml on misty-step/moonbridge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page