You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: get_symbol_code returns full source code instead of just name (#187) (#188)
The tree-sitter query files for TypeScript, JavaScript, and Rust had
@definition.X captures placed on the identifier node instead of the
declaration node, causing extract_symbols to return only the symbol
name in the code field.
- Fix TypeScript/JavaScript/Rust query patterns to capture full body
- Add regression test for issue #187
- Document include_code param in MCP tool description and docs
Copy file name to clipboardExpand all lines: docs/src/content/docs/mcp/kit-dev-mcp.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ The server provides many tools including:
84
84
-**grep_code** - Fast literal string search (120s default timeout, configurable via `KIT_GREP_TIMEOUT`)
85
85
-**grep_ast** - Search code using AST patterns (semantic search)
86
86
-**get_file_tree** - Repository file structure with pagination support (`limit`/`offset` params)
87
-
-**extract_symbols** - Extract functions, classes, and symbols
87
+
-**extract_symbols** - Extract functions, classes, and symbols (excludes code by default for ~90% token savings; use `include_code=true` to get full source)
88
88
-**get_symbol_code** - Get source code of a specific symbol (lazy loading for context efficiency)
89
89
-**find_symbol_usages** - Find where symbols are used
90
90
-**warm_cache** - Pre-warm caches for faster operations on large codebases (100K+ files)
description="Extract symbols (functions, classes, etc.) from a file. Returns name, type, start_line, end_line, file. By default excludes source code to save tokens (~90% reduction). Use include_code=true to get full source, or use get_symbol_code for lazy loading specific symbols.",
0 commit comments