opencode-mcp-server@0.5.0
CAUTIONPublisher claims: "Enables MCP clients to drive a running OpenCode v2 instance for sessions, inference, agent delegation, file attachment, MCP server administration, and history access." Observed in sandbox: no network, touches nothing outside the project, writes no memory.
Coverage
Server started and answered tools/list.- Tested
- MCP initialize and tools/list · every tool description, for hidden instructions · every file read, file written and host contacted by what ran
- Not tested
- what the tools do when called with real credentials
Before you give it your token
- It will ask for
OPENCODE_MCP_TOKENOPENCODE_MCP_TOKEN_PATHOPENCODE_PASSWORDTOKEN_PATHConfiguration, not credentials: OPENCODE_MCP_ALLOW_FULL_HISTORY, OPENCODE_MCP_ALLOWED_ROOTS, OPENCODE_MCP_CONFIG, OPENCODE_MCP_DIRECTORY, OPENCODE_MCP_HTTP_URL, OPENCODE_MCP_LOG, OPENCODE_MCP_PERMISSION_PROFILE, OPENCODE_SERVICE_PATHS, OPENCODE_URL, SMOKE_MODEL- Where it talks to
- no vendor host named in the code
- What we saw when it ran
- no credential files read · no network
- What we could not test
- what the tools do when called with real credentials
Connect it with a scoped credential, under the guard. It asks for OPENCODE_MCP_TOKEN, OPENCODE_MCP_TOKEN_PATH, OPENCODE_PASSWORD, TOKEN_PATH and talks to its vendor. Give the credential to the guard, not the server: the value never enters the server's environment and only travels to the host you bind.
Never paste a credential into a chat, a ticket or a report, including ours. How the guard holds it.
Is [email protected] safe to install?
KillerSkills ran it in the KillerSkills honeypot sandbox (2 scenarios) on 2026-11-23 and scored it 63/100 (Caution). It is not known to be malicious, but it has behaviour or code a security policy should decide on before install. Notable findings: Auto-update or dynamic fetch configuration; Access to sensitive file paths; Access to sensitive file paths. Summary: no network, touches nothing outside the project, writes no memory.
Behavior trace
Honeypot run · 30 s · 2 scenariosStatic findings
opencode-mcp-server configure --url http://127.0.0.1:4096Fix: Namespace tool names and keep tool descriptions literal; no instructions to the agent inside them."http://172.16.4.2",Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.config: z10.union([localConfig, remoteConfig]).optional().describe("Server config for action=add"),Fix: Pin versions and sources; vendor anything fetched at install time.{ action: "read", resource: "*.env", effect: "ask" },Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.expect(isPrivateHost("http://8.8.8.8")).toBe(false)Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.{ action: "read", resource: "*.env", effect: "ask" },Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.const remote = await client.callTool({ name: "opencode_configure", arguments: { url: "http://93.184.216.34:4096", password } })Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.{ action: "read", resource: "*.env.*", effect: "ask" }Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."http://10.1.2.3",Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.config: z.union([localConfig, remoteConfig]).optional().describe("Server config for action=add"),Fix: Pin versions and sources; vendor anything fetched at install time.const remote = await client.callTool({ name: "opencode_configure", arguments: { url: "http://93.184.216.34:4096", password } })Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.expect(isPrivateHost("http://172.32.0.1")).toBe(false)Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.MCP server shivrajansingh/opencode-mcp-server on Glama, built from https://github.com/shivrajansingh/opencode-mcp-server.Fix: Namespace tool names and keep tool descriptions literal; no instructions to the agent inside them.opencode-mcp-server --http --port 7777 Run the Streamable HTTP transportFix: Namespace tool names and keep tool descriptions literal; no instructions to the agent inside them.opencode-mcp-server configure --url http://127.0.0.1:4096Fix: Namespace tool names and keep tool descriptions literal; no instructions to the agent inside them.expect(isPrivateHost("http://172.32.0.1")).toBe(false)Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.expect(isPrivateHost("http://8.8.8.8")).toBe(false)Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.export async function startHttpServer(factory: () => McpServer, options: HttpOptions): Promise<void> {Fix: Namespace tool names and keep tool descriptions literal; no instructions to the agent inside them.env: { ...process.env, ...env },Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.{ action: "read", resource: "*.env.*", effect: "ask" },Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."type":"string","description":"What the agent should do"},"agent":{"description":"Agent id (default general; try explore for read-only research)","type":"stringFix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct."http://192.168.0.10",Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.opencode-mcp-server --http --port 7777 Run the Streamable HTTP transportFix: Namespace tool names and keep tool descriptions literal; no instructions to the agent inside them.Cost to the agent
Tokens estimated at four characters each. The tool list is re-read by the agent on every turn, so it is the number to compare between servers that do the same job: ranked across the index.
Known vulnerabilities
Vulnerability advisories (OSV) cover npm and PyPI packages; this registry has no advisory database.
What would make this Verified
17 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%- Reads credential files≈ +27 on the totalThe sandbox saw reads under ~/.ssh, ~/.aws, ~/.npmrc, ~/.config or similar. Read only files inside the project, and only the ones the task needs. Seen: ~/.config/opencode-mcp/config.json.
- Unclaimed publisher≈ +8 on the totalClaim shivrajansingh: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
- Touches files outside the project≈ +7 on the totalKeep reads and writes inside the working directory, or declare the exact paths in `filesystem:` and explain why in the README.
- Auto-update or dynamic fetch configuration≈ +4 on the totalPin versions and sources; vendor anything fetched at install time.
- Access to sensitive file paths≈ +4 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
- MCP server using network transport (SSE/HTTP)≈ +2 on the totalNamespace tool names and keep tool descriptions literal; no instructions to the agent inside them.