Documentation

MCP Servers

Connect apps such as Notion, Linear, Gmail and Stripe in one click, or any Model Context Protocol (MCP) server, to Andromity in VS Code and the terminal. Config files and fields, local and remote servers, OAuth and access tokens, how the agent discovers MCP tools, approvals, folder trust and troubleshooting.

MCP servers give the agent extra tools, such as querying a database, reading GitHub issues or calling your company's internal APIs. Andromity connects to local servers that it starts as a process (stdio) and to remote servers over HTTP or SSE.

Connect an app

Andromity has a catalog of apps you can connect in one click. Each one is the app's own official remote MCP server, so there is nothing to install or host.

  • VS Code: open Settings → MCP Servers → Discover, find the app (search by name or category) and select Connect.
  • Terminal app: open Settings (Ctrl+E) → MCP → + Connect an app and select Connect.

Your browser opens the app's sign-in page. Once you approve, Andromity saves the app to your user-level ~/.andromity/mcp.json, so it works in every trusted project, and connects it. If you cancel or the sign-in fails, nothing is saved. In VS Code, Yours lists everything you've connected or added, with the app's icon.

Browse every app, with setup guides for most of them (what the agent can do, access controls and limits, from the vendor's own documentation), on the integrations page.

CategoryApps
GoogleGmail, Google Calendar, Google Drive
ProductivityNotion, Jira & Confluence, Linear, ClickUp, monday.com, Todoist, Basecamp, Cal.com, Airtable, Miro, Granola, Zapier
Design & contentWebflow, Wix, Contentful, Sanity
Sales & supportIntercom, Attio, Close
DeveloperGitHub, GitLab, Sentry, Netlify, Railway, Render, Cloudflare, Supabase, Neon, Prisma Postgres, Upstash, Postman, Buildkite, Socket, Hugging Face, Jam, Exa, Apify, Globalping
MonitoringPagerDuty, Grafana, Honeycomb, Axiom
AnalyticsPostHog, Amplitude, Mixpanel
PaymentsStripe, PayPal

What each app lets the agent do depends on the account you sign in with and the permissions you approve. MCP tools follow the same approvals and folder trust rules as any other server.

Gmail, Google Calendar and Google Drive

Google's MCP servers are part of the Google Workspace Developer Preview Program, so your Google account needs to be a member. Google doesn't let apps register themselves for sign-in, so these three also use your own Google OAuth client. Follow Google's MCP setup guide for the Cloud project, with these Andromity details:

  1. Enable the product's API and its MCP service (for Gmail, gmail.googleapis.com and gmailmcp.googleapis.com).
  2. Create an OAuth client of type Web application, select Use this client for an AI-powered agent (Google requires this from November 11, 2026), and add the redirect URI http://127.0.0.1:54321/callback. Andromity listens on port 54321 during sign-in, or the next free port if 54321 is busy; if Google reports a redirect mismatch, free port 54321 and retry.
  3. Select Connect on the app and enter the client ID and client secret. VS Code asks for them in input boxes; the terminal app shows two fields under the app.

Andromity asks Google for offline access, so the sign-in keeps refreshing instead of expiring after an hour. The client ID and secret are saved in the app's oauth entry in ~/.andromity/mcp.json.

Apps that connect with a token

GitHub, Airtable, Render and PagerDuty don't let new clients register for browser sign-in, but they accept an access token. Select Connect, then paste a token you create in that app (the catalog links to the right page). Andromity sends a test request to the app first and saves nothing if the token is rejected. The token is kept in the encrypted token store (~/.andromity/tokens.json), not in mcp.json.

Apps that aren't in the catalog

Some official servers only accept clients the app has approved in advance. Vercel, Square, Dropbox and Canva, for example, only accept clients on their approved lists, and Slack and HubSpot need an app you register with them. You can still add any server with Add MCP Server and an access token, or with oauth.client_id if you have a registered client.

Add a server in VS Code

  1. Open Settings → MCP Servers and select Add MCP Server.

  2. Enter a Server name.

  3. Choose a connection type:

    TypeYou enter
    Remote HTTP (OAuth or access token)The server URL, then an optional access token. Leave the token empty to sign in with your browser after adding.
    Remote SSE (legacy)The same, for servers that only speak SSE.
    Local command (stdio)The command (such as npx, uvx or python), then its arguments as a JSON array, for example ["-y", "@modelcontextprotocol/server-filesystem", "."].
    Advanced JSON configurationOne server object, for when you need env, headers or oauth.client_id.

Andromity saves the server to <project>/.andromity/mcp.json and connects to it. Adding and removing servers needs an open, trusted workspace.

Each server card shows its status, its command or URL, and View tools (N) once connected. Card buttons:

  • ↺ Restart: reconnect (enable the server first if it's disabled).
  • Enable / Disable: sets "disabled" in the config file. Disabled servers are not started.
  • Connect / Authenticate or Re-authenticate: for remote servers (see Authentication).
  • Remove: deletes the server from its config file, with its saved sign-in, after you confirm.

When a server fails, the card shows the error and the last 25 lines the server wrote to stderr.

Add a server in the terminal app

Open Settings (Ctrl+E) → MCP → + Add Server, fill in the form and select Save & Connect. It also writes to <project>/.andromity/mcp.json.

/mcp prints every configured server with its status and the tools it provides.

Config files

Andromity reads these files, in this order:

FileScope
~/.andromity/mcp.jsonAll projects. On Windows this is %USERPROFILE%\.andromity\mcp.json.
~/.gemini/config/mcp_config.jsonAll projects
<project>/.andromity/mcp.jsonThis project
<project>/.vscode/mcp.jsonThis project

If two files define a server with the same name, the first one wins, so your user-level definition overrides the project's.

Servers go under mcpServers (servers is also accepted):

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "."]
    },
    "postgres": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://localhost:5432/dev"],
      "env": { "PGPASSWORD": "dev-only-password" }
    },
    "supabase": {
      "url": "https://mcp.supabase.com/mcp?project_ref=YOUR_PROJECT_REF",
      "type": "http"
    },
    "internal-api": {
      "url": "https://mcp.example.internal/sse",
      "headers": { "Authorization": "Bearer YOUR_TOKEN" }
    },
    "paused": {
      "command": "uvx",
      "args": ["some-mcp-server"],
      "disabled": true
    }
  }
}
FieldMeaning
commandProgram to start for a local (stdio) server.
argsArray of arguments for command.
envExtra environment variables for a local server.
url (or serverUrl)Address of a remote server. Use either command or url, not both.
type (or transport)http, streamable-http or sse. Leave it out to detect automatically.
headersHTTP headers sent to a remote server.
disabledtrue to keep the server configured but not started.
oauth.client_id, oauth.client_secretFor servers that need a pre-registered OAuth client.

