All servers / Developer / OpenCode MCP server
OpenCode MCP server
MCP server for OpenCode coding workflows, durable async jobs, project resources, and explicit user input
Tested by ConnectATDScore 91 out of 100. Tested 2026-11-18 on package version 3.1.0. Package: opencode-mcp · source
Score breakdown
| Runs | 18 / 20 | |
|---|---|---|
| Tool descriptions | 17 / 20 | |
| Package safety | 20 / 20 | |
| Maintenance | 20 / 20 | |
| Adoption | 16 / 20 |
What we saw
- Starts and answers the MCP handshake: yes (2.3 seconds including download)
- Tools offered: 87
- Last published: 2026-10-29
- Weekly downloads (npm): 22,401
- License: MIT · Direct dependencies: 4
Want this server set up for your team?
ConnectATD builds AI automation and wires up MCP servers like this one. Tell us what you are trying to do.
Talk to ConnectATDTools and how they are described
Agents choose tools from these descriptions. Under each name you can see how many of its parameters are explained.
opencode_health1 of 1 parameter describedCheck server health and version
opencode_config_get1 of 1 parameter describedGet the current opencode configuration
opencode_config_update2 of 2 parameters describedUpdate the opencode configuration. Pass a partial config object with fields to update.
opencode_config_providers1 of 1 parameter describedList all configured providers and their default models
opencode_project_list1 of 1 parameter describedList all projects known to the opencode server
opencode_project_init1 of 1 parameter describedInitialize or open a project directory to host an independent OpenCode session. Use this to create new empty folders, or to explicitly open preexisting projects on the MCP host machine for parallel code generation workloads. This tool operates on the local filesystem; create remote server directories separately.
opencode_project_current1 of 1 parameter describedGet the current active project
opencode_session_list1 of 1 parameter describedList all sessions
opencode_session_create3 of 3 parameters describedCreate a new session. Optionally provide a parentID to create a child session, and a title.
opencode_session_get2 of 2 parameters describedGet details of a specific session by ID
opencode_session_delete2 of 2 parameters describedDelete a session and all its data
opencode_session_update3 of 3 parameters describedUpdate session properties (e.g. title)
opencode_session_children2 of 2 parameters describedGet child sessions of a session
opencode_session_status1 of 1 parameter describedGet status for all sessions (running, idle, etc.)
opencode_session_todo2 of 2 parameters describedGet the todo list for a session
opencode_session_init6 of 6 parameters describedAnalyze the app and create AGENTS.md for a session. NOTE: This is a long-running operation that may take 30-60+ seconds depending on project size.
opencode_session_abort2 of 2 parameters describedAbort a running session
opencode_session_fork3 of 3 parameters describedFork an existing session, optionally at a specific message
opencode_session_share2 of 2 parameters describedShare a session publicly
opencode_session_unshare2 of 2 parameters describedUnshare a previously shared session
opencode_session_diff3 of 3 parameters describedGet the diff for a session, optionally for a specific message
opencode_session_summarize5 of 5 parameters describedSummarize a session using a specified model. NOTE: This is a long-running operation that may take 30-60+ seconds.
opencode_session_revert4 of 4 parameters describedRevert a message in a session
opencode_session_unrevert2 of 2 parameters describedRestore all reverted messages in a session
opencode_permission_list1 of 1 parameter describedList all pending permission requests across all sessions. When a session is blocked waiting for approval (e.g. to run a shell command or access a file outside the project), it appears here. Respond with `opencode_session_permission`.
opencode_session_permission4 of 4 parameters describedRespond to a permission request in a session. Use `opencode_permission_list` to see pending requests. Reply values: 'once' (approve this request only), 'always' (approve this + future matching requests for this session), 'reject' (deny the request).
opencode_session_search2 of 2 parameters describedSearch sessions by keyword in title. Useful for finding a specific session among many.
opencode_message_list3 of 3 parameters describedList all messages in a session with formatted output showing roles and content
opencode_message_get3 of 3 parameters describedGet details of a specific message in a session
opencode_message_send10 of 10 parameters describedSend a prompt message to a session and wait for the AI response. Use parts to send text, and optionally specify a model.
opencode_message_send_async8 of 8 parameters describedSend a prompt asynchronously and return its messageId. Pass sessionId and messageId to opencode_wait to observe this exact turn.
opencode_command_execute8 of 8 parameters describedExecute a slash command in a session (e.g. /init, /undo, /redo)
opencode_shell_execute6 of 6 parameters describedRun a shell command through the opencode session
opencode_find_text2 of 2 parameters describedSearch for text patterns in project files (regex supported). Returns file paths, line numbers, and matching lines.
opencode_find_file5 of 5 parameters describedFind files and directories by name (fuzzy match)
opencode_find_symbol2 of 2 parameters describedFind workspace symbols by name (functions, classes, variables, etc.)
opencode_file_list2 of 2 parameters describedList files and directories at a path
opencode_file_read2 of 2 parameters describedRead the content of a file
opencode_file_status1 of 1 parameter describedGet status for tracked files (VCS changes: modified, added, deleted, etc.)
opencode_provider_list1 of 1 parameter describedList all configured providers with their connection status. Returns a compact summary — use opencode_provider_models to see models for a specific provider.
opencode_provider_models3 of 3 parameters describedList available models for a specific provider. Call opencode_provider_list first to see provider IDs.
opencode_provider_auth_methods1 of 1 parameter describedGet available authentication methods for all providers
opencode_provider_oauth_authorize3 of 3 parameters describedStart OAuth authorization for a provider
opencode_provider_oauth_callback2 of 2 parameters describedHandle OAuth callback for a provider
opencode_auth_set3 of 3 parameters describedSet authentication credentials for a provider (e.g. API key). Credentials are stored globally and shared across all projects.
opencode_path_get1 of 1 parameter describedGet the current working path of the opencode server
opencode_vcs_info1 of 1 parameter describedGet VCS (version control) info for the current project (branch, remote, status)
opencode_instance_dispose1 of 1 parameter describedDispose the current opencode instance (shuts it down). WARNING: This is destructive and will terminate the server.
opencode_agent_list1 of 1 parameter describedList all available agents with their names, descriptions, and modes (primary/subagent)
opencode_command_list1 of 1 parameter describedList all available commands (built-in and custom slash commands)
opencode_lsp_status1 of 1 parameter describedGet the status of LSP (Language Server Protocol) servers
opencode_formatter_status1 of 1 parameter describedGet the status of configured formatters
opencode_mcp_status1 of 1 parameter describedGet the status of all MCP servers configured in opencode
opencode_mcp_add3 of 3 parameters describedAdd an MCP server dynamically to opencode
opencode_tool_ids1 of 1 parameter describedList all available tool IDs that the LLM can use (experimental)
opencode_tool_list3 of 3 parameters describedList tools with JSON schemas for a given provider and model (experimental)
opencode_log5 of 5 parameters describedWrite a log entry to the opencode server
opencode_setup1 of 1 parameter describedCheck OpenCode status, provider configuration, and optionally initialize a project directory. Use this as the first step when starting work — it tells you what is ready and what still needs configuration.
opencode_ask9 of 9 parameters describedAsk OpenCode a question in one step. Creates a new session, sends your prompt, and returns the AI response. This is the easiest way to interact with OpenCode.
opencode_reply8 of 8 parameters describedSend a follow-up message to an existing session. Use this to continue a conversation started with opencode_ask or opencode_session_create.
opencode_conversation3 of 3 parameters describedGet the full conversation history of a session, formatted for easy reading. Shows all messages with their roles and content.
opencode_sessions_overview1 of 1 parameter describedGet a quick overview of all sessions with their titles and status. Useful to find which session to continue working in.
opencode_context1 of 1 parameter describedGet full project context in one call: current project, path, VCS info, config, and available agents. Useful to understand the current state before starting work.
opencode_wait6 of 6 parameters describedWait for a session or durable job. Returns completed, failed, input_required, or a resumable timeout. Cancelling this wait stops observation; use job_cancel or session_abort to stop OpenCode.
opencode_review_changes3 of 3 parameters describedGet a formatted summary of all file changes made in a session. Shows diffs in a readable format.
opencode_provider_test5 of 5 parameters describedQuick-test whether a provider is working. Creates a temporary session, sends a trivial prompt, checks the response, and cleans up. Great for debugging auth issues.
opencode_run10 of 10 parameters describedSend a task and wait for its correlated response. Returns a durable job ID; an observation timeout leaves the remote job running and can be resumed with opencode_wait.
opencode_fire9 of 9 parameters describedDispatch a durable background task and return its job, session and message IDs immediately. Use opencode_check or opencode_wait to observe; job_cancel stops the task.
opencode_check5 of 5 parameters describedGet current task status, pending input, todos and file counts. Uses session summary metadata instead of fetching patches. Pass jobId for exact durable turn correlation; detailed includes response text.
opencode_status1 of 1 parameter describedGet a quick status dashboard: server health, provider count, session count, and VCS info. Lighter than opencode_setup — good for at-a-glance checks.
opencode_tui_append_prompt2 of 2 parameters describedAppend text to the TUI's prompt input field
opencode_tui_submit_prompt1 of 1 parameter describedSubmit the current prompt in the TUI (equivalent to pressing Enter)
opencode_tui_clear_prompt1 of 1 parameter describedClear the current prompt text in the TUI
opencode_tui_execute_command2 of 2 parameters describedExecute a slash command through the TUI (e.g. '/init', '/undo')
opencode_tui_show_toast4 of 4 parameters describedShow a toast notification in the TUI
opencode_tui_open_help1 of 1 parameter describedOpen the help dialog in the TUI
opencode_tui_open_sessions1 of 1 parameter describedOpen the session selector in the TUI
opencode_tui_open_models1 of 1 parameter describedOpen the model selector in the TUI
opencode_tui_open_themes1 of 1 parameter describedOpen the theme selector in the TUI
opencode_events_poll4 of 4 parameters describedPoll project events from OpenCode, or explicitly select global scope. Collects up to maxEvents within the duration. Connection failures are reported with any partial events; stopping observation does not abort remote work.
opencode_question_list1 of 2 parameters describedList pending OpenCode questions, optionally filtered to a session.
opencode_question_reply1 of 3 parameters describedAnswer an OpenCode question request. Supply one array of selected labels or free text per question.
opencode_question_reject1 of 2 parameters describedReject a pending OpenCode question explicitly.
opencode_job_get0 of 1 parameter describedObserve a durable job by ID, including pending inputs and final results.
opencode_job_cancel0 of 1 parameter describedExplicitly abort the OpenCode session owned by a job. This also stops other work in that session.
opencode_job_list0 of 1 parameter describedList locally retained jobs in this OpenCode server and credential scope.
opencode_job_input0 of 2 parameters describedRespond to a job's pending questions or permissions. Omit responses to request MCP forms when supported, or receive manual response instructions. Never approves automatically.
Tested in a sandbox with an empty environment: no API keys, a throwaway folder, nothing from a real account. A passing test shows the server runs and responds. It is not a security audit.