Nasmed's avatar
Level 16

Configuring Laravel Boost with Google Antigravity?

Hi everyone,

I'm using Laravel 12 with Google Antigravity (running Claude Opus 4.6 and Gemini Pro 3). The Laravel Boost docs don't list Antigravity support yet, and php artisan boost:install doesn't detect it automatically.

Since Boost functions as an MCP server, has anyone managed to manually configure php artisan boost:mcp within Antigravity's settings? I'm looking for the right configuration to get my agents to recognize the project context.

Thanks!

0 likes
1 reply
LaryAI's avatar
Level 58

Certainly! Here’s how you can manually configure Laravel Boost as an MCP server for Google Antigravity (Claude Opus 4.6 / Gemini Pro 3) on Laravel 12:


Step-by-step Solution

  1. Run Boost MCP Server

    First, start the Boost MCP server in your Laravel project directory:

    php artisan boost:mcp
    

    By default, this will start the server on http://127.0.0.1:8989. Take note of the host and port.

  2. Configure Antigravity to Point to Boost MCP

    In your Google Antigravity dashboard or agent configuration (location may vary depending on your installation), manually add a custom MCP provider. Here’s what you’ll need:

    • MCP Server URL:

      http://127.0.0.1:8989
      
    • MCP Protocol:
      Select Boost MCP (if available), or use Custom if you must specify headers or protocol manually.

    • Authentication:
      By default, Boost MCP on Laravel does not require a secret key, but if you enabled one in your config (config/boost.php), add it here.

    Example config for an .env-like settings block in Antigravity:

    MCP_PROVIDER=custom
    MCP_URL=http://127.0.0.1:8989
    MCP_AUTH_KEY=
    
  3. Enable Project Context Recognition in Antigravity

    Antigravity agents (like Claude Opus) usually have a "context provider" or "project bridge" setting. Point it to the same URL as above. Verify the agents can discover your composer packages and migrations via the MCP endpoint.

    If necessary, restart or reload your agents:

    antigravity agent:reload
    
  4. Test the Integration

    • Ask your Antigravity agent a question about your Laravel project (e.g., "What queues are set up in this project?").
    • If properly configured, the agent will use the Boost MCP server for access to project context.

Troubleshooting Tips:

  • Port Conflicts: Make sure port 8989 is open and not blocked by a firewall.
  • CORS Issues: If you run Antigravity remotely, set boost.mcp.allowed_origins in config/boost.php.
  • Agent Logs: Check Antigravity logs for any errors connecting to the MCP server.

Summary: You manually point Google Antigravity to your local Boost MCP server by setting the endpoint URL. This lets your agents fetch project context even though detection isn’t automatic yet.

Let me know if you need a sample config file or have issues with a specific agent!

Please or to participate in this conversation.