Skip to content

feat(mcp): attach resources from TUI - #35780

Closed
rekram1-node wants to merge 3 commits into
v2from
mcp-attachments
Closed

rekram1-node wants to merge 3 commits into
v2from
mcp-attachments

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • add canonical browser-safe MCP attachment URIs carrying server and resource identity
  • resolve MCP text/blob content in Location-scoped Core before durable prompt admission
  • preserve exact retry semantics, sniff MIME, validate base64, and bound multipart expansion
  • load and refresh resource catalogs per TUI location and submit URI-only attachments from autocomplete
  • regenerate the legacy V2 SDK for the catalog endpoint and public resource-change event

Replaces #35658 without its client-side resource reads. Templates remain available through the catalog but are not shown as concrete attachment choices.

Testing

  • bun test in packages/core (1216 passed, 6 skipped)
  • focused final MCP Session prompt tests (5 passed)
  • bun test in packages/schema (29 passed)
  • bun test in packages/tui (212 passed, 1 skipped)
  • focused final TUI catalog refresh test (1 passed)
  • bun test in packages/sdk/js (1 passed)
  • bun typecheck in packages/core, packages/schema, packages/tui, and packages/sdk/js
  • git diff --check

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant