Use the xysq MCP server with Gemini CLI so Gemini can call xysq tools for memory and identity-aware context. Gemini CLI supports remote HTTP MCP servers natively (Streamable HTTP transport). No wrapper required.Documentation Index
Fetch the complete documentation index at: https://docs.xysq.ai/llms.txt
Use this file to discover all available pages before exploring further.
Before You Connect
Sign in to your xysq account at app.xysq.ai.Step 1 — Generate Your API Key
- After logging in, click the Connect Agent button.
- Select any tab that exposes API keys (Cursor, Codex, etc — the key format is identical).
- Click Generate API Key. Copy the
xysq_...key — it won’t be shown again.
Step 2 — Pick a Scope
Gemini CLI reads MCP server config from two places:| Scope | File |
|---|---|
| User (all projects) | ~/.gemini/settings.json |
| Project (this repo only) | ./.gemini/settings.json |
Step 3 — Add the xysq Entry
Open the settings file (create it if it doesn’t exist):mcpServers block. If the file already has other settings, merge mcpServers in alongside them:
YOUR_API_KEY with the key from Step 1.
For safer secret handling, use env-var expansion. Export the token first:
Gemini CLI uses
httpUrl for remote Streamable-HTTP servers (the modern standard) and url for the deprecated SSE transport. Always use httpUrl for xysq.Step 3 (alternative) — Use gemini mcp add
Gemini CLI ships a command that writes the same block:
Step 4 — Verify
xysq listed with its connection status and available tools.
Step 5 — Use It
Start a Gemini CLI session:"trust": true on the server entry to skip approvals (use cautiously — only for fully trusted servers):
Pinning Gemini to a team vault
To scope Gemini to a specific team, change the URL:YOUR_TEAM_ID in Team Settings at app.xysq.ai. Team-pinned connections route all memory actions to the team vault and disable personal-only tools.
Troubleshooting
| Problem | Fix |
|---|---|
gemini mcp list doesn’t show xysq | Confirm mcpServers is at the top level of ~/.gemini/settings.json and the JSON is valid. |
url doesn’t work but httpUrl does | Correct. url is for the deprecated SSE transport. Use httpUrl for xysq. |
| Auth fails with 401 | Confirm XYSQ_API_KEY is exported in the shell running gemini. |
| Approval prompts on every call | Set "trust": true on the xysq entry — only if you’re comfortable skipping confirmations. |
| Wrong vault scope | Confirm the URL — /mcp for personal, /mcp/team/<id> for a team. |