Skip to content

Improve MCP text response decoding#3

Merged
vamgan merged 1 commit into
mainfrom
fix/mcp-text-decoding
May 11, 2026
Merged

Improve MCP text response decoding#3
vamgan merged 1 commit into
mainfrom
fix/mcp-text-decoding

Conversation

@vamgan
Copy link
Copy Markdown
Contributor

@vamgan vamgan commented May 11, 2026

Summary

  • surface MCP isError text responses as thrown errors
  • throw clear errors for empty or malformed MCP text content
  • add coverage for MCP error, malformed JSON, and missing text responses

Tests

  • npm ci
  • npm run typecheck
  • npm test -- --run
  • npm run build

Fixes #2

@vamgan vamgan merged commit bb103cd into main May 11, 2026
1 check passed
@vamgan vamgan deleted the fix/mcp-text-decoding branch May 11, 2026 06:38
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.

P2: Improve MCP text response decoding and error handling

1 participant