# Titula MCP runbook for OpenCode v2 Use OpenCode v2's `mcp.servers` schema. Do not use the v1 `mcp.titula` layout. ## Fixed connection - Name: `titula` - URL: `https://oracle.tail4a8b59.ts.net:3201/api/mcp` - Type: `remote` (Streamable HTTP) - OAuth: `false` - Recommended scope: global, so Titula is available in every project ## 1. Check Tailscale reachability Run: ```sh curl --connect-timeout 5 --max-time 8 --silent --show-error --output /dev/null --write-out 'HTTP %{http_code}\n' https://oracle.tail4a8b59.ts.net:3201/api/mcp ``` Require HTTP 200 and JSON status `connected`. HTTP 502 means the web endpoint answered but its MCP/backend health check failed. Stop on timeout/refused connection and ask the user to connect this device to Tailscale. ## 2. Inspect existing OpenCode MCPs Run `opencode mcp list` from the current project. Inspect the global OpenCode config and this project's `opencode.json`/`opencode.jsonc` for `mcp.servers.titula`. V2 server names belong under `mcp.servers`. If a `titula` entry already points to another URL or a higher-precedence project entry overrides the global one, report the conflicting file and URL before changing anything. Never replace the whole config or change another named server. ## 3. Add or repair the global entry If there is no conflicting `titula` entry, add it globally with the supported CLI: ```sh opencode mcp add titula --global --url https://oracle.tail4a8b59.ts.net:3201/api/mcp ``` Then edit only the Titula entry in the global config written by OpenCode so it is exactly equivalent to: ```jsonc { "mcp": { "servers": { "titula": { "type": "remote", "url": "https://oracle.tail4a8b59.ts.net:3201/api/mcp", "oauth": false } } } } ``` Merge this entry into the existing object; preserve all other top-level settings, comments, and server entries. Do not put `titula` directly under `mcp` in OpenCode v2. ## 4. Verify and read once Run `opencode mcp list`; require `titula` to report `connected`. If not, inspect the status/output and do not claim success. Discover and count Titula tools loaded by the current OpenCode session. OpenCode may expose `project.list` with a server prefix such as `titula_project_list`. Call only the Titula `project.list` tool once, with `{}`. Do not call create, update, delete, import, export, delivery, or test-execution tools. If the running session has not reloaded the global config, tell the user to reload/restart OpenCode before calling it. ## 5. Report Report network result, config scope/file, exact URL and `oauth: false`, `opencode mcp list` status, number of tools loaded, read result, and any reload or conflict still pending. Distinguish a saved config from a connection actually verified by OpenCode.