boost icon indicating copy to clipboard operation
boost copied to clipboard

Cannot get MCP init on Google's Antigravity

Open rolandorojas opened this issue 1 month ago • 35 comments

Laravel Package Version

1.8.1

Laravel Version

12.39.0

PHP Version

8.4.11

System Info

Windows 11 (x64) with Laragon

Description

I've been trying to set up Boost in Google's Antigravity, but keep getting a Error: calling "initialize": EOF or Error: calling "initialize": invalid trailing data at the end of stream error.

Image

Here is my mcp_config.json using the same settings that work with Codex, Kilo, Junie, and (ironically) Gemini CLI.

mcp_config.json

{
    "mcpServers": {
        "laravel-boost": {
            "command": "C:\\laragon\\bin\\php\\php-8.4\\php.exe",
            "args": [
                "C:\\Projects\\MyProjectName\\artisan",
                "boost:mcp"
            ]
        }
    }
}

Antigravity version

Antigravity Version: 1.11.3
VSCode OSS Version: 1.104.0 (user setup)
Commit: 379750caac7172d89d256835378d03e766682227
Date: 2025-11-19T01:34:49.332Z
Electron: 37.3.1
Chromium: 138.0.7204.235
Node.js: 22.18.0
V8: 13.8.258.31-electron.0
OS: Windows_NT x64 10.0.26200
Language Server CL: 834030306

Steps To Reproduce

  1. Open Antigravity
  2. Switch to editor mode
  3. Click the "Additional Options" (...) icon on the Agent panel and select "MCP Servers"
  4. Add the MCP server config
  5. Click "Refresh"

rolandorojas avatar Nov 19 '25 15:11 rolandorojas

Working in my testing in mac with above config. 😕

Image

pushpak1300 avatar Nov 19 '25 16:11 pushpak1300

I have the same error as @rolandorojas using Archlinux and Laravel Sail. My MCP settings are:

{
    "mcpServers": {
        "laravel-boost": {
            "command": "./vendor/bin/sail",
            "args": [
                "artisan",
                "boost:mcp"
            ]
        }
    }
}

And yes, sail is up

backstageel avatar Nov 19 '25 19:11 backstageel

@pushpak1300 can you please take a screenshot of your raw config file and share it

yahya-allouhaibi avatar Nov 19 '25 19:11 yahya-allouhaibi

I had the same issue on linux, but the comments above helped me fix it. I changed this:

{
    "mcpServers": {
        "laravel-boost": {
            "command": "/usr/bin/php8.4",
            "args": [
                "artisan",
                "boost:mcp"
            ],
            "env": {}
        }
    }
}

to

{
    "mcpServers": {
        "laravel-boost": {
            "command": "/usr/bin/php8.4",
            "args": [
                "/var/www/my-laravel-app/artisan",
                "boost:mcp"
            ],
            "env": {}
        }
    }
}

i was just using artisan without the full path, this was my original entry. Using the full path to the artisan location did the trick.

jw7712 avatar Nov 19 '25 21:11 jw7712

I can confirm that It's most likely a path issue especially if you are trying to let it access a local package that was installed priorly.

aykun1907 avatar Nov 19 '25 21:11 aykun1907

It does not work for me even I configured absolute path, ( I also tried relative path and configures PATH env variables)

{
    "mcpServers": {
        "ida-pro-mcp": {
            "command": "D:\\IDAProfessional9.1\\python311\\python.exe",
            "args": [
                "D:\\IDAProfessional9.1\\python311\\Lib\\site-packages\\ida_pro_mcp\\server.py"
            ],
            "env": {}
        }
    }
}

Error: calling "initialize": invalid trailing data at the end of stream.

The same MCP server works in other IDE

Image

wangjia184 avatar Nov 20 '25 00:11 wangjia184

OK, this config worked for me:

{
  "mcpServers": {
    "laravel-boost": {
      "command": "docker",
      "args": [
        "exec",
        "-i",
        "enviro360-laravel.test-1",
        "php",
        "/var/www/html/artisan",
        "boost:mcp"
      ]
    }
  }
}

enviro360 is the name of my project

backstageel avatar Nov 20 '25 00:11 backstageel

same issue { "mcpServers": { "kali-tools": { "command": "C:\Users\kishw\AppData\Local\Programs\Python\Python313\python.exe", "args": [ "C:\Users\kishw\Desktop\zotak\mcp_server_fixed.py", "--server", "http://192.168.101.16:5000" ] } } } i even gave it full python path still no any fix at first i used this { "kali-tools": { "command": "python", "args": [ "C:\Users\kishw\Desktop\zotak\mcp_server.py", "--server", "http://192.168.101.13:5000" ] } }

