You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/mcp/src/server.ts
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ You can use the \`get_component\` tool to get more information about a specific
86
86
87
87
server.tool(
88
88
'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.',
90
90
{
91
91
name: z.string().describe('The name of the component to retrieve'),
92
92
},
@@ -100,7 +100,7 @@ server.tool(
100
100
content: [
101
101
{
102
102
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.`,
104
104
},
105
105
],
106
106
}
@@ -270,7 +270,7 @@ ${text}`,
270
270
271
271
server.tool(
272
272
'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.',
274
274
{
275
275
name: z.string().describe('The name of the component to retrieve'),
276
276
},
@@ -284,7 +284,7 @@ server.tool(
284
284
content: [
285
285
{
286
286
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.`,
0 commit comments