Skip to content

Commit c08d6f3

Browse files
sdsrssclaude
andcommitted
fix(mcp): remove top-level anyOf from tool schemas for Claude API compatibility
find_similar_code and ast_search used top-level anyOf in inputSchema which is unsupported by Claude API, causing subagent 400 errors. Changed to required:[] with existing runtime validation. Bump to v0.7.7. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent d28e7b1 commit c08d6f3

10 files changed

Lines changed: 17 additions & 25 deletions

File tree

.claude-plugin/marketplace.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
},
66
"metadata": {
77
"description": "AST knowledge graph plugin for Claude Code — semantic search, call graph, HTTP tracing, impact analysis",
8-
"version": "0.7.6"
8+
"version": "0.7.7"
99
},
1010
"plugins": [
1111
{
1212
"name": "code-graph-mcp",
1313
"source": "./claude-plugin",
1414
"description": "AST knowledge graph for intelligent code navigation — auto-indexes your codebase and provides semantic search, call graph traversal, HTTP route tracing, and impact analysis via MCP tools",
15-
"version": "0.7.6",
15+
"version": "0.7.7",
1616
"author": {
1717
"name": "sdsrs"
1818
},

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.7.6"
3+
version = "0.7.7"
44
edition = "2021"
55

66
[features]

claude-plugin/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"author": {
55
"name": "sdsrs"
66
},
7-
"version": "0.7.6",
7+
"version": "0.7.7",
88
"keywords": [
99
"code-graph",
1010
"ast",

npm/darwin-arm64/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-darwin-arm64",
3-
"version": "0.7.6",
3+
"version": "0.7.7",
44
"description": "code-graph-mcp binary for macOS ARM64",
55
"license": "MIT",
66
"repository": {

npm/darwin-x64/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-darwin-x64",
3-
"version": "0.7.6",
3+
"version": "0.7.7",
44
"description": "code-graph-mcp binary for macOS x64",
55
"license": "MIT",
66
"repository": {

npm/linux-arm64/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-linux-arm64",
3-
"version": "0.7.6",
3+
"version": "0.7.7",
44
"description": "code-graph-mcp binary for Linux ARM64",
55
"license": "MIT",
66
"repository": {

npm/linux-x64/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-linux-x64",
3-
"version": "0.7.6",
3+
"version": "0.7.7",
44
"description": "code-graph-mcp binary for Linux x64",
55
"license": "MIT",
66
"repository": {

npm/win32-x64/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-win32-x64",
3-
"version": "0.7.6",
3+
"version": "0.7.7",
44
"description": "code-graph-mcp binary for Windows x64",
55
"license": "MIT",
66
"repository": {

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sdsrs/code-graph",
3-
"version": "0.7.6",
3+
"version": "0.7.7",
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": {
@@ -33,10 +33,10 @@
3333
"node": ">=16"
3434
},
3535
"optionalDependencies": {
36-
"@sdsrs/code-graph-linux-x64": "0.7.6",
37-
"@sdsrs/code-graph-linux-arm64": "0.7.6",
38-
"@sdsrs/code-graph-darwin-x64": "0.7.6",
39-
"@sdsrs/code-graph-darwin-arm64": "0.7.6",
40-
"@sdsrs/code-graph-win32-x64": "0.7.6"
36+
"@sdsrs/code-graph-linux-x64": "0.7.7",
37+
"@sdsrs/code-graph-linux-arm64": "0.7.7",
38+
"@sdsrs/code-graph-darwin-x64": "0.7.7",
39+
"@sdsrs/code-graph-darwin-arm64": "0.7.7",
40+
"@sdsrs/code-graph-win32-x64": "0.7.7"
4141
}
4242
}

src/mcp/tools.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,7 @@ impl ToolRegistry {
145145
"top_k": { "type": "number", "description": "Results count (default 5)" },
146146
"max_distance": { "type": "number", "description": "Max distance (default 0.8)" }
147147
},
148-
"anyOf": [
149-
{ "required": ["symbol_name"] },
150-
{ "required": ["node_id"] }
151-
]
148+
"required": []
152149
}),
153150
},
154151
ToolDefinition {
@@ -163,12 +160,7 @@ impl ToolRegistry {
163160
"params": { "type": "string", "description": "Parameter text substring filter" },
164161
"limit": { "type": "number", "description": "Max results (default 20)" }
165162
},
166-
"anyOf": [
167-
{ "required": ["query"] },
168-
{ "required": ["type"] },
169-
{ "required": ["returns"] },
170-
{ "required": ["params"] }
171-
]
163+
"required": []
172164
}),
173165
},
174166
ToolDefinition {

0 commit comments

Comments
 (0)