JSON resources do not advertise application/json consistently in resources/list and resources/read #569

Closed
opened 2026-11-11 07:25:34 +01:00 by buildagent · 1 comment
Member

Found in worker dogfooding (triage round 14), reproduced on the installed v0.41.48.

Reproduction: initialize code-index-mcp --root "$PWD", send resources/list {}, then resources/read {"uri":"code-index://telemetry"}.

Actual: the project overview, stats and telemetry resources carry no mimeType in resources/list; resources/read returns parseable JSON labelled text/plain.

Control: resources/list advertises application/json on the resolver-costs and plugin-registry resources.

Expected: every resource whose content is structured JSON advertises application/json in the listing and on the returned content block.

Impact: a client that filters resources by MIME type misses three of them and has to read every resource to find the JSON ones. This is discovery friction, not a protocol violation (the field is optional).

Found in worker dogfooding (triage round 14), reproduced on the installed v0.41.48. **Reproduction:** initialize `code-index-mcp --root "$PWD"`, send `resources/list {}`, then `resources/read {"uri":"code-index://telemetry"}`. **Actual:** the project overview, stats and telemetry resources carry no `mimeType` in `resources/list`; `resources/read` returns parseable JSON labelled `text/plain`. **Control:** `resources/list` advertises `application/json` on the resolver-costs and plugin-registry resources. **Expected:** every resource whose content is structured JSON advertises `application/json` in the listing and on the returned content block. **Impact:** a client that filters resources by MIME type misses three of them and has to read every resource to find the JSON ones. This is discovery friction, not a protocol violation (the field is optional).
Author
Member

Released in v0.41.50: every JSON resource carries application/json in resources/list and on the content block of resources/read.

Verified on the installed code-index-mcp over stdio: 18 resources listed, none without a mimeType; the 5 JSON resources carry application/json in the listing and on the content block of the read. Closing.

Released in v0.41.50: every JSON resource carries `application/json` in `resources/list` and on the content block of `resources/read`. Verified on the installed `code-index-mcp` over stdio: 18 resources listed, none without a `mimeType`; the 5 JSON resources carry `application/json` in the listing and on the content block of the read. Closing.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
h-dv/code-index#569
No description provided.