Skip to content

fix(mcp): surface tool failures and structured content - #1170

Open
TheGreatAxios wants to merge 6 commits into
mainfrom
cl-8992-mcp-tool-iserror-and-structuredcontent-are-dropped-so
Open

TheGreatAxios wants to merge 6 commits into
mainfrom
cl-8992-mcp-tool-iserror-and-structuredcontent-are-dropped-so

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • surface MCP tool-level failures as error results
  • expose scrubbed structured-only payloads while preserving text output and archived evidence
  • retain transport-error behavior and redact credential-shaped structured values

Verification

  • bun run typecheck passes
  • targeted MCP and session suites pass
  • bun run test passes
  • bun run lint passes

Fixes CL-8992

@linear-code

linear-code Bot commented Sep 25, 2026

Copy link
Copy Markdown

CL-8992

@TheGreatAxios TheGreatAxios changed the title fix(mcp): surface tool-level isError and structuredContent (CL-8992) fix(mcp): surface tool failures and structured content Sep 25, 2026
The criterion-4 test fed the redaction marker itself, asserting both P and not-P. Feed a constructed live-shaped token and assert the marker is present with the raw token absent in content and detail.
Hook payloads capped content but passed detail through verbatim, letting a verbose server blow up payloads. Omit serialized detail over the payload budget while preserving small detail.
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