About Opencode Agent MCP
Opencode Agent MCP is an MCP server in the Agents category: mCP server that lets an upstream Agent invoke one or more independent OpenCode Agents across multiple workspaces — the practical bridge toward multi-workspace A2A.
Install
git clone https://github.com/define9/opencode-agent-mcpThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (9)
answer_questionForward the upstream agent's decision (`once` / `always` / `reject` / `{answers}`) back to the OpenCode host.
Parameters not published.
cancel_sessionAbort the session and stop its SSE subscription.
Parameters not published.
create_sessionCreate a new session in the specified workspace and start its SSE subscription.
Parameters not published.
list_sessionsList OpenCode sessions under a workspace.
Parameters not published.
list_workspacesList all registered workspaces and the current default.
Parameters not published.
send_messageSend a message synchronously; returns the assistant text, token usage, and completion status.
Parameters not published.
set_workspaceRegister a new workspace (`name` + `cwd`) or switch to an existing one by name.
Parameters not published.
wait_for_messageBlock until the session reaches `idle` or an error is observed.
Parameters not published.
wait_for_questionBlock until the OpenCode host emits a `permission.asked` or `question.asked` event.
Parameters not published.
Ask AI
Ask AI about Opencode Agent MCP
Powered by Claude · Grounded in docs
Security checks
6 checks have not been run yet.