Cursor & Windsurf¶
Both Cursor and Windsurf support MCP servers through a JSON config file.
Cursor¶
Setup¶
Open Cursor Settings → MCP → Add Server, or edit ~/.cursor/mcp.json directly:
{
"mcpServers": {
"gemini-code-assist-admin": {
"command": "npx",
"args": ["-y", "gemini-code-assist-admin-mcp"]
}
}
}
Restart Cursor after saving.
Using tools in Cursor¶
In the Cursor chat, switch to Agent mode and prompt naturally:
Cursor will call the MCP tools automatically and display the results inline.
Windsurf¶
Setup¶
Edit ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"gemini-code-assist-admin": {
"command": "npx",
"args": ["-y", "gemini-code-assist-admin-mcp"]
}
}
}
Restart Windsurf after saving.
Project-scoped config (both editors)¶
To scope the server to a specific project, create .cursor/mcp.json or .windsurf/mcp.json at the repo root:
{
"mcpServers": {
"gemini-code-assist-admin": {
"command": "node",
"args": ["./mcp/dist/index.js"],
"env": {
"GOOGLE_CLOUD_PROJECT": "my-default-project"
}
}
}
}
Note
Setting GOOGLE_CLOUD_PROJECT here overrides the gcloud config default — useful when different repos target different GCP projects.