Skip to content

MCP constructs incorrect component documentation URLs #8531

Closed

Description

@joshfarrant

Description

@primer/mcp constructs incorrect documentation URLs. ActionBar usage requests return the Primer homepage instead of guidance; ConfirmationDialog also uses the wrong slug.

Steps to reproduce

  1. Call get_component_usage_guidelines with {"name":"ActionBar"}: it requests actionbar/guidelines instead of action-bar/guidelines.
  2. Call get_component with {"name":"ConfirmationDialog"}: it requests confirmationdialog/llms.txt instead of confirmation-dialog/llms.txt.

Expected: retrieve the component's published documentation. ConfirmationDialog's usage and batch requests are affected too.

Version

@primer/mcp 1.1.0; React catalogue 38.40.1.

Fix: #8530.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions