Skip to content

feat(mcp): support resource list change notifications#31396

Open
rekram1-node wants to merge 1 commit into
devfrom
feat/mcp-resource-list-changed
Open

feat(mcp): support resource list change notifications#31396
rekram1-node wants to merge 1 commit into
devfrom
feat/mcp-resource-list-changed

Conversation

@rekram1-node
Copy link
Copy Markdown
Collaborator

Summary

  • handle notifications/resources/list_changed for MCP servers advertising resources.listChanged
  • publish mcp.resources.changed only for the active connected client and refresh TUI resource state through the existing HTTP endpoint
  • expose the event in the generated JavaScript SDK types

Tests

  • bun test test/mcp/lifecycle.test.ts (from packages/opencode)
  • bun typecheck (from packages/opencode)
  • bun typecheck (from packages/tui)
  • bun prettier --check packages/opencode/src/mcp/index.ts packages/opencode/test/mcp/lifecycle.test.ts packages/tui/src/context/sync.tsx packages/sdk/js/src/v2/gen/types.gen.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant