getsentry / getsentry/sentry-mcp

Handling of LLM queries with AND/OR operators

Open
#803 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
853
Forks
144
Avg merge
19h 25m
Merged PRs (30d)
32

Description

### Environment

Current Sentry MCP, Claude Code

### Steps to Reproduce

1. Ask for recent production issues.
2. Claude decides natural lanaguage query - in this case "unresolved access
denied or forbidden errors from last 30 days"
3. MCP rejects because it thinks I'm trying to use logical operators and chain requests.

`
```
● plugin:sentry:sentry - search_issues (MCP)(organizationSlug: "labs", naturalLanguageQuery: "unresolved access
denied or forbidden errors from last 30 days", regionUrl:
"https://us.sentry.io", limit: 20)
```
⎿  Error: **Input Error**

There was an HTTP 400 error with your request to the Sentry API.

API error (400): Error parsing search query: Boolean statements containing "OR" or "AND" are not supported in this
search

You may be able to resolve the issue by addressing the concern and trying again.
`
### Expected Result

LLM should flatten the request based on what you could actually accept to one request and supply a soft warning (or better mcp should know it needs to make multiple queries)

### Actual Result

See above.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.