tool: get_relevant_context
input: {
task: string, // "refactor auth module" or "fix login bug"
tokenBudget?: number, // max tokens to return (default: 8000)
scope?: string // module or directory to focus on
}
output: {
files: Array<{ path, relevanceScore, pageRank, summary }>,
totalTokens: number,
coverage: string // "covers 85% of related dependency graph"
}
Summary
Add a
get_relevant_contextMCP tool that takes a task description + token budget and returns the optimal subgraph of files to read. Agents waste 60-70% of context on irrelevant files — our graph knows which files matter.Motivation
Proposed API
Approach
Priority
Immediate — Token efficiency is the #1 competitive differentiator for AI agent tooling.