feat(mcp): support resource list change notifications
This commit is contained in:
parent
b34d9242d1
commit
c03c2be483
4 changed files with 114 additions and 12 deletions
|
|
@ -415,6 +415,13 @@ export const {
|
|||
break
|
||||
}
|
||||
|
||||
case "mcp.resources.changed": {
|
||||
void sdk.client.experimental.resource
|
||||
.list({ workspace })
|
||||
.then((x) => setStore("mcp_resource", reconcile(x.data ?? {})))
|
||||
break
|
||||
}
|
||||
|
||||
case "vcs.branch.updated": {
|
||||
if (workspace === project.workspace.current()) {
|
||||
setStore("vcs", { branch: event.properties.branch })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue