Skip to content

Laravel MCP is using outdated MCP protocol version (0.0.x) → Cannot connect to modern MCP clients (Unsupported protocol version) #124

@bloodykheeng

Description

@bloodykheeng

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

  1. Install Laravel MCP
  2. Create an MCP server (example: SmsNotificationServer)
  3. Expose endpoint:
    http://localhost:8000/mcp/documents
    i had to use ngrok to get a url with https
    using this command
ngrok http 8000
  1. 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"
        }
    }
}
  1. 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:

  1. Return protocolVersion: "0.1.0" in the handshake

  2. Match the current MCP request/response schema used by:

    • mcp-superassistant-proxy
    • OpenAI-compliant MCP clients
    • MCP browser extensions
  3. Provide a way to override/extend the protocol adapter until native support is available

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions