search_symbols
Search types, methods, fields by glob pattern
How to use it
search_symbols is exposed by the Javalens MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the search_symbols tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL JAVALENS MCP LISTINGOther tools in Javalens MCP (39)
Blast radius — direct call sites by depth, or the full transitive closure over the project graph (transitive=true)
Branching, loops, return/throw points, nesting depth
Variable read/write/declaration tracking within a method; opt-in followCalls tracks null/taint facts across calls to sinks
Get imports, types, diagnostics in one call
The tests that exercise a symbol, directly or transitively — the set to run after changing it
Find all @Annotation usages
Find all (Type) expr casts
Find all catch(Exception e) blocks
Find where fields are mutated
Find interface/class implementations
Find all x instanceof Type
Find all Type::method expressions
Detect null risks, empty catches, resource leaks
Find all usages of a symbol
Find Class.forName(), Method.invoke(), and other reflection calls
Discover JUnit/TestNG test methods
Find all throws Exception in signatures
Find all List<Type> usages
Find all new Type() calls
Project-wide dead code — members unreachable from any main method or test, over the whole-program call graph
Find unused private members
Find all callers of a method
Find all methods called by a method
Find Spring DI registrations (@Component, @Bean, @Autowired, @Inject)
Get compilation errors and warnings
Get all symbols in a file
Get containing method/class at position
Get field details at cursor
Get documentation/signature for symbol
Assembled HTTP route table — Spring and JAX-RS paths composed from class prefixes, mapped to handler methods
Get parsed Javadoc
Assembled JPA entity model — tables, id fields, relationships with resolved targets and mappedBy sides
Get method details at cursor
Get method signature at call site
Get detailed symbol information at position
Get type details at cursor
Get inheritance chain
Navigate to symbol definition
Fast syntax-only validation