# opencode

Add the following entry under `mcp` in `~/.config/opencode/opencode.json`:

```
{

  "$schema": "https://opencode.ai/config.json",

  "mcp": {

    "mobile-mcp": {

      "type": "local",

      "command": ["npx", "@mobilenext/mobile-mcp@latest"],

      "enabled": true

    }

  }

}
```

Save the file. opencode will start Mobile MCP automatically when a mobile tool is invoked.
