Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .changeset/add-resource-ref-resourceType-description.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"servers/everything" patch
---

Fix `get-resource-reference` / `resource-prompt` prompt argument missing description for `resourceType`

The `resourceType` prompt argument on `resource-prompt` (and `get-resource-reference` tool) now includes the allowed values in its description: `"Type of resource — must be 'Text' or 'Blob'."`. This allows automated callers to determine valid values without guessing or relying on error messages.

Previously the description only said `"Type of resource to fetch"` with no enumeration of allowed values, causing schema-completeness warnings and hard failures during automated invocation (e.g., mcp-probe).

See [issue #3985](https://github.com/modelcontextprotocol/servers/issues/3985) for context.
2 changes: 1 addition & 1 deletion src/everything/resources/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const RESOURCE_TYPES: string[] = [
* The completion logic matches the input against available resource types.
*/
export const resourceTypeCompleter = completable(
z.string().describe("Type of resource to fetch"),
z.string().describe("Type of resource — must be 'Text' or 'Blob'."),
(value: string) => {
return RESOURCE_TYPES.filter((t) => t.startsWith(value));
}
Expand Down
Loading