opencode-delegator
Provides tools for Git operations such as checking status, viewing diffs, committing changes, and viewing commit history.
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., "@opencode-delegatorWrite a Python script to scrape a website"
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.
OpenCode Delegator
MCP Server — 让 Codex、Claude Code 等 AI 编码助手只做决策,将代码编写、编辑、执行全部委派给 OpenCode。
快速开始
安装
npm install -g opencode-delegator或直接使用 npx:
npx opencode-delegator前置要求
Node.js >= 18
OpenCode CLI 已安装并在 PATH 中
Related MCP server: AgentSpawnMCP
配置
Codex CLI — 编辑 ~/.codex/config.toml:
[mcp_servers.opencode]
command = "npx"
args = ["-y", "opencode-delegator"]
env = { OPENCODE_DEFAULT_PROJECT = "/path/to/project" }Claude Code:
claude mcp add opencode -- npx -y opencode-delegatorClaude Desktop — 编辑配置文件:
{
"mcpServers": {
"opencode": {
"command": "npx",
"args": ["-y", "opencode-delegator"],
"env": { "OPENCODE_DEFAULT_PROJECT": "/path/to/project" }
}
}
}环境变量
变量 | 默认值 | 说明 |
|
|
|
| - | 默认项目绝对路径 |
|
| OpenCode 可执行文件路径 |
|
| 超时时间 (ms) |
|
| 启用命令白名单 |
| - | JSON 格式多项目配置 |
也支持配置文件 opencode-delegator.json,参见 config.example.json。
工具
工具 | 说明 |
| 创建/覆写文件(支持 AI 生成) |
| 通过 OpenCode 编辑文件(自动 lint/typecheck) |
| 读取文件内容 |
| ripgrep 搜索代码库 |
| 执行 shell 命令(带安全过滤) |
| 运行测试套件(自动检测框架) |
| 查看分支和文件状态 |
| 查看 diff |
| 暂存并提交 |
| 查看提交历史 |
| OpenCode 分析需求并输出方案 |
| 执行已生成的方案 |
| 列出已注册项目 |
| 动态注册新项目 |
| 列出活跃会话(persistent) |
| 恢复历史会话(persistent) |
| 通用委派工具 |
MCP Resources
资源 | URI | 说明 |
project-structure |
| 项目文件树 |
project-dependencies |
| 依赖信息 |
project-recent |
| 最近 git 变更 |
安全
路径校验:所有文件操作限制在项目目录内,防止路径遍历
命令过滤:拦截危险 shell 命令(
rm -rf /、curl | sh等),支持白名单模式审计日志:所有工具调用记录到
~/.opencode-delegator/audit.jsonl
架构
┌─────────────────┐ MCP (stdio) ┌──────────────────┐
│ Codex CLI │ ◄────────────────────► │ opencode- │
│ Claude Code │ │ delegator │
│ Cursor 等 │ │ (MCP Server) │
└─────────────────┘ └────────┬─────────┘
│
┌───────────────┼───────────────┐
▼ ▼ ▼
┌──────────┐ ┌──────────┐ ┌──────────┐
│ Project A │ │ Project B │ │ Project C │
└──────────┘ └──────────┘ └──────────┘文档
License
MIT
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
- AlicenseBqualityCmaintenanceAn MCP server that supercharges AI assistants with powerful tools for software development, enabling research, planning, code generation, and project scaffolding through natural language interaction.Last updated1159100MIT
- Alicense-qualityAmaintenanceA universal MCP server for spawning agents with any OpenAI-compatible LLM, supporting cloud and local models, and integrating with Claude Code, OpenCode, and Codex CLI.Last updatedMIT
- Alicense-qualityDmaintenanceMCP server that integrates OpenClaw AI assistant with Claude Code, enabling chat, task management, messaging, memory, alerts, agent spawning, and web search through configurable tools.Last updated340MIT
- AlicenseAqualityAmaintenanceAn MCP server that empowers AI coding agents to work effectively with Minecraft mod development, providing static analysis of decompiled source code and runtime interaction with a running Minecraft instance.Last updated312610MIT
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
MCP server for AI dialogue using various LLM models via AceDataCloud
An MCP server that gives your AI access to the source code and docs of all public github repos
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/S0ra-ai/OpenCode_MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server