Skip to content

feat: add mcp package #6222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

feat: add mcp package #6222

wants to merge 6 commits into from

Conversation

joshblack
Copy link
Member

@joshblack joshblack commented Jun 19, 2025

Pitch: https://github.com/github/primer/issues/5363

Add an experimental @primer/mcp package that could be used in any context where MCPs are supported. This package runs a server that exposes the following tools:

  • get_components: used to discover what components are available from Primer
  • get_component: used to get the documentation for a specific component
  • get_component_examples: used to get the examples for a specific component (specifically storybook examples around usage)
  • get_patterns: used to discover pattern guidance that is available from Primer
  • get_pattern: used to get the docs for a specific pattern

Below is a quick demo showing an idea of someone might interact with it in agent mode (or could be used by the Copilot agent directly)

Screen.Recording.2025-06-19.at.2.58.18.PM.mov

In the future, it would be awesome to include support for:

  • init: setup a project that uses Primer
  • suggest_design_token: suggest what design token to use for a specific usage
  • General migration feedback, including tables and tools (like eslint autofixers) to use to help move to new

Finally, it would be great to have a demo showing how this will help an agent get more context in order to use Primer more effectively.

Changelog

New

  • Add @primer/mcp package

Changed

Removed

Rollout strategy

  • None; if selected, include a brief description as to why

This is an internal package for now

Copy link

changeset-bot bot commented Jun 19, 2025

⚠️ No Changeset found

Latest commit: 697c270

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 no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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 github-actions bot added the staff Author is a staff member label Jun 19, 2025
@joshblack joshblack added the skip changeset This change does not need a changelog label Jun 19, 2025
Copy link
Contributor

github-actions bot commented Jun 19, 2025

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 92.67 KB (0%)
packages/react/dist/browser.umd.js 92.54 KB (0%)

@github-actions github-actions bot temporarily deployed to storybook-preview-6222 June 19, 2025 20:00 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changeset This change does not need a changelog staff Author is a staff member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant