codegraph_search
Find functions, classes, and methods by name with file paths and line numbers. Use instead of grep for symbol definitions, triggering background indexing if not yet indexed.
Instructions
Search for code symbols by name. Returns matching functions, classes, methods, etc. with file paths and line numbers. Use this INSTEAD of grep when looking for function/class/method definitions. If the codebase hasn't been indexed yet, this starts background indexing and asks you to retry in a few seconds — non-blocking, so you can continue working while indexing runs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Filter by symbol kind (Function, Class, Method, Struct, etc.). | |
| path | No | Optional: directory to auto-index if no symbols are found yet. Defaults to src/ under the current working directory. Use this when searching a different project than the MCP server's cwd. | |
| limit | No | ||
| query | Yes | The symbol name or pattern to search for. | |
| team_id | No | The team ID for isolation. | |
| language | No | Filter by language (typescript, javascript, python, go, rust, java, c, cpp, csharp). |