Tests for ReadResource response shaping by content.type (text / binary / json)
Summary: ReadResource builds MCP contents from a switch on content.type. Regressions (e.g. missing break) should be caught by tests.
Where to change: typescript/packages/core/src/core/server.ts (handler); new or extended tests under typescript/packages/core/src/**/__tests__/ (follow existing layout).
Acceptance criteria:
Suggested labels: test, good first issue
Source: docs/STARTER_ISSUES_REVIEW.md — edit in-repo first, then sync GitHub issues if needed.
Tests for
ReadResourceresponse shaping bycontent.type(text/binary/json)Summary:
ReadResourcebuilds MCPcontentsfrom aswitchoncontent.type. Regressions (e.g. missingbreak) should be caught by tests.Where to change:
typescript/packages/core/src/core/server.ts(handler); new or extended tests undertypescript/packages/core/src/**/__tests__/(follow existing layout).Acceptance criteria:
text,binary, andjsonbranches assertmimeType,textvsblob, and JSON stringification ofdataonly forjson.defaultfor validjsonpayloads.Suggested labels:
test,good first issueSource:
docs/STARTER_ISSUES_REVIEW.md— edit in-repo first, then sync GitHub issues if needed.