Skip to content

fix(mcp-core): send analyze_issue_with_seer instruction as user_context - #1668

Open
sebastianv1 wants to merge 3 commits into
mainfrom
sebastianshanus/aiml-3769-mcps-analyze_issue_with_seer-instruction-never-reaches-seer
Open

sebastianv1 wants to merge 3 commits into
mainfrom
sebastianshanus/aiml-3769-mcps-analyze_issue_with_seer-instruction-never-reaches-seer

Conversation

@sebastianv1

@sebastianv1 sebastianv1 commented Oct 26, 2026 •

Copy link
Copy Markdown

Summary

The MCP is sending the instruction key to our /autofix endpoint which used to work; however since getsentry/sentry#116162 swapped over to using the explore mode, the endpoint reads the instruction from the user_context key in the body now.

Test plan

[x] Red green tested with issue

Sentry's autofix endpoint reads `user_context` and ignores unknown keys,
so the `instruction` key MCP sent has been dropped since
getsentry/sentry#116162 routed every request to the agent path.

Send the instruction as `user_context`, omit it when empty, and drop the
unused `event_id`. Note in the tool description that the instruction only
applies when starting a new analysis.

Fixes AIML-3769
@vercel

vercel Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Oct 26, 2026 8:36pm UTC

Request Review

@linear-code

linear-code Bot commented Oct 26, 2026

Copy link
Copy Markdown

AIML-3769

@sebastianv1
sebastianv1 marked this pull request as ready for review October 26, 2026 20:54
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Oct 26, 2026

This branch was successfully deployed

1 active and 1 inactive deployments
Actions — 90b73e11 Deployed Oct 26, 2026 by sebastianv1 via eval #1364
Preview — 90b73e11 Deployed Oct 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant