Skip to content

Commit 553c1a0

Browse files
Change two MCP descriptions to see if usage improves (#6969)
Co-authored-by: Copilot <[email protected]>
1 parent b57343c commit 553c1a0

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.changeset/flat-llamas-beam.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/mcp': patch
3+
---
4+
5+
Update MCP tool descriptions to improve usage.

packages/mcp/src/server.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ You can use the \`get_component\` tool to get more information about a specific
8686

8787
server.tool(
8888
'get_component',
89-
'Get a specific component by name',
89+
'Retrieve documentation and usage details for a specific React component from the @primer/react package by its name. This tool provides the official Primer documentation for any listed component, making it easy to inspect, reuse, or integrate components in your project.',
9090
{
9191
name: z.string().describe('The name of the component to retrieve'),
9292
},
@@ -100,7 +100,7 @@ server.tool(
100100
content: [
101101
{
102102
type: 'text',
103-
text: `There is no component named \`${name}\` in the @primer/react package. For a full list of components, use the \`get_components\` tool.`,
103+
text: `There is no component named \`${name}\` in the @primer/react package. For a full list of components, use the \`list_components\` tool.`,
104104
},
105105
],
106106
}
@@ -270,7 +270,7 @@ ${text}`,
270270

271271
server.tool(
272272
'get_component_accessibility_guidelines',
273-
'Get accessibility information for how to use a component from Primer React',
273+
'Retrieve accessibility guidelines and best practices for a specific component from the @primer/react package by its name. Use this tool to get official accessibility recommendations, usage tips, and requirements to ensure your UI components are inclusive and meet accessibility standards.',
274274
{
275275
name: z.string().describe('The name of the component to retrieve'),
276276
},
@@ -284,7 +284,7 @@ server.tool(
284284
content: [
285285
{
286286
type: 'text',
287-
text: `There is no component named \`${name}\` in the @primer/react package. For a full list of components, use the \`get_components\` tool.`,
287+
text: `There is no component named \`${name}\` in the @primer/react package. For a full list of components, use the \`list_components\` tool.`,
288288
},
289289
],
290290
}

0 commit comments

Comments
 (0)