Image i tried it is quider z.dev cursor vs code windsurf all work perfectly but this antigravity thing is not working i used this for all "kali-tools": { "command": "python", "args": [ "C:\Users\kishw\Desktop\zotak\mcp_server.py", "--server", "http://192.168.101.13:5000" ] } }

kishwordulal1234 avatar Nov 20 '25 03:11 kishwordulal1234

Same error. My Custom MCP Server work perfect in Cursor. Please fix

KhaiHuynhVN avatar Nov 20 '25 04:11 KhaiHuynhVN

I suspect this issue is with the antigravity MCP client rather than Boost, since Boost already fully supports the MCP protocol, and if the client is not implementing it correctly we unfortunately cannot make it work from our side.

Edit: One more thing i realise even though antigravity agent doesn't support mcp correctly but underlying vscode mcp client works without any issue.(with sail with php and with docker)

Image

pushpak1300 avatar Nov 20 '25 06:11 pushpak1300

Thank you for reporting this issue!

As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.

If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.

Thank you!

github-actions[bot] avatar Nov 20 '25 06:11 github-actions[bot]

Yes this is an issue with how the antigravity mcp client handles the mcp connections on windows. For my python mcp server (unrelated to laravel) the below change fixed the issue:

import sys
if sys.platform == "win32":
    sys.stdout.reconfigure(newline="\\n")

3ddelano avatar Nov 20 '25 09:11 3ddelano

Same issue for me.

I get "Error: calling "initialize": EOF."

MacOS.

smraikai avatar Nov 20 '25 12:11 smraikai

Same issue for me.

I get "Error: calling "initialize": EOF." Windows 11

samehdoush avatar Nov 20 '25 15:11 samehdoush

it finds my mcp server but then does not show the tools.

Image Image

Rickvw0604 avatar Nov 20 '25 16:11 Rickvw0604

I solved using my file path to artisan file: ✅

Image

DeiverJC avatar Nov 21 '25 16:11 DeiverJC

I had same issue. check the agent setting and make sure Agent Non-Workspace File Access is on

ddtch avatar Nov 22 '25 02:11 ddtch

I had the same issue. Putting in the full paths of both the command and artisan ended up working. Note: I had to exit and restart antigravity entirely for the changes to reflect - pressing "Refresh" kept giving the same error

{
    "mcpServers": {
        "laravel-boost": {
            "command": "/usr/local/bin/docker",
            "args": [
                "exec",
                "-i",
                "laramynd",
                "php",
                "/app/artisan",
                "boost:mcp"
            ]
        }
    }
}

danny-mynd avatar Nov 23 '25 21:11 danny-mynd

This configuration fixed the issue for me in macOS. Note that I am using Laravel Herd for setting up PHP

Image Image

AHMED-GAMAL-AG avatar Nov 24 '25 11:11 AHMED-GAMAL-AG

MY probelem solve like this:

{
    "mcpServers": {
        "laravel-boost": {
            "command": "/opt/homebrew/opt/[email protected]/bin/php",
            "args": [
                "/Users/navid/Projects/laravel/artisan",
                "boost:mcp"
            ]
        }
    }
}

mirzaaghazadeh avatar Nov 24 '25 12:11 mirzaaghazadeh

From what I can see, the problem in MacOS can be solved by setting an explicit path for the php executable and the Artisan command.

In Windows, doing this does not solve the problem.

rolandorojas avatar Nov 24 '25 16:11 rolandorojas

Any fix for windows? i am using laragon Below is working in cursor but not in antigravity

{
    "mcpServers": {
        "laravel-boost": {
            "command": "php",
            "args": [
                "artisan",
                "boost:mcp"
            ]
        }
    }
}
{
    "mcpServers": {
        "laravel-boost": {
            "command": "C:/laragon/bin/php/php-8.3.16-Win32-vs16-x64/php.exe",
            "args": [
                "C:/laragon/www/laravel-project/artisan",
                "boost:mcp"
            ]
        }
    }
}

Running this command is working C:/laragon/bin/php/php-8.3.16-Win32-vs16-x64/php.exe C:/laragon/www/laravel-project/artisan -v

AmirKhan47 avatar Nov 25 '25 09:11 AmirKhan47

@rolandorojas have u figure it out on windows?

AmirKhan47 avatar Nov 25 '25 09:11 AmirKhan47

In my case I needed to Fix for Dokploy MCP Server Configuration Issues

I was also getting the error: Error: calling "initialize": EOF

If you're having trouble getting a custom MCP server to work (specifically with environment variables not being picked up), here's a solution that worked for us.

In our case we were trying to use a Dokploy MCP server.

The Issue

Defining environment variables like DOKPLOY_URL and DOKPLOY_API_KEY directly in the env block of your MCP configuration (e.g., in mcp_config.json or VS Code settings) might not always work as expected when using npx directly as the command.

The Solution

