feat(mcp): support resource update notifications

This commit is contained in:
Aiden Cline 2026-06-08 12:34:11 -05:00
commit 742371fdbd
3 changed files with 164 additions and 16 deletions

View file

@ -74,6 +74,7 @@ export type Event =
| EventTuiToastShow2
| EventTuiSessionSelect2
| EventMcpToolsChanged
| EventMcpResourceUpdated
| EventMcpBrowserOpenFailed
| EventCommandExecuted
| EventProjectDirectoriesUpdated
@ -1463,6 +1464,14 @@ export type GlobalEvent = {
server: string
}
}
| {
id: string
type: "mcp.resource.updated"
properties: {
server: string
uri: string
}
}
| {
id: string
type: "mcp.browser.open.failed"
@ -5062,6 +5071,15 @@ export type EventMcpToolsChanged = {
}
}
export type EventMcpResourceUpdated = {
id: string
type: "mcp.resource.updated"
properties: {
server: string
uri: string
}
}
export type EventMcpBrowserOpenFailed = {
id: string
type: "mcp.browser.open.failed"