-
-
Save ochafik/cc15fc408578a5217734c808c6e60261 to your computer and use it in GitHub Desktop.
MCP Apps capabilities negotiation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export type AppInitializeRequest = { | |
| method: "ui/initialize"; | |
| params: { | |
| appCapabilities: AppCapabilities; | |
| }; | |
| }; | |
| export type AppInitializeResult = { | |
| hostCapabilities: AppHostCapabilities; | |
| hostContext: HostContext; | |
| }; | |
| export type AppHostCapabilities = { | |
| experimental?: object, | |
| openLinks?: object, | |
| serverTools?: { | |
| listChanged?: boolean | |
| } | |
| serverResources?: { | |
| listChanged?: boolean | |
| } | |
| logging?: { | |
| listChanged?: boolean | |
| } | |
| // TODO: elicitation, sampling... | |
| } | |
| export type AppCapabilities = { | |
| // WebMCP-style tools exposed by the app to the host | |
| tools?: { | |
| listChanged?: boolean | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment