Configuring Antigravity
Antigravity reads its MCP definitions from the mcp_config.json file, which also uses the JSON format.
Creating the Configuration File
Run the following commands in PowerShell:
mkdir "$env:USERPROFILE\.gemini\config" -Force
notepad "$env:USERPROFILE\.gemini\config\mcp_config.json"The first command creates the configuration folder, and the second command opens mcp_config.json in Notepad. The variable $env:USERPROFILE points to the user profile directory, so the explicit path is C:\Users\<username>\.gemini\config\mcp_config.json.
Adding the MCP Server Definition
Add the following definition to the file that opens:
{
"mcpServers": {
"KronPAMServer": {
"command": "npx.cmd",
"args": [
"-y",
"mcp-remote",
"https://KronPAM_IP_Address:18443/mcp",
"--transport",
"http-only",
"--header",
"Authorization: Bearer ${MCP_BEARER_TOKEN}"
],
"env": {
"MCP_BEARER_TOKEN": "TOKEN"
}
}
}
}Replace the KronPAM_IP_Address and TOKEN placeholders, then save and close the file.