MCP server · Audited from source
opencode-mcp
by alaeddinemessadi/opencode-mcpMIT licenceAudited 12 Oct 2026 · source aa814d1c2a88
Is it safe? With care — CAUTION, grade B (89/100). It exposes 86 tools: 68 read, 16 write and 2 destructive. The audit recorded 10 findings (0 critical, 0 high, 2 medium, 8 low). Maintainer's description: MCP server for OpenCode AI — 70 tools, 10 resources, 5 prompts. Use npx opencode-mcp with Claude Desktop, Claude Code, Cursor, Windsurf, or any MCP client.
Cite
Cite this page
ModelsAtlas. “opencode-mcp (AlaeddineMessadi/opencode-mcp)”. Retrieved 12 Oct 2026. https://modelsatlas.com/mcp/alaeddinemessadi/opencode-mcp
Trust audit
Audit 0.4.1 · full source read 12 Oct 2026
10 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared1 observation
- NetworkDeclared3 observations
- ShellNone observedNothing seen in the source
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS |
L1 Static source | Secrets, path traversal, supply chain | WARN 8 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 1 finding |
L3 Inventory | Declared tools match the source | WARN 1 finding |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
alaeddinemessadiUser accountAccount type recorded when we read the repository. - PackagePublished on npm
opencode-mcpat version 3.0.0 - LicenceMITFrom the repository, as read at the audited commit.
- Last push24 days agoActivity of the repository when we read it.
- Source commit readaa814d1c2a88The audit covers exactly this commit, read on 12 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory86 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (10)
Sorted by severity
MEDIUMNetwork egressnet.raw_ip · src/helpers.ts:622
tips.push("- Verify OPENCODE_BASE_URL is correct (default: http://127.0.0.1:4096)");- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMFilesystem / pathmcp.destructive_tools
opencode_session_delete, opencode_tui_clear_prompt
- Why
- 2 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
LOWFilesystem / pathfs.system_paths · tests/project-tool.test.ts:123
const result = await callInit({ path: "/etc/foo" });- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.system_paths · tests/tools.test.ts:1563
patterns: ["/etc/hosts"],
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · README.md:88
| `OPENCODE_BASE_URL` | Server endpoint; defaults to `http://127.0.0.1:4096` |
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · docs/configuration.md:9
| `OPENCODE_BASE_URL` | `http://127.0.0.1:4096` | OpenCode HTTP endpoint |
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · docs/configuration.md:44
claude mcp add opencode --env OPENCODE_BASE_URL=http://127.0.0.1:8080 -- npx -y opencode-mcp
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · scripts/mcp-smoke-test.mjs:20
baseUrl: env.OPENCODE_BASE_URL ?? "http://127.0.0.1:4096",
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@modelcontextprotocol/core, @modelcontextprotocol/server, @opencode-ai/sdk, zod, @modelcontextprotocol/client, @modelcontextprotocol/sdk, @types/node, @vitest/coverage-v8
- Why
- 10 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
LOWPrompt injectionprompt.transfer_instruction · docs/getting-started.md:72
Check its current state and pending input. Use `opencode_job_list` to rediscover tracked work after reconnecting. A server/network error or `unknown` state is not a reason to submit the same prompt ag
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
Tools it exposes
86 declared in source · 2 destructive
2 tools can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | Risk | What it does |
|---|---|---|
opencode_session_delete | destructive | Delete a session and all its data |
opencode_tui_clear_prompt | destructive | Clear the current prompt text in the TUI |
opencode_auth_set | write | Set authentication credentials for a provider (e.g. API key). Credentials are stored globally and shared across all projects. |
opencode_command_execute | write | Execute a slash command in a session (e.g. /init, /undo, /redo) |
opencode_config_update | write | Update the opencode configuration. Pass a partial config object with fields to update. |
opencode_log | write | Write a log entry to the opencode server |
opencode_mcp_add | write | Add an MCP server dynamically to opencode |
opencode_message_send | write | Send 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_async | write | Send a prompt asynchronously and return its messageId. Pass sessionId and messageId to opencode_wait to observe this exact turn. |
opencode_provider_oauth_authorize | write | Start OAuth authorization for a provider |
opencode_reply | write | Send a follow-up message to an existing session. Use this to continue a conversation started with opencode_ask or opencode_session_create. |
opencode_run | write | Send 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_session_create | write | Create a new session. Optionally provide a parentID to create a child session, and a title. |
opencode_session_init | write | Analyze 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_update | write | Update session properties (e.g. title) |
opencode_shell_execute | write | Run a shell command through the opencode session |
opencode_tui_execute_command | write | Execute a slash command through the TUI (e.g. |
opencode_tui_submit_prompt | write | Submit the current prompt in the TUI (equivalent to pressing Enter) |
build | read | Build agent |
opencode_agent_list | read | List all available agents with their names, descriptions, and modes (primary/subagent) |
opencode_ask | read | Ask 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_check | read | Get 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_command_list | read | List all available commands (built-in and custom slash commands) |
opencode_config_get | read | Get the current opencode configuration |
opencode_config_providers | read | List all configured providers and their default models |
opencode_context | read | Get 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_conversation | read | Get the full conversation history of a session, formatted for easy reading. Shows all messages with their roles and content. |
opencode_events_poll | read | Poll 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_file_list | read | List files and directories at a path |
opencode_file_read | read | Read the content of a file |
opencode_file_status | read | Get status for tracked files (VCS changes: modified, added, deleted, etc.) |
opencode_find_file | read | Find files and directories by name (fuzzy match) |
opencode_find_symbol | read | Find workspace symbols by name (functions, classes, variables, etc.) |
opencode_find_text | read | Search for text patterns in project files (regex supported). Returns file paths, line numbers, and matching lines. |
opencode_fire | read | Dispatch 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_formatter_status | read | Get the status of configured formatters |
opencode_health | read | Check server health and version |
opencode_instance_dispose | read | Dispose the current opencode instance (shuts it down). WARNING: This is destructive and will terminate the server. |
opencode_job_input | read | Respond to a job |
opencode_job_list | read | List locally retained jobs in this OpenCode server and credential scope. |
opencode_lsp_status | read | Get the status of LSP (Language Server Protocol) servers |
opencode_mcp_status | read | Get the status of all MCP servers configured in opencode |
opencode_message_get | read | Get details of a specific message in a session |
opencode_message_list | read | List all messages in a session with formatted output showing roles and content |
opencode_path_get | read | Get the current working path of the opencode server |
opencode_permission_list | read | List 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_project_current | read | Get the current active project |
opencode_project_init | read | No description in the source |
opencode_project_list | read | List all projects known to the opencode server |
opencode_provider_auth_methods | read | Get available authentication methods for all providers |
opencode_provider_list | read | List all configured providers with their connection status. Returns a compact summary — use opencode_provider_models to see models for a specific provider. |
opencode_provider_models | read | List available models for a specific provider. Call opencode_provider_list first to see provider IDs. |
opencode_provider_oauth_callback | read | Handle OAuth callback for a provider |
opencode_provider_test | read | Quick-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_question_list | read | List pending OpenCode questions, optionally filtered to a session. |
opencode_question_reject | read | Reject a pending OpenCode question explicitly. |
opencode_question_reply | read | Answer an OpenCode question request. Supply one array of selected labels or free text per question. |
opencode_review_changes | read | Get a formatted summary of all file changes made in a session. Shows diffs in a readable format. |
opencode_session_abort | read | Abort a running session |
opencode_session_children | read | Get child sessions of a session |
opencode_session_diff | read | Get the diff for a session, optionally for a specific message |
opencode_session_fork | read | Fork an existing session, optionally at a specific message |
opencode_session_get | read | Get details of a specific session by ID |
opencode_session_list | read | List all sessions |
opencode_session_permission | read | Respond to a permission request in a session. Use |
opencode_session_revert | read | Revert a message in a session |
opencode_session_search | read | Search sessions by keyword in title. Useful for finding a specific session among many. |
opencode_session_share | read | Share a session publicly |
opencode_session_status | read | Get status for all sessions (running, idle, etc.) |
opencode_session_summarize | read | Summarize a session using a specified model. NOTE: This is a long-running operation that may take 30-60+ seconds. |
opencode_session_todo | read | Get the todo list for a session |
opencode_session_unrevert | read | Restore all reverted messages in a session |
opencode_session_unshare | read | Unshare a previously shared session |
opencode_sessions_overview | read | Get a quick overview of all sessions with their titles and status. Useful to find which session to continue working in. |
opencode_setup | read | Check 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_status | read | Get a quick status dashboard: server health, provider count, session count, and VCS info. Lighter than opencode_setup — good for at-a-glance checks. |
opencode_tool_ids | read | List all available tool IDs that the LLM can use (experimental) |
opencode_tool_list | read | List tools with JSON schemas for a given provider and model (experimental) |
opencode_tui_append_prompt | read | Append text to the TUI |
opencode_tui_open_help | read | Open the help dialog in the TUI |
opencode_tui_open_models | read | Open the model selector in the TUI |
opencode_tui_open_sessions | read | Open the session selector in the TUI |
opencode_tui_open_themes | read | Open the theme selector in the TUI |
opencode_tui_show_toast | read | Show a toast notification in the TUI |
opencode_vcs_info | read | Get VCS (version control) info for the current project (branch, remote, status) |
opencode_wait | read | Wait 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. |
Install
Package version 3.0.0 · audited commit aa814d1
Read the findings first. The most severe is Network egress (medium) at src/helpers.ts.
One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 3.0.0. The audit covers commit aa814d1 only.
claude mcp add opencode-mcp --env OPENCODE_SERVER_PASSWORD=${OPENCODE_SERVER_PASSWORD} -- npx -y [email protected]{
"mcpServers": {
"opencode-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"OPENCODE_SERVER_PASSWORD": "${OPENCODE_SERVER_PASSWORD}"
}
}
}
}The command pins the package version recorded in the source (3.0.0); the audit covers commit aa814d1c2a88. Transport: stdio. Reads this environment variable: OPENCODE_SERVER_PASSWORD. Give it the narrowest token it needs.
Audit history
- !CAUTION B 89 / 100
First audit ·
aa814d1c2a88
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/alaeddinemessadi/opencode-mcp/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about opencode-mcp
What is the opencode-mcp MCP server?
What tools does opencode-mcp expose?
Is opencode-mcp safe to connect to an agent?
What credentials does opencode-mcp need?
How does opencode-mcp run?
How current is this page?
Sources
- AlaeddineMessadi/opencode-mcp on GitHub — the source we read, its licence, stars and activityObserved · 12 Oct 2026
- ModelsAtlas trust audit — CAUTION verdict for commit aa814d1c2a88Observed · 12 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the opencode-mcp MCP server?
- What tools does opencode-mcp expose?
- Is opencode-mcp safe to connect to an agent?