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.