Set up Gemini Code Assist
Google’s AI coding assistant for VS Code. Add Agentcy so Gemini Code Assist can access your marketing data in agent mode. Free tier supports MCP.
- 01
Sign up at app.goagentcy.com and create an API key
- 02
Install the Gemini Code Assist extension in VS Code (search “Gemini Code Assist” in Extensions)
- 03
Sign in with your Google account when prompted
- 04
Create or open ~/.gemini/settings.json (global, all projects) OR .gemini/settings.json in your project root (project-scoped)
- 05
Paste the config snippet below, replacing YOUR_AGENTCY_API_KEY with your actual key
- 06
Save the file — no restart required
- 07
Open the Gemini Code Assist panel and switch to Agent mode (button at top of chat panel)
path: ~/.gemini/settings.json
{
"mcpServers": {
"agentcy": {
"httpUrl": "https://data.goagentcy.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_AGENTCY_API_KEY"
}
}
}
}Gemini Code Assist uses httpUrl (NOT url) for remote MCP servers — transport is inferred from the field name (httpUrl = streamable HTTP, url = SSE, command = stdio). No type field needed. The same ~/.gemini/settings.json file is also read by the Gemini CLI — configuring once enables Agentcy in BOTH tools. MCP tools only work in Agent mode (not standard chat) and Agent mode is still in Preview status. Free tier supports MCP (6,000 completions + 240 chat requests/day for individuals). VS CODE ONLY: as of April 2026, JetBrains IDEs (IntelliJ, PyCharm, WebStorm) have agent mode but MCP server configuration is NOT supported in Gemini Code Assist for JetBrains — use Cursor, Cline, Claude Code, or VS Code if you need MCP in a JetBrains-style workflow. There is no in-app UI for adding MCP servers — config file editing is the only path (Google’s docs explicitly state this).
Stuck or want to verify these instructions yourself? These are the documentation sources we used. If something here doesn't match what you see in your client, the vendor may have updated their UI — and we'll get this page updated.
- Google Cloud Docs — Use Gemini Code Assist agent mode (canonical, primary)
- Google for Developers — Same docs page (mirror, last updated Feb 24 2026)
- Google Cloud — Gemini Code Assist release notes (latest April 8 2026, no MCP changes)
- Google for Developers — Agent mode overview (confirms JetBrains MCP gap)
After connecting Gemini Code Assist and configuring your data sources in the portal, ask questions about any of them in natural language: