Skip to content

MCP: improve recommendation precision and caching#8232

Draft
adierkens wants to merge 6 commits into
adierkens-federate-primer-internalsfrom
adierkens-primer-mcp-canary
Draft

MCP: improve recommendation precision and caching#8232
adierkens wants to merge 6 commits into
adierkens-federate-primer-internalsfrom
adierkens-primer-mcp-canary

Conversation

@adierkens

Copy link
Copy Markdown
Contributor

Summary

  • add composition-aware component recommendations with grouped semantic matching
  • preserve documented internal-only pattern support for all-source callers
  • cache bounded pattern enrichment and exact-input final CSS validation
  • keep existing MCP schemas and single-icon behavior unchanged

Validation

  • focused MCP tests pass (51/51)
  • npm run type-check -w @primer/mcp
  • npm run build -w @primer/mcp

Privacy and scope review

This is a draft canary for evaluation before merge.

adierkens and others added 6 commits July 24, 2026 11:27
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@changeset-bot

changeset-bot Bot commented Jul 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 90435ca

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes changesets to release 1 package
Name Type
@primer/mcp Minor

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Action required

👋 Hi, this pull request contains changes to the source code that github/github-ui depends on. If you are GitHub staff, test these changes with github/github-ui using the integration workflow. Check the integration testing docs for step-by-step instructions. Or, apply the integration-tests: skipped manually label to skip these checks.

@github-actions github-actions Bot added the integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm label Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant