Skip to content

Commit 8b5dc54

Browse files
sdsrssclaude
andcommitted
fix(mcp): remove anyOf from get_ast_node schema for Claude API compatibility
Claude API does not support oneOf/allOf/anyOf at the top level of tool input_schema. Replace with empty required array; validation is handled in Rust code. Bump to v0.5.22. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a87c41a commit 8b5dc54

4 files changed

Lines changed: 4 additions & 7 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "code-graph-mcp"
3-
version = "0.5.21"
3+
version = "0.5.22"
44
edition = "2021"
55

66
[features]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sdsrs/code-graph",
3-
"version": "0.5.21",
3+
"version": "0.5.22",
44
"description": "MCP server that indexes codebases into an AST knowledge graph with semantic search, call graph traversal, and HTTP route tracing",
55
"license": "MIT",
66
"repository": {

src/mcp/tools.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,7 @@ impl ToolRegistry {
7474
"include_references": { "type": "boolean", "description": "Include callers/callees (default false)" },
7575
"context_lines": { "type": "number", "description": "Surrounding source lines to include (default 0)" }
7676
},
77-
"anyOf": [
78-
{ "required": ["symbol_name"] },
79-
{ "required": ["node_id"] }
80-
]
77+
"required": []
8178
}),
8279
},
8380
ToolDefinition {

0 commit comments

Comments
 (0)