Skip to content

Preserve backend HTTP status in MCP errors - #33

Merged
NotXf1le merged 1 commit into
masterfrom
feature/mcp-http-error-status
Oct 26, 2026
Merged

NotXf1le merged 1 commit into
masterfrom
feature/mcp-http-error-status

Conversation

@NotXf1le

Copy link
Copy Markdown
Owner

What changed

  • Report validated backend HTTP status in choose and chooseMany tool errors without exposing upstream messages or bodies.
  • Require choosekit ^0.9.1 and prepare choosekit-mcp 0.6.1.
  • Add error-boundary tests for both tools and a CLI-to-adapter HTTP 429 regression test.

Why

MCP clients currently receive the same error message for an invalid API key (HTTP 401), rate limiting (HTTP 429), and an unavailable backend (HTTP 503). Including the status code makes these failures distinguishable without exposing the backend response body.

Checks

  • npm run check — core: 195 tests, MCP: 37 tests
  • npm pack --dry-run — both packages
  • git diff origin/master...HEAD --check
  • All three new regression tests fail with the previous MCP error formatter.

@NotXf1le
NotXf1le merged commit 17700f1 into master Oct 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant