Discovers and assembles context across the entire codebase for a natural language query. Unlike get_ai_context (single symbol) or get_edit_context (single location), this tool searches the whole codebase and curates cross-cutting context from multiple files.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| query | string | Yes | -- | Natural language description of the context needed, or a symbol/module name (e.g., "authentication logic", "UserService") |
| uri | string | No | -- | Optional file URI to anchor the search. Results from this file are prioritized. |
| maxTokens | number | No | 8000 | Maximum tokens of context to return |
| maxSymbols | number | No | 5 | Maximum number of primary symbols to include |
Natural Language: "How does authentication work in this project?"
MCP Tool Call:
{
"name": "stellarion_get_curated_context",
"arguments": {
"query": "authentication middleware and login flow"
}
}
Returns: Source of the auth middleware function, its callers (routes that use it), its dependencies (token verification, user lookup), and architectural memories about auth design decisions.
Natural Language: "Show me how errors are handled in the API layer"
MCP Tool Call:
{
"name": "stellarion_get_curated_context",
"arguments": {
"query": "error handling patterns in API routes",
"maxSymbols": 8,
"maxTokens": 12000
}
}
Returns: Error handler middleware, custom error types, example route handlers showing error patterns, and any conventions stored in memory about error handling.
Natural Language: "What relates to this payment processing file?"
MCP Tool Call:
{
"name": "stellarion_get_curated_context",
"arguments": {
"query": "payment processing and billing",
"uri": "file:///home/dev/project/src/billing/processor.ts"
}
}
Returns: Context anchored around the payment processor file, with related symbols from other billing modules prioritized over generic matches.
The response is assembled through a pipeline:
Each symbol in the response includes its name, kind, file location, full source code (or signature if budget-constrained), and relationship to the query.
uri to anchor results when you already know one relevant file. This biases the search toward related code in the same area.maxSymbols when exploring a large subsystem. Decrease it when you want focused results.stellarion_get_ai_context is faster and more focused.stellarion_get_call_graph on specific results to trace execution flow deeper into the codebase.