Skip to content

Instantly share code, notes, and snippets.

@ochafik

ochafik/types.ts Secret

Created November 21, 2025 00:36
Show Gist options
  • Select an option

  • Save ochafik/cc15fc408578a5217734c808c6e60261 to your computer and use it in GitHub Desktop.

Select an option

Save ochafik/cc15fc408578a5217734c808c6e60261 to your computer and use it in GitHub Desktop.
MCP Apps capabilities negotiation
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