You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AppBridge: views can list prompts but not get one (no prompts/get handler) #876
AppBridge lets a host answer a view's prompts/list (onlistprompts) but has no counterpart for prompts/get. A view can therefore enumerate a server's prompts and then has no way to fetch one through the host.
Where
Checked in @modelcontextprotocol/ext-apps 2.0.3 and 2.0.4, dist/src/app-bridge.d.ts. The handler setters are: oncalltool, oncreatesamplingmessage, ondownloadfile, oninitialized, onlistprompts, onlistresources, onlistresourcetemplates, onloggingmessage, onmessage, onopenlink, onreadresource, onrequestdisplaymode, onrequestteardown, onsandboxready, onsizechange, onupdatemodelcontext. The forwarding doc comment lists "Prompts (prompts/list, notifications/prompts/list_changed)" only. Resources have both halves (onlistresources + onreadresource); prompts have only the first.
Ask
Either add an ongetprompt handler (same shape as onreadresource: host receives the params, returns a GetPromptResult), or say in the spec / docs that views are intentionally limited to listing prompts, so hosts know not to expect it.
Context
Found while building an MCP Apps host that routes each view-initiated request through a policy layer (opt-in per capability). prompts/list could be offered; prompts/get could not, because there is nothing to hook.
Activity