feat(mcp): support resource update notifications
This commit is contained in:
parent
f43209bb8c
commit
742371fdbd
3 changed files with 164 additions and 16 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue