Skip to content

AppBridge: views can list prompts but not get one (no prompts/get handler) #876

Backlog

Description

@johnhenry

What

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions