Skip to content

Commit bfca32b

Browse files
committed
feat(tools): add new get_exposed_exports tool
1 parent 7e0cd42 commit bfca32b

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

src/services/documentation.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,5 +464,24 @@ export function createDocumentationService () {
464464
],
465465
}
466466
},
467+
getExposedExports: async () => {
468+
const { data } = await octokit.rest.repos.getContent({
469+
owner: 'vuetifyjs',
470+
repo: 'vuetify',
471+
path: 'packages/docs/src/pages/en/getting-started/installation.md',
472+
mediaType: {
473+
format: 'raw',
474+
},
475+
})
476+
477+
return {
478+
content: [
479+
{
480+
type: 'text',
481+
text: `Review the Exposed exports section of the installation guide:\n\n${data}`,
482+
} as const,
483+
],
484+
}
485+
},
467486
}
468487
}

src/tools/documentation.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,10 @@ export async function registerDocumentationTools (server: McpServer) {
3434
},
3535
documentation.getFeatureGuide,
3636
)
37+
38+
server.tool(
39+
'get_exposed_exports',
40+
'Get a list of exports from the Vuetify npm package',
41+
documentation.getExposedExports,
42+
)
3743
}

0 commit comments

Comments
 (0)