Skip to content

Commit c309c5e

Browse files
committed
feat(tool): add new vuetify one tool
1 parent 52f0ee0 commit c309c5e

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
@@ -533,5 +533,24 @@ export function createDocumentationService () {
533533
],
534534
}
535535
},
536+
getVuetifyOneInstallationGuide: async () => {
537+
const { data } = await octokit.rest.repos.getContent({
538+
owner: 'vuetifyjs',
539+
repo: 'one',
540+
path: 'README.md',
541+
mediaType: {
542+
format: 'raw',
543+
},
544+
})
545+
546+
return {
547+
content: [
548+
{
549+
type: 'text',
550+
text: `# @vuetify/one Documentation\n\nSource: https://github.com/vuetifyjs/one\n\n${data}`,
551+
} as const,
552+
],
553+
}
554+
},
536555
}
537556
}

src/tools/documentation.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,10 @@ export async function registerDocumentationTools (server: McpServer) {
6161
},
6262
documentation.getReleaseNotesByVersion,
6363
)
64+
65+
server.tool(
66+
'get_vuetify_one_installation_guide',
67+
'Get the README contents for @vuetify/one package from GitHub, including installation and usage instructions.',
68+
documentation.getVuetifyOneInstallationGuide,
69+
)
6470
}

0 commit comments

Comments
 (0)