Connect your agent
Antigravity
Antigravity keeps its MCP servers in mcp_config.json (on Linux and macOS: ~/.gemini/config/mcp_config.json). blink artifacts uses the serverUrl key with an Authorization header.
Add the server
Create a token in the app under Agent connection, then add this to mcp_config.json, replacing <TOKEN>:
{
"mcpServers": {
"blink-artifact": {
"serverUrl": "https://artifact.blinkbrosai.com/mcp",
"headers": { "Authorization": "Bearer <TOKEN>" }
}
}
}If the file already lists other servers, add blink-artifact inside the same mcpServers object. Reload the servers or start a new session so the agent sees the tools.
The artifact link under the prompt
Antigravity can show a clickable ⧉ <title> under the prompt: the artifact the agent worked on last. Click it to open that artifact in your browser.
It runs a small script that needs Node.js 18 or newer. Download it and save your token where the script can read it, replacing <TOKEN>:
mkdir -p ~/.blink
curl -fsSL https://artifact.blinkbrosai.com/statusline.mjs -o ~/.blink/statusline.mjs
(umask 077; printf '%s\n' '<TOKEN>' > ~/.blink-artifact-token)The script can also read the token from the BLINK_ARTIFACT_TOKEN environment variable instead of the file.
Then add this to ~/.gemini/antigravity-cli/settings.json:
{
"statusLine": {
"type": "command",
"command": "node ~/.blink/statusline.mjs",
"stack_with_default": true
}
}If the file already has other settings, add statusLine next to them. stack_with_default keeps Antigravity's own status line and shows the link below it. Start a new session so it shows the line. You can also run /statusline node ~/.blink/statusline.mjs inside Antigravity: it takes effect at once, but replaces the built-in status line.
Listening for questions
For the antigravity harness the listener follows the stream in a background terminal and writes questions to an inbox file, which the agent reads at the start of each turn. Ask the agent to listen for questions; get_listener returns the commands. See Listener & asks_wait.
Plugins
Antigravity also supports plugins (agy plugin install) that can bundle MCP servers. Its documentation does not say whether a plugin's mcp_config.json can read the token from an environment variable, so we recommend the manual setup above, which keeps the token on your machine only.