Skip to content

Add missing MCP scenario patterns - #8342

Merged
TylerJDev merged 2 commits into
mainfrom
mattobee-update-mcp-patterns
Aug 31, 2026
Merged

Add missing MCP scenario patterns#8342
TylerJDev merged 2 commits into
mainfrom
mattobee-update-mcp-patterns

Conversation

@mattobee

@mattobee mattobee commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

This brings the MCP pattern catalogue back in line with primer.style. The catalogue is manually maintained and had fallen behind the docs that have now been published as part of https://github.com/github/core-ux/issues/2845.

It adds Create, Customize, Delegate, Edit and View to list_patterns and get_pattern. I’ve also removed the duplicated pattern list from the tool descriptions, so there’s one less place for the catalogue to drift.

Closes github/core-ux#3479

Changelog

New

  • Add Create, Customize, Delegate, Edit and View scenario patterns.

Changed

  • Describe scenario patterns without repeating the full catalogue in tool metadata.

Removed

  • Nothing.

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

No special rollout is needed.

Testing & Reviewing

  • npm test -w @primer/mcp
  • npm run type-check -w @primer/mcp
  • npm run build -w @primer/mcp
  • Prettier and ESLint checks for the touched files
  • Confirmed all five primer.style scenario pattern URLs return 200

Keep the manually maintained catalogue in step with the eight scenario patterns published on primer.style.
@changeset-bot

changeset-bot Bot commented Aug 27, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 416d312

The changes in this PR will be included in the next version bump.

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

Not sure what this means? Click here to learn what changesets are.

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

@mattobee
mattobee marked this pull request as ready for review August 27, 2026 11:43
@mattobee
mattobee requested a review from a team as a code owner August 27, 2026 11:43
@mattobee
mattobee requested review from TylerJDev and a lite review from Copilot August 27, 2026 11:43
@github-actions
github-actions Bot temporarily deployed to storybook-preview-8342 August 27, 2026 11:47 Inactive

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the @primer/mcp server’s pattern catalogue to match the scenario patterns now published on primer.style, and reduces duplication in tool metadata so the catalogue is less likely to drift.

Changes:

  • Add Create, Customize, Delegate, Edit, and View to the MCP scenario patterns catalogue used by list_patterns / get_pattern.
  • Add coverage to ensure the new scenario patterns are listed and that get_pattern fetches the correct published URLs.
  • Simplify list_patterns / get_pattern tool descriptions to avoid embedding a hardcoded example list.
Show a summary per file
File Description
packages/mcp/src/server.ts Removes the duplicated “(copy, delete, filter, search)” examples from the pattern tool descriptions.
packages/mcp/src/server.test.ts Adds tests for scenario pattern listing and correct URL resolution for newly added patterns.
packages/mcp/src/primer.ts Extends the scenario pattern catalogue with Create/Customize/Delegate/Edit/View.
.changeset/update-mcp-scenario-patterns.md Adds a minor changeset documenting the new scenario patterns.

Review details

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Lite

@joshblack joshblack added the integration-tests: skipped manually Changes in this PR do not require an integration test label Aug 27, 2026
@joshblack
joshblack enabled auto-merge August 27, 2026 14:03
@primer
primer Bot disabled auto-merge August 31, 2026 15:33
@primer
primer Bot added this pull request to the merge queue Aug 31, 2026
@TylerJDev
TylerJDev removed this pull request from the merge queue due to a manual request Aug 31, 2026
@TylerJDev
TylerJDev added this pull request to the merge queue Aug 31, 2026
@TylerJDev
TylerJDev removed this pull request from the merge queue due to the queue being cleared Aug 31, 2026
@TylerJDev
TylerJDev added this pull request to the merge queue Aug 31, 2026
Merged via the queue into main with commit fbe2a70 Aug 31, 2026
65 checks passed
@TylerJDev
TylerJDev deleted the mattobee-update-mcp-patterns branch August 31, 2026 16:20
@primer primer Bot mentioned this pull request Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration-tests: skipped manually Changes in this PR do not require an integration test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants