MiMo-Code icon indicating copy to clipboard operation
MiMo-Code copied to clipboard

MCP servers not initialized in serve mode

Open Cipher208 opened this issue 4 months ago • 0 comments

Description

MCP servers configured in ~/.config/mimocode/mimocode.json work correctly in TUI mode but are not initialized in mimo serve (headless server mode).

Steps to Reproduce

  1. Configure MCP servers in ~/.config/mimocode/mimocode.json:
{
  "mcp": {
    "ariel-memory": {
      "type": "local",
      "command": ["sh", "-c", "cd /path/to/mcp-ariel-memory && python3 -m mcp_server.server --transport stdio"],
      "enabled": true,
      "timeout": 60000
    },
    "context-mode": {
      "type": "local",
      "command": ["node", "/path/to/server.bundle.mjs"],
      "enabled": true,
      "timeout": 60000
    }
  }
}
  1. Run mimo (TUI) — MCP servers connect successfully:
INFO  service=mcp key=ariel-memory type=local found
INFO  service=mcp key=context-mode type=local found
INFO  service=mcp key=context-mode toolCount=11 create() successfully created client
INFO  service=mcp key=ariel-memory toolCount=25 create() successfully created client
  1. Run mimo serve — no MCP initialization at all:
INFO  service=config path=~/.config/mimocode/mimocode.json loading
Warning: MIMOCODE_SERVER_PASSWORD is not set; server is unsecured.
mimocode server listening on http://127.0.0.1:4098

No service=mcp lines appear in logs. MCP tools are not available via mimo attach.

Expected Behavior

MCP servers should be initialized in serve mode the same way they are in TUI mode, making MCP tools available to remote clients connecting via mimo attach.

Use Case

Accessing MiMoCode from a mobile device via Tailscale. Serve mode + attach is the natural way to do this remotely, but without MCP support it is incomplete.

Environment

  • MiMoCode version: @mimo-ai/cli 0.1.5
  • OS: Debian Linux (server), accessed from Android via Tailscale
  • Config location: ~/.config/mimocode/mimocode.json

Cipher208 avatar Jul 14 '26 23:07 Cipher208