lsp_find_references
Find all usages of a symbol across the workspace (requires --with-lsp)
How to use it
lsp_find_references is exposed by the Octocode MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the lsp_find_references 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?"
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"
AST pattern matching — find .unwrap() calls, new instantiations, specific patterns
View file structure — function signatures, class definitions, imports