Prerequisites
- Active Aident account
- Connected integrations in Aident Loadout
- An MCP-compatible client
Step 1: Add Server URL
Use the product MCP URL for the package you need. Loadout is the default integration surface:Claude Code
Claude Code
Run in your terminal:Or add to
~/.claude.json:Claude Desktop
Claude Desktop
Add to your config file:Or on Pro/Max/Team/Enterprise plans: Settings â Connectors â Add and enter
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
https://loadout.aident.ai/mcp.Cursor IDE
Cursor IDE
Add to
.cursor/mcp.json in your project root:VS Code (Copilot)
VS Code (Copilot)
Add to
.vscode/mcp.json in your project root:Windsurf
Windsurf
Add to
~/.codeium/windsurf/mcp_config.json:Codex
Codex
Run in your terminal:Or add to Verify the server is configured:
~/.codex/config.toml (or .codex/config.toml for a trusted project):Gemini CLI
Gemini CLI
Add to
~/.gemini/settings.json:Other Clients
Other Clients
Any MCP-compatible client (Goose, Kiro, OpenCode, Antigravity, Factory, etc.) can connect using the server URL
https://loadout.aident.ai/mcp. Refer to your clientâs documentation for where to add MCP server configurations.Step 2: Authenticate
On first use, your MCP client will automatically:- Discover Aidentâs OAuth endpoints
- Open your browser for login (Google OAuth or magic link)
- Store your access token locally
Step 3: Verify Connection
In your MCP client, try asking your AI assistant to use Aident tools. You should see Aident tools available across auth, skills, integrations, playbooks, templates, and dashboard.Optional: Migrate Local Integration Configs
After first-time setup, ask your agent to runaident integrations migrate-local --json if the host can run shell
commands. The command scans known local MCP/agent config files, redacts secret-like values, and shows which supported
integrations can be connected through Loadout. Connect all supported matches or a selected subset with
aident integrations migrate-local --apply --integrationIds <ids> --json, or use the MCP vault tool for the selected
Loadout integration IDs.
Switching Accounts
To log out or switch to a different Aident account, use theauth_logout tool, then reconnect to trigger a new sign-in flow.
Troubleshooting
Authentication Issues
If the OAuth flow doesnât start automatically:- Restart your MCP client
- Verify URL is exactly
https://loadout.aident.ai/mcp - Check that your browser can reach loadout.aident.ai
âNo OAuth flow is in progressâ when running complete_authentication
Some MCP clients (notably Claude Code) expose two complementary tools â authenticate (start the flow) and complete_authentication (finish it by pasting the callback URL). The PKCE code_verifier produced by authenticate is held in the clientâs process memory. If that process restarts between the two tool calls (which can happen between message turns on long-lived agent sessions), the verifier is lost and complete_authentication returns No OAuth flow is in progress.
Reliable workarounds:
- Open the authorization URL immediately when prompted. The local loopback callback listener catches the redirect inside the same process, completing the flow before any state can be lost. This is the path that works without ever calling
complete_authentication. - If you must paste back the callback URL, run
authenticateandcomplete_authenticationback-to-back within the same agent turn.
WWW-Authenticate: Bearer resource_metadata=⌠header on 401 responses, so MCP clients can rediscover the OAuth endpoints automatically.
Token TTLs
- Access token: 7 days
- Refresh token: 30 days (rotated on each refresh)
- Authorization code: 10 minutes
âSkill requires unauthenticated integrationsâ
The skill needs integrations you havenât connected:- Use
vaultwith{ "action": "status" }to see whatâs connected - Use
vaultwith{ "action": "connect", "integrationId": "<id>" } - Authorize in browser
- Retry the operation
Connection Timeout
- Check firewall allows outbound HTTPS to loadout.aident.ai
- Configure proxy in MCP client if needed
- Try disconnecting VPN temporarily
Tools Not Appearing
- Restart MCP client
- Verify URL in configuration file
- Re-authenticate if token expired (client should handle automatically)
Managing Your Connection
Revoking Access
- Open Connections from the left sidebar and go to MCP
- Revoke the connection from your MCP client or Aidentâs MCP controls
- All MCP connections will stop working immediately
- Re-authenticate to reconnect