Repository navigation
feat(mcp): Plan requested time series transformations - #2842
nsdeschenes wants to merge 6 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
📊 MCP Server Token Cost ReportSummary
Per-Tool Breakdown
Note: This measures the static overhead of tool definitions sent to LLM clients with every request. Lower is better. MCP Apps viewsEach
The budget applies to raw bytes, and the view's generator fails over it. |
Reuse the explicit search configuration for requested gap filling and smoothing. Keep caller settings authoritative and report unsupported transformations. Co-Authored-By: Codex CLI Agent (GPT-6.2 Sol) <noreply@openai.com>
Keep the required sort field and existing validation instructions explicit. Add exceptions for transformed plans alongside the original wording. Co-Authored-By: Codex CLI Agent (GPT-6.2 Sol) <noreply@openai.com>
Co-Authored-By: Codex CLI Agent (GPT-6.2 Sol) <noreply@openai.com>
Co-Authored-By: Codex CLI Agent (GPT-6.2 Sol) <noreply@openai.com>
92a67bf to
40a2ede
Compare
There was a problem hiding this comment.
The planner wiring looks right. Explicit timeSeries input still always carries a transformation (the schema refine guarantees it), so moving from explicitTimeSeries to transformed keeps that path as it was, and generated definitions are in sync. A few things to fix before this is ready:
- The
@sentry/mcp-serverbundle check fails because of this PR. I rebuilt it locally.mainis 3,952,454 bytes, 677 bytes underMAX_BUNDLE_BYTESinpackages/mcp-server/script/bundle.ts, and this branch adds 3,351 bytes of prompt text. Deduplicating helps but won't close a gap that size on its own. "Skip validateSearch when returning timeSeries.axes or timeSeries.unsupportedTransformation" appears four times (three inconfig.ts, one inbuildAgentPrompt), and the empty fields/sort rule is stated in the TRANSFORMED section, SORTING RULES, and the output-format list. Collapse each to one place, then either trim the TRANSFORMED section further or raise the budget and update its comment. The comment still says it leaves 5–10 KB of headroom, andmainis already past that. - The headline eval case fails. In the "Compare raw hourly error log counts…" case in
natural-language-search.eval.ts, the model returnedtransformations: []on the raw axis, and the expectation requiresundefined, so it scored 0.50. Everything downstream treats the two the same (transformations?.length), so accept an empty array in the expectation or normalize empty arrays in the planner output. The eval step usescontinue-on-error, so this didn't turn the check red. - The PR description doesn't follow
docs/contributing/pr-management.md, which says to leave test plans out of descriptions because CI handles testing. Drop the Verification section, including the note about local provider credentials.
The sentry CLI project failure (api.property.test.ts, a __proto__ fast-check counterexample in buildFromFields) looks unrelated, since this PR doesn't touch packages/cli. A rerun should clear it.
Commit messages and Co-Authored-By attribution follow the repo convention.
via Nick.
State the transformed plan rules once and point the other planner steps at them. Raise the @sentry/mcp-server bundle budget to 3.78 MiB to restore its headroom. Accept an empty transformation list on the raw eval axis, which the search treats the same as an omitted list. Co-Authored-By: Nicholas Deschenes <nicholas.deschenes@sentry.io>
The embedded agent gets a final response step after its fifth work step only when that step validated a search. Telling the planner to skip validateSearch for transformed plans left those plans with no way to finish once they used all five steps. Validate the plan's query and aggregates as a table search instead, and still return empty fields and sort. Co-Authored-By: Nicholas Deschenes <nicholas.deschenes@sentry.io>
Why
Callers can already pass fill and smoothing settings directly to MCP searches. EXP-1414 lets callers request the same transformations in natural language.
What changed
@sentry/mcp-serverbundle budget from 3.77 to 3.78 MiB. The planner guidance adds about 3 KB, andmainhad less than 1 KB of headroom left.Scope
Blast Radius
Only the embedded planner generates the new plans. Explicit searches continue to run directly, and Seer keeps its existing priority.
via Nick.
--
View Session [Sentry]