-
Notifications
You must be signed in to change notification settings - Fork 57
Description
Laravel Package Version
"laravel/mcp": "^0.3.4",
Laravel Version
"laravel/framework": "^12.0",
PHP Version
PHP 8.4.5
Database Driver & Version
No response
Description
I'm trying to use Laravel MCP with the MCP SuperAssistant proxy:
https://mcpsuperassistant.ai/docs/getting-started/installation
When I connect my Laravel MCP server through the proxy using:
npx @srbhptl39/mcp-superassistant-proxy@latest --config ./config.json
I get the following error:
McpError: MCP error -32602: Unsupported protocol version
Steps To Reproduce
- Install Laravel MCP
- Create an MCP server (example: SmsNotificationServer)
- Expose endpoint:
http://localhost:8000/mcp/documents
i had to use ngrok to get a url with https
using this command
ngrok http 8000
- Create config.json:
{
"mcpServers": {
"default-server": {
"type": "streamable-http",
"url": "https://hylomorphic-overfruitful-leigha.ngrok-free.dev/mcp/documents",
"note": "For Streamable HTTP connections, add this URL directly in your MCP Client"
}
}
}- Run proxy:
npx @srbhptl39/mcp-superassistant-proxy@latest --config ./config.json
Actual Result
The proxy connects, but then fails with:
Failed to connect to server default-server: McpError: MCP error -32602: Unsupported protocol version
full error
PS D:\coding\bloodykheeng projects\laravel-ai\laravel with ollama\mcp super assistant> npx @srbhptl39/mcp-superassistant-proxy@latest --config ./config.json
[mcp-superassistant-proxy] Starting...
[mcp-superassistant-proxy] Starting mcp-superassistant-proxy ...
[mcp-superassistant-proxy] - outputTransport: sse
[mcp-superassistant-proxy] - config: ./config.json
[mcp-superassistant-proxy] - Headers: (none)
[mcp-superassistant-proxy] - host: localhost
[mcp-superassistant-proxy] - port: 3006
[mcp-superassistant-proxy] - ssePath: /sse
[mcp-superassistant-proxy] - messagePath: /message
[mcp-superassistant-proxy] - CORS: enabled ("*")
[mcp-superassistant-proxy] - Health endpoints: (none)
[mcp-superassistant-proxy] Loaded config with 1 servers
[mcp-superassistant-proxy] Connecting to streamable HTTP server default-server: https://hylomorphic-overfruitful-leigha.ngrok-free.dev/mcp/documents
[mcp-superassistant-proxy] With headers: (none)
[mcp-superassistant-proxy] Failed to initialize server default-server: Error: Failed to connect to server default-server: McpError: MCP error -32602: Unsupported protocol version
Expected Result
The Laravel MCP server should return the stable MCP protocol version:
"protocolVersion": "0.1.0"Root Cause
It appears the current Laravel MCP package is still responding using the older pre-release MCP protocol (0.0.x) during the handshake.
This makes Laravel MCP incompatible with MCP clients and proxies that expect the final MCP spec (0.1.0), released by OpenAI.
Request
Can the Laravel MCP package be updated to:
-
Return
protocolVersion: "0.1.0"in the handshake -
Match the current MCP request/response schema used by:
- mcp-superassistant-proxy
- OpenAI-compliant MCP clients
- MCP browser extensions
-
Provide a way to override/extend the protocol adapter until native support is available