Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 Primerget_component
: used to get the documentation for a specific componentget_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 Primerget_pattern
: used to get the docs for a specific patternBelow 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 Primersuggest_design_token
: suggest what design token to use for a specific usageFinally, 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
@primer/mcp
packageChanged
Removed
Rollout strategy
This is an internal package for now