agent-antigravity-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GITHUB_TOKEN | No | Optional GitHub personal access token with repo scope, used by create_github_pr_task when no github_token parameter is given. | |
| GEMINI_API_KEY | Yes | Your Google Gemini API key. | |
| AGENT_ANTIGRAVITY_LOG_LEVEL | No | Optional log level (e.g., INFO, DEBUG). | |
| AGENT_ANTIGRAVITY_SESSIONS_DB | No | Optional custom path for the SQLite sessions database. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| create_interactionA | Create a new Antigravity agent interaction. Args: prompt: Task instruction or prompt for the agent. agent: Agent identifier (default: antigravity-preview-05-2026). model: Model name for agent_config (e.g. gemini-3.6-flash, gemini-3.5-flash-lite). environment: Sandbox environment mode ('remote' or existing environment_id). tools: List of custom tool dicts (code_execution, google_search, url_context, mcp_server, function). images: Optional list of base64 images, e.g. [{"data": "", "mime_type": "image/png"}]. max_total_tokens: Optional token budget cap for the interaction. background: Run asynchronously; poll with get_interaction_status. Forces store=True. system_instruction: Optional behavior/persona override for this interaction. stream: Stream the response via the SDK (ignored by the REST fallback path). |
| continue_interactionA | Continue an existing interaction turn with new prompt, images, or function results. Args: previous_interaction_id: ID of the interaction turn to continue. environment_id: Sandbox environment ID returned from previous turn. prompt: Optional follow-up prompt text. images: Optional follow-up base64 images. function_results: Optional list of function_result dicts: [{"name": "...", "call_id": "...", "result": {...}}]. agent: Agent identifier. system_instruction: Optional behavior/persona override for this turn. |
| submit_function_resultB | Submit a local function execution result back to a pending interaction (requires_action status). |
| get_interaction_statusB | Get status and current steps of an interaction. |
| cancel_interactionA | Cancel an in-progress (e.g. background) interaction. |
| delete_interactionC | Delete a stored interaction. |
| list_interactionsA | List cached interaction sessions and their current status, newest first. Args: page_size: Max sessions to return (default 50). page_token: Offset into the cache to resume from; pass back the returned "next_page_token". |
| build_mcp_server_tool_configC | Helper tool to generate remote MCP server configuration dict for agent tools parameter. |
| build_environment_configA | Helper tool to generate a remote sandbox EnvironmentConfig dict. Args: sources: List of {"type": "repository"|"gcs"|"inline", "source": "url-or-content", "target": "/workspace/path", "content": "..."}. "repository" (git URL) and "gcs" use "source"; "inline" uses "content" instead. "target" is required for all and must be a subdirectory (cannot mount to "/"). network_allowlist: List of {"domain": "api.example.com"|".example.com"|"", "transform": {"Authorization": "Bearer ..."}}. Ignored if network_disabled is True. network_disabled: Block all outbound network traffic (sets network="disabled"). environment_id: Reuse an existing environment's state instead of provisioning fresh. |
| build_hooks_configA | Build a hooks.json config for sandbox-native tool interception (code_execution, read/write/list/delete_file). Hooks only fire for sandbox-native tools, never for function calling or mcp_server tools. Mount the result at target ".agents/hooks.json" via build_environment_config's inline sources so the sandbox picks it up automatically. Args: pre_tool_execution: List of {"matcher": "<RE2 regex, e.g. 'code_execution' or '.*_file'>", "hooks": [{"type": "command"|"http", "command"|"url": "...", "timeout": 10}]}. A "command" hook receives the tool call as JSON on stdin and must print {"decision": "allow"} or {"decision": "deny", "reason": "..."} to stdout. post_tool_execution: Same matcher/hooks shape; runs after execution, cannot block, output ignored. group_name: Top-level key grouping this hook set. enabled: Whether this group is active. |
| create_github_pr_taskA | Have the agent clone a GitHub repo, branch off base_branch, do the task, and open a PR. Token is injected via the sandbox network allowlist header transform (never placed in the prompt text), so it stays out of interaction transcripts/logs. Args: repo_url: e.g. "https://github.com/owner/repo" (public or private). task_prompt: What the agent should implement/fix. base_branch: Branch to start from (default "main"). work_branch: Branch name to create; auto-generated if omitted. pr_title: PR title; defaults to a summary derived from task_prompt. github_token: GitHub PAT with repo scope. Falls back to GITHUB_TOKEN env var. model: Gemini model for the interaction. agent: Agent identifier. |
| create_triggerA | Create a cron-scheduled trigger that runs an Antigravity interaction on a recurring schedule. Args: schedule: Cron expression, e.g. "0 9 * * *". prompt: Task instruction the agent runs on each execution. time_zone: IANA time zone, e.g. "America/Argentina/Buenos_Aires". display_name: Human-readable trigger name. agent: Agent identifier. environment: Sandbox environment mode ('remote' or existing environment_id). max_consecutive_failures: Auto-pause trigger after N consecutive failures. execution_timeout_seconds: Per-execution timeout. |
| list_triggersB | List all cron triggers. |
| get_triggerA | Fetch a single trigger by ID. |
| update_trigger_statusB | Pause or resume a trigger. status: 'active' or 'paused'. |
| delete_triggerB | Permanently delete a trigger. |
| run_triggerC | Execute a trigger immediately, outside its schedule. |
| list_trigger_executionsB | View execution history for a trigger. |
| create_managed_agentA | Register a reusable named agent (invoke later via create_interaction(agent=agent_id)). Args: agent_id: Unique identifier. Cannot start with reserved prefixes (antigravity-, gemini-, google-, etc). model: Model for agent_config (default gemini-3.6-flash). system_instruction: Persistent persona/behavior definition. tools: Default tools; falls back to code_execution, google_search, url_context if omitted. base_environment: Environment string/id or config dict (see build_environment_config); forked per invocation. description: Human-readable description. |
| list_managed_agentsB | List all registered managed agents in the project. |
| get_managed_agentB | Fetch a managed agent's stored configuration. |
| delete_managed_agentA | Delete a managed agent's registration (existing environments/interactions persist). |
| create_environmentA | Provision a standalone sandbox environment for reuse across multiple interactions. Unlike passing environment=build_environment_config(...) inline to create_interaction (which forks per invocation), this persists an environment_id you can pass to create_interaction/continue_interaction directly. Args: sources: See build_environment_config. network_allowlist: See build_environment_config. network_disabled: See build_environment_config. |
| list_environmentsC | List sandbox environments in the project. |
| get_environmentA | Fetch a sandbox environment's details (type, sources, network config). |
| delete_environmentA | Terminate and remove a sandbox environment's resources. |
| download_environment_filesA | Download the full sandbox filesystem as a .tar archive to a local path. Args: environment_id: Environment to snapshot. dest_path: Local filesystem path to write the .tar archive to. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| research_and_summarize | Prompt template for research and web summarization task. |
| python_sandbox_task | Prompt template for executing Python automation inside remote Linux sandbox. |
| analyze_chart | Prompt template for multimodal chart/image analysis. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| get_interactions_list_resource | List recent Antigravity interaction sessions. |
| get_triggers_list_resource | List all cron triggers. |
| get_agents_list_resource | List all registered managed agents. |
| get_environments_list_resource | List all sandbox environments. |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bgembalczyk/agent-antigravity-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server