Skip to content

fix(web_fetch): include page body in structuredContent #13

Closed
Dev-vlad wants to merge 1 commit into
mainfrom
mass-739-cowork-web_fetch-returns-metadata-without-page-body
Closed

fix(web_fetch): include page body in structuredContent #13
Dev-vlad wants to merge 1 commit into
mainfrom
mass-739-cowork-web_fetch-returns-metadata-without-page-body

Conversation

@Dev-vlad

@Dev-vlad Dev-vlad commented Jun 11, 2026

Copy link
Copy Markdown
Member

Summary

  • Fixes MASS-739: in Claude Cowork, web_fetch returned only the metadata line {format, url, bytes} and the page body never reached the model.
  • Root cause: the body was returned only in the unstructured content text block, while structuredContent carried metadata only. Cowork shows the model structuredContent when present (the MCP spec expects the two representations to be functionally equivalent); standard chat uses content, which is why it worked there and why account_status/web_search/ai_chat_completion (full payload in structuredContent) worked in Cowork.
  • Fix: include the body as structuredContent.body, matching the equivalence pattern of the other tools.
  • Also: handler-level live check in test:live verifying structuredContent.body matches the text content; version bump to 0.2.2 + changelog entry.

Test plan

  • Unit tests updated to require body in structuredContent (watched them fail before the fix): 109/109 pass
  • Typecheck, lint, build, build:mcpb all clean
  • npm run test:live with a real token: 8/8 PASS, including the new MASS-739 handler check
  • Install dist-mcpb/massive-mcp-0.2.2.mcpb in Cowork and confirm the body reaches the model

🤖 Generated with Claude Code

web_fetch returned the page body only in the text content block, while
structuredContent carried just {format, url, bytes} metadata. Clients
that show the model structuredContent instead of the content blocks
(e.g. Claude Cowork) received no page body. Include the body as
structuredContent.body so the two representations are functionally
equivalent per the MCP spec, matching the other tools.

Also adds a handler-level live check (test:live) asserting
structuredContent.body matches the text content, and bumps the version
to 0.2.2 with a changelog entry.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Dev-vlad

Copy link
Copy Markdown
Member Author

Superseded by a re-filed PR from a branch without the internal ticket reference.

@Dev-vlad Dev-vlad closed this Jun 11, 2026
@Dev-vlad Dev-vlad deleted the mass-739-cowork-web_fetch-returns-metadata-without-page-body branch June 11, 2026 12:39
@Dev-vlad Dev-vlad changed the title fix(web_fetch): include page body in structuredContent (MASS-739) fix(web_fetch): include page body in structuredContent Jun 11, 2026
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