opencode-mcp is a local dispatcher. It has no auth, no TLS, and it will execute OpenCode against any cwd the MCP client sends.
- Bind to
127.0.0.1(the default). - Point
--cwdat a dedicated worktree, not your whole home directory. - Treat tool arguments as untrusted if the MCP host is shared.
- Publish the
/mcpport to the internet or a tunnel. - Bind
0.0.0.0without an authenticating reverse proxy. - Run it as a privileged user.
Open a private GitHub security advisory on rlwillen0121/opencode-mcp.