From e95f39e5d590dae512f5098a9b7822dadde16893 Mon Sep 17 00:00:00 2001 From: Will-hxw <1176843521@qq.com> Date: Tue, 21 Apr 2026 04:35:52 +0800 Subject: [PATCH] fix(everything): add allowed values to resourceType description The resourceType argument in the resource-prompt was missing a description of allowed values. Added "must be 'Text' or 'Blob'" to help automated callers understand the expected input format. Issue: modelcontextprotocol/servers#3985 Co-Authored-By: Claude Opus 4.7 --- src/everything/resources/templates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/everything/resources/templates.ts b/src/everything/resources/templates.ts index 6d4903f74c..f56214cba8 100644 --- a/src/everything/resources/templates.ts +++ b/src/everything/resources/templates.ts @@ -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)); }