Ayúdame a conectar Platic con OpenCode. Usa la guía de abajo, guíame en mi idioma un paso a la vez y muestra las capturas incluidas cuando correspondan. Comprueba el resultado real antes de afirmar que funciona.

# Connect Platic to OpenCode

Instructions for the assistant: guide the user in their language, one step at a time. First run `opencode --version` and check `opencode mcp add --help`. The current documentation below is for V2; do not apply its JSON structure blindly to V1.

MCP URL: `https://api.platic.ai/mcp`. Name: `platic`.

## Add and authenticate in V2

Check `opencode mcp list` for an existing entry. If the installed command supports the URL option and no entry already exists, run:

```sh
opencode mcp add platic --url https://api.platic.ai/mcp
```

Then authenticate when needed:

```sh
opencode mcp auth platic
```

In a session, `/mcps` also provides server management and sign-in. Let the user select only the intended Platic workspaces. Keep OAuth enabled; do not replace it with an API key for this guide.

## Manual V2 configuration

Merge into the configuration for the intended scope. V2 uses `mcp.servers`:

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "servers": {
      "platic": {
        "type": "remote",
        "url": "https://api.platic.ai/mcp"
      }
    }
  }
}
```

Preserve other entries. If using V1, consult the official V1 documentation selected from OpenCode's docs navigation or update the client deliberately; do not rewrite an existing V1 configuration into V2 without agreement.

## Verify

Check `/mcps` or `opencode mcp list` for the authenticated state. If requested, call read-only `list_workspaces` and inspect the result. Do not change data or globally auto-approve tools to prove installation. When sign-in uses a callback on another machine, follow OpenCode's own prompt; never paste a callback URL containing credentials into chat.

Reviewed 1 December 2026 against official documentation. OpenCode was not available on PATH for a local registration or OAuth test; no screenshots or success are claimed.

Source: [OpenCode V2 MCP servers](https://opencode.ai/docs/mcp-servers).
