Add Mosyn to Gemini CLI
Steps
- Add Mosyn for your user (the default scope is the current project).
- Start `gemini`; the first Mosyn call opens the sign-in, or run `/mcp auth mosyn`.
Commands
gemini mcp add --transport http --scope user mosyn https://mosyn.lycatra.com/mcpgemini mcp listOr add it to the config file
{
"mcpServers": {
"mosyn": {
"httpUrl": "https://mosyn.lycatra.com/mcp"
}
}
}Sign in and approve
- On your computerSign inGemini CLI discovers Mosyn's sign-in, registers itself and opens the approval page in your browser. `/mcp auth mosyn` starts it again.
- On your phoneApprove on your phoneMosyn's approval page shows a QR code. Scan it with your phone, or in Mosyn open Settings → Connect an assistant → Have a code? and type the code shown.
Check that it worked
`/mcp` shows mosyn as CONNECTED with its tools.
If something goes wrong
| What you see | What to do |
|---|---|
| Sign-in fails over SSH. | Gemini CLI needs a local browser for the callback. Sign in on your own computer. |
| The config uses `url` and connects over SSE. | `url` means SSE. Use `httpUrl` for Mosyn. |
| Mosyn keeps asking to sign in. | Run `/mcp auth mosyn`, and check that ~/.gemini/mcp-oauth-tokens.json is writable. |