Skip to content

Connect opencode

Terminal window
opencode mcp add <name> --url https://<name>-mcp.deemwar.com/mcp
opencode mcp auth <name>

opencode mcp auth opens the sign-in page in your browser. Add --global to mcp add to use the server in every project, not just this one.

On the same machine (dmcp terminal serve, no –publish)

Section titled “On the same machine (dmcp terminal serve, no –publish)”
Terminal window
opencode mcp add <agent> --url http://127.0.0.1:8765/mcp --header Authorization='Bearer <local token>'

The local token comes from dmcp token --local. dmcp terminal connect --client opencode prints these lines with your values filled in.