Skip to content

feat(core): support MCP resources - #35656

Merged
rekram1-node merged 4 commits into
v2from
mcp-resources
Jul 7, 2026
Merged

rekram1-node merged 4 commits into
v2from
mcp-resources

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • add canonical MCP resource, template, catalog, and text/blob content contracts
  • implement paginated resource/template discovery, lazy cached catalogs, uncached reads, and list-change invalidation in V2 Core
  • add scoped URI subscriptions with shared server subscriptions, cleanup, callback isolation, and Streamable HTTP session recovery
  • publish internal mcp.resources.changed events for catalog and connection transitions

This is the first PR in the MCP resource stack. Protocol/server endpoints, generated clients, frontend autocomplete/materialization, and MCP resource tools are intentionally excluded.

Testing

  • bun test --only-failures in packages/schema (28 passed)
  • bun typecheck in packages/schema
  • bun test --only-failures in packages/core (1,215 passed, 6 skipped)
  • bun typecheck in packages/core
  • workspace bun typecheck (31 packages)
  • git diff --check

@rekram1-node
rekram1-node merged commit 66a8d83 into v2 Jul 7, 2026
8 checks passed
@rekram1-node
rekram1-node deleted the mcp-resources branch July 7, 2026 16:55
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
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