Cannot get MCP init on Google's Antigravity
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.
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
- Open Antigravity
- Switch to editor mode
- Click the "Additional Options" (...) icon on the Agent panel and select "MCP Servers"
- Add the MCP server config
- Click "Refresh"
Working in my testing in mac with above config. 😕
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
@pushpak1300 can you please take a screenshot of your raw config file and share it
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.
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.
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
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
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" ] } }
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"
]
}
}
Same error. My Custom MCP Server work perfect in Cursor. Please fix
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)
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!
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")
Same issue for me.
I get "Error: calling "initialize": EOF."
MacOS.
Same issue for me.
I get "Error: calling "initialize": EOF." Windows 11
it finds my mcp server but then does not show the tools.
I solved using my file path to artisan file: ✅
I had same issue. check the agent setting and make sure Agent Non-Workspace File Access is on
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"
]
}
}
}
This configuration fixed the issue for me in macOS. Note that I am using Laravel Herd for setting up PHP
MY probelem solve like this:
{
"mcpServers": {
"laravel-boost": {
"command": "/opt/homebrew/opt/[email protected]/bin/php",
"args": [
"/Users/navid/Projects/laravel/artisan",
"boost:mcp"
]
}
}
}
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.
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
@rolandorojas have u figure it out on windows?
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.
-
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-mcpMake sure to
chmod +x start_dokploy_mcp.shto make it executable. -
Update your MCP configuration: Point the
commandfield to your new script and remove theargsandenvfields.{ "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./
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": {}
}
}
}
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?
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.
The issue lies with Google, not Boost.
Yes, I know... maybe just someone knows is Google at least trying to fix it?
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.
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.