Skip to content

Invalid params: "id" must be an integer or null if present., data=null] #526

@ericdallo

Description

@ericdallo

Bug description
Initial issue

When using laravel boost MCP I face

Client failed to initialize by explicit API call

JSONRPCError[code=-32602, message=Invalid params: "id" must be an integer or null if present., data=null]

Environment
version 0.11.3

Steps to reproduce

ServerParameters params = ServerParameters.builder("php")
    .args("artisan", "boost:mcp")
    .build();
McpTransport transport = new StdioClientTransport(params);

McpAsyncClient client = McpClient.async(transport)
    .requestTimeout(Duration.ofSeconds(10))
    .capabilities(ClientCapabilities.builder()
        .roots(true) 
        .build())
    .build();

client.initialize.block(); // throws

Expected behavior
Initialize with no issue server.

Same server works with other clients: Cursor, gptel etc.

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