feat(mcp): support resource list change notifications

This commit is contained in:
Aiden Cline 2026-06-08 12:32:47 -05:00
commit c03c2be483
4 changed files with 114 additions and 12 deletions

View file

@ -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 })