structural_search
AST pattern matching — find .unwrap() calls, new instantiations, specific patterns
How to use it
structural_search is exposed by the Octocode MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the structural_search tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Octocode
claude mcp add octocode -- octocode mcp --path /path/to/your/projectOther tools in Octocode (6)
Query relationships — "what calls this function?", "what does this module import?"
Find all usages of a symbol across the workspace (requires --with-lsp)
Jump to a symbol's definition (requires --with-lsp)
Type info and documentation for a symbol (requires --with-lsp)
Find code by meaning — "authentication flow", "error handling", "database queries"
View file structure — function signatures, class definitions, imports