# Add Mosyn to OpenCode

MCP URL: https://mosyn.lycatra.com/mcp

## Steps

1. Add the Mosyn entry to your OpenCode config.
2. Sign in with `opencode mcp auth mosyn`, or let OpenCode ask on first use.

## Commands

Sign in:

```sh
opencode mcp auth mosyn
```

Check it:

```sh
opencode mcp list
```

## Config file

`~/.config/opencode/opencode.json, or opencode.json in a project`:

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "mosyn": {
      "type": "remote",
      "url": "https://mosyn.lycatra.com/mcp",
      "enabled": true
    }
  }
}
```

## Sign in

`opencode mcp auth mosyn` opens Mosyn's approval page in the browser.

## Approve on your phone

A browser page from Mosyn opens with an eight-character code and a QR code. Open the Mosyn app on your phone and approve the request there (scan the QR code, tap the link on the phone, or type the code in Settings → Connect an assistant → Have a code?).

Never paste the code into a chat; it goes into the Mosyn app only.

## Check that it worked

`opencode mcp list` shows mosyn as authenticated.

## If something goes wrong

| What you see | What to do |
| --- | --- |
| Sign-in or discovery fails. | `opencode mcp debug mosyn` tests the connection and the sign-in discovery. |
| Stale sign-in. | `opencode mcp logout mosyn`, then `opencode mcp auth mosyn`. |

## Sources

- https://opencode.ai/docs/mcp-servers/

Last checked 2026-09-26. All assistants: https://mosyn.lycatra.com/connect.md
