JSON resources do not advertise application/json consistently in resources/list and resources/read #569
Labels
No labels
code-review
correctness
dos
performance
security
severity/high
severity/low
severity/medium
tech-debt
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
h-dv/code-index#569
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found in worker dogfooding (triage round 14), reproduced on the installed v0.41.48.
Reproduction: initialize
code-index-mcp --root "$PWD", sendresources/list {}, thenresources/read {"uri":"code-index://telemetry"}.Actual: the project overview, stats and telemetry resources carry no
mimeTypeinresources/list;resources/readreturns parseable JSON labelledtext/plain.Control:
resources/listadvertisesapplication/jsonon the resolver-costs and plugin-registry resources.Expected: every resource whose content is structured JSON advertises
application/jsonin 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).
Released in v0.41.50: every JSON resource carries
application/jsoninresources/listand on the content block ofresources/read.Verified on the installed
code-index-mcpover stdio: 18 resources listed, none without amimeType; the 5 JSON resources carryapplication/jsonin the listing and on the content block of the read. Closing.