Things to know:

  • Values are used as written. ${VAR} and ${input:...} are not expanded. Put secrets in your user-level file rather than in a project file you commit.
  • Local servers start in the project folder. They inherit Andromity's environment plus env, but never your provider API keys (ANTHROPIC_API_KEY, OPENAI_API_KEY and the others listed in API keys).
  • Automatic transport: a URL whose path ends in /sse uses SSE; anything else uses streamable HTTP and falls back to SSE if the server answers 404 or 405.
  • mcp-remote commands (for example npx -y mcp-remote https://... --header "Authorization:Bearer TOKEN") are treated as remote servers: Andromity connects to the URL directly, sends each --header as an HTTP header, and ignores the other arguments.
  • If you edit a file by hand, select Refresh in Settings → MCP Servers to show the change, then ↺ Restart on the server to connect with its new settings.

Authentication

For a remote server that needs sign-in, select Connect / Authenticate on its card and choose:

  • Sign in with browser (OAuth): Andromity uses OAuth 2.1 with PKCE. It discovers the server's authorization settings and registers itself as a client, or uses oauth.client_id if the server requires a pre-registered client. Your browser returns to http://127.0.0.1:<port>/callback (ports from 54321 up), and you have 2 minutes to finish.
  • Use access token / PAT: paste a personal access token. In the terminal app, use 🔑 Use PAT on the server's card.

Tokens are saved in ~/.andromity/tokens.json, encrypted with Windows DPAPI on Windows and readable only by you (600) elsewhere. OAuth tokens are refreshed automatically. A saved token replaces any Authorization header in the config.

How the agent finds MCP tools

MCP tools are named mcp__<server>__<tool>, for example mcp__github__create_issue.

Their full parameter schemas are not sent with every request. Instead, the system prompt lists each MCP tool's name and description:

<available-deferred-tools>
• mcp__github__create_issue: [github] Create a new issue in a GitHub repository
Use list_tools() to retrieve the full catalog or specific schemas before calling any deferred tool.
</available-deferred-tools>

Before calling one, the agent uses the built-in list_tools tool (with search and include_description) to read its parameters. This keeps the request small when you connect many servers, but each tool's description is still in the prompt. To see what your servers cost, open the context indicator under the prompt box in VS Code and look at MCP & deferred tools. Disable servers you aren't using.

The tool list comes from each server when it connects, so restart a server after updating it.

Approvals and folder trust

  • Untrusted folder: MCP servers are not started, including ones from your user-level file, and their status is Untrusted folder. MCP tools are blocked in every mode. Trust the folder to connect them.
  • SAFE: every MCP tool call asks for approval.
  • TRUST: a call asks when the tool's own name (not the server's) contains write, insert, update, delete, create, drop, push, exec or post. Other calls run. For example, mcp__github__create_issue asks and mcp__postgres__query runs.
  • FULL and YOLO: MCP tools run without asking.

Tool annotations such as readOnlyHint are not used. Edits the agent makes to .andromity/mcp.json or .vscode/mcp.json always ask outside FULL and YOLO, because .andromity and .vscode are execution-control folders.

When servers start

All configured servers start together when the Andromity engine starts, and restart when you switch project. If any need attention, VS Code shows MCP servers need attention with Open MCP Settings. The terminal app reports how many servers and tools are ready.

LimitValue
Each request to a local server, including a tool call30 seconds
Connecting to a remote server30 seconds
Any tool call, overall[tools] default_timeout_seconds in config.toml, default 300

Servers that crash are not restarted automatically; their card shows error with the exit code. Select ↺ Restart.

Headless runs with andromity run don't load MCP servers.

Troubleshooting

Status or messageWhat to do
not started / Untrusted folderTrust the folder in Settings → Trust & Security or with /trust.
needs authSelect Connect / Authenticate.
error: No command or serverUrl configuredAdd command or url to the server entry.
error: Connection timed outCheck the URL and your network, then ↺ Restart.
error with an exit codeRead the stderr lines on the card. The command is often not on your PATH; use a full path or install it.
The agent doesn't use a toolAsk for it by name, for example "use the github MCP server to list open issues".