Wrap the server command in a simple bash script to ensure environment variables are properly exported before the server starts.

  1. Create a wrapper script (e.g., start_dokploy_mcp.sh):

    #!/bin/bash
    export DOKPLOY_URL="https://your-dokploy-url.com/api"
    export DOKPLOY_API_KEY="your-api-key"
    
    # Use the full path to npx and the package to be safe
    /path/to/node/bin/npx -y @ahdev/dokploy-mcp
    

    Make sure to chmod +x start_dokploy_mcp.sh to make it executable.

  2. Update your MCP configuration: Point the command field to your new script and remove the args and env fields.

    {
      "mcpServers": {
        "dokploy-mcp": {
          "command": "/absolute/path/to/start_dokploy_mcp.sh",
          "args": []
        }
      }
    }
    

This ensures the environment is correctly set up every time the MCP server launches./

shapememory avatar Nov 26 '25 19:11 shapememory

This configuration works for me. I found that explicitly defining the absolute path to the PHP executable (e.g., /opt/homebrew/opt/[email protected]/bin/php) and the full path to the artisan command resolved the connection issues

{
    "mcpServers": {
        "laravel-boost-project-1": {
            "command": "/opt/homebrew/opt/[email protected]/bin/php",
            "args": [
                "/Users/username/Code/project-1/artisan",
                "boost:mcp"
            ],
            "env": {}
        },
        "laravel-boost-project-2": {
            "command": "/opt/homebrew/opt/[email protected]/bin/php",
            "args": [
                "/Users/username/Code/project-2/artisan",
                "boost:mcp"
            ],
            "env": {}
        }
    }
}

kolydart avatar Nov 27 '25 10:11 kolydart

Same problem! MacOS Error: calling "initialize": EOF. after installation of ANY MCP-server from list. I need Linear and GitHub, but tried the rest... same problem.

Any progress in solving the issue?

aldebogdanov avatar Nov 27 '25 22:11 aldebogdanov

Any progress in solving the issue?

The issue lies with Google, not Boost. Without their support for the correct MCP protocol, I don’t see a way to resolve this problem.

pushpak1300 avatar Nov 28 '25 05:11 pushpak1300

The issue lies with Google, not Boost.

Yes, I know... maybe just someone knows is Google at least trying to fix it?

aldebogdanov avatar Nov 29 '25 02:11 aldebogdanov

If you’re on Windows, Boost MCP will not work using the normal php artisan boost:mcp command because Windows PHP breaks the MCP protocol. The solution is to run Laravel inside Docker + Sail, then run Boost inside the Linux container.

Here’s the exact fix:

  1. Install Docker Desktop + WSL2

Make sure Docker Desktop is running and WSL2 integration is enabled.

  1. Install Laravel Sail

From your project folder (Windows PowerShell):

composer require laravel/sail --dev

Then inside Ubuntu (WSL):

php artisan sail:install

Select MySQL only.

  1. Start the Docker containers ./vendor/bin/sail up -d

Then run:

docker ps

Copy the container name that ends with laravel.test-1.

  1. Create .vscode/mcp.json { "mcpServers": { "laravel-boost": { "command": "docker", "args": [ "exec", "-i", "YOUR-CONTAINER-NAME-HERE", "php", "/var/www/html/artisan", "boost:mcp" ] } } }

Replace YOUR-CONTAINER-NAME-HERE with the container name from docker ps.

Running Boost inside Linux (via Docker) removes all Windows PHP issues, EOF errors, and “invalid trailing data” problems.

amrozmabrouk avatar Nov 29 '25 11:11 amrozmabrouk

If you’re on Windows, Boost MCP will not work using the normal php artisan boost:mcp command because Windows PHP breaks the MCP protocol. The solution is to run Laravel inside Docker + Sail, then run Boost inside the Linux container.

Here’s the exact fix:

Install Docker Desktop + WSL2 Make sure Docker Desktop is running and WSL2 integration is enabled.

Install Laravel Sail From your project folder (Windows PowerShell):

composer require laravel/sail --dev

Then inside Ubuntu (WSL):

php artisan sail:install

Select MySQL only.

Start the Docker containers ./vendor/bin/sail up -d Then run:

docker ps

Copy the container name that ends with laravel.test-1.

Create .vscode/mcp.json { "mcpServers": { "laravel-boost": { "command": "docker", "args": [ "exec", "-i", "YOUR-CONTAINER-NAME-HERE", "php", "/var/www/html/artisan", "boost:mcp" ] } } } Replace YOUR-CONTAINER-NAME-HERE with the container name from docker ps.

Running Boost inside Linux (via Docker) removes all Windows PHP issues, EOF errors, and “invalid trailing data” problems.

amrozmabrouk avatar Nov 29 '25 11:11 amrozmabrouk