Skip to content

Commit 62877a8

Browse files
George-iamclaude
andauthored
fix: add protocolVersion to mcpInitialize request body (#21)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b7e0a4c commit 62877a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/dev/axme/sdk/AxmeClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ public Map<String, Object> mcpInitialize(RequestOptions options)
689689
rpcRequest.put("jsonrpc", "2.0");
690690
rpcRequest.put("id", UUID.randomUUID().toString());
691691
rpcRequest.put("method", "initialize");
692-
rpcRequest.put("params", Map.of());
692+
rpcRequest.put("params", Map.of("protocolVersion", "2024-11-05"));
693693
Map<String, Object> response = requestJson("POST", "/mcp", Map.of(), rpcRequest, normalizeOptions(options));
694694
if (response.containsKey("error")) {
695695
throw new AxmeHttpException(0, String.valueOf(response.get("error")));

0 commit comments

Comments
 (0)