Skip to content

Commit 24cd4b2

Browse files
committed
feat(tools): add get_frequently_asked_questions
1 parent bfca32b commit 24cd4b2

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
@@ -483,5 +483,24 @@ export function createDocumentationService () {
483483
],
484484
}
485485
},
486+
getFrequentlyAskedQuestions: async () => {
487+
const { data } = await octokit.rest.repos.getContent({
488+
owner: 'vuetifyjs',
489+
repo: 'vuetify',
490+
path: 'packages/docs/src/pages/en/getting-started/frequently-asked-questions.md',
491+
mediaType: {
492+
format: 'raw',
493+
},
494+
})
495+
496+
return {
497+
content: [
498+
{
499+
type: 'text',
500+
text: `Review the Frequently Asked Questions section of the installation guide:\n\n${data}`,
501+
} as const,
502+
],
503+
}
504+
},
486505
}
487506
}

src/tools/documentation.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,10 @@ export async function registerDocumentationTools (server: McpServer) {
4040
'Get a list of exports from the Vuetify npm package',
4141
documentation.getExposedExports,
4242
)
43+
44+
server.tool(
45+
'get_frequently_asked_questions',
46+
'Get a list of frequently asked questions about Vuetify.',
47+
documentation.getFrequentlyAskedQuestions,
48+
)
4349
}

0 commit comments

Comments
 (0)