This is an OpenAI MCP extension, not part of MCP or MCP Apps. Only ChatGPT supports it, and other hosts ignore it.
https://chatgpt.com/plugins/<pluginId>/app/<toolName>, and can carry a path to land on a given page of your view, such as ?path=%2Fparts%2Fhex-bolt. useDeepLink returns that app-relative URL so the view can route to it. It updates when the user follows another deep link while the view is open.
Example
The view hands the deep link to its router.Returns
"/parts?tag=bolt&sort=asc". Parse it with new URL(deepLink, location.origin) to read the query.
undefined when the view wasn’t opened through a deep link, on hosts other than ChatGPT, or when the host sends a URL that isn’t app-relative (it must start with a single /) or that contains a fragment.
Deep link format
Find
pluginId in the plugin’s URL, https://chatgpt.com/plugins/{pluginId}. Leave out @{marketplace} for plugins published directly to ChatGPT. Percent-encode pluginId, toolName and the whole app-relative URL. Without path, the view opens on /. Android doesn’t support deep links.
registerTool
Add a global entrypoint to a tool
useMcpAppContext
Read a raw MCP Apps context value by key