goose follows the tools/list cursor but reads one page of prompts and of resources

Kind: idiosyncrasy · Status: current · Last verified: 2026-11-27 · Clients: goose · Revisions: 2026-07-28, 2025-11-25

Extension.fetch_public_tools loops on tools/list until a page comes back with no nextCursor. The prompt and resource listings have no loop. Each one passes None as the cursor and keeps only the items of the first reply.

Prompts

ExtensionLease.list_prompts_from_extension sends prompts/list with no cursor and returns result.prompts. ExtensionLease.list_prompts runs it for every running extension. Every prompt surface goes through that one call: the /prompts and /prompt commands in ops_mcp_prompts.rs, and the CLI session's prompt list, prompt info, prompt get and completion cache. /prompt <name> looks the name up in that listing before it sends prompts/get, so a prompt on a later page is reported as not found.

Resources

ExtensionLease.ui_resources sends one resources/list per extension and keeps the entries whose URI starts with ui://. fetch_mcp_apps reads each of those and offers the HTML as an app. A ui:// resource past the first page is not offered.

The model reaches resources through two tools on the built-in extensionmanager extension, list_resources and read_resource. They are left out of the tool list when no extension advertises resources. list_resources takes one optional argument, extension_name, and has no cursor argument. It calls ExtensionLease.list_resources_result_from_extension, which sends resources/list with no cursor. The tool returns a text block per extension with one line per resource, <extension> - <name>, uri: (<uri>), and the reply's nextCursor is not shown. The model cannot ask for a second page. read_resource returns the text contents of the read, each prefixed with the URI. Blob contents are dropped.

List-changed notifications

GooseClient overrides on_tool_list_changed and no other list-changed callback. rmcp 3.11.0, the version goose's lockfile resolves, implements on_prompt_list_changed and on_resource_list_changed as no-ops, and on_resource_updated is not overridden either. goose does not cache prompt or resource listings, so the next command or tool call lists again and sees a changed list. The CLI's prompt-name completion cache is the exception: it is filled after extensions load and on extension or provider changes, and a notifications/prompts/list_changed does not refresh it.

Sources