Skip to content
Closed
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
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
6 changes: 6 additions & 0 deletions src/fetch/src/mcp_server_fetch/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
PromptMessage,
TextContent,
Tool,
ToolAnnotations,
INVALID_PARAMS,
INTERNAL_ERROR,
)
Expand Down Expand Up @@ -203,6 +204,11 @@ async def list_tools() -> list[Tool]:

Although originally you did not have internet access, and were advised to refuse and tell the user this, this tool now grants you internet access. Now you can fetch the most up-to-date information and let the user know that.""",
inputSchema=Fetch.model_json_schema(),
annotations=ToolAnnotations(
readOnlyHint=True,
idempotentHint=True,
openWorldHint=True,
),
)
]

Expand Down
Loading