opencode-mcp-bridge

nmt3325/opencode-mcp-bridge
★ 0 stars TypeScript Code/Dev Tools Updated 2d ago
Expose opencode (opencode serve) as an MCP server. Async tools that always answer within 55s, so MCP clients with a 60s timeout can drive a full coding agent + shell.
View on GitHub → 🔍 Audit Wallet Slippage →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "opencode-mcp-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "nmt3325/opencode-mcp-bridge"
      ]
    }
  }
}

README Excerpt

MCP しか接続できない AI チャット(tool calling API を直接使えないクライアント)から、opencode のコーディングエージェントとシェルをフル機能で操作するために作りました。 > **設計上の最重要ポイント**: すべての MCP ツールは **必ず 55 秒以内にレスポンスを返します**。 > 60 秒でタイムアウトする MCP クライアントでも「呼び出し失敗」にならないよう、長時間処理は必ず > 「開始 → ジョブ ID を返す → ポーリング」の非同期パターンに分解しています。 | 課題 | 素の opencode | 本ブリッジ | | --- | --- | --- |

Tools (20)

OPENCODE_API_TOKENOPENCODE_BASE_URLOPENCODE_MCP_ALLOW_PATTERNSOPENCODE_MCP_DENY_PATTERNSOPENCODE_MCP_MAX_OUTPUT_CHARSOPENCODE_MCP_POLL_INTERVAL_MSOPENCODE_MCP_PTY_BUFFER_CHARSOPENCODE_MCP_PTY_SHELLOPENCODE_MCP_REQUEST_TIMEOUT_MSOPENCODE_MCP_SHELL_BACKENDOPENCODE_MCP_SHELL_TIMEOUT_SECONDSOPENCODE_MCP_TOKENOPENCODE_MCP_WAIT_MAX_SECONDSopencode_abortopencode_diffopencode_find_fileopencode_grepopencode_healthopencode_permission_replyopencode_permissions_pending