File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -502,5 +502,24 @@ export function createDocumentationService () {
502
502
] ,
503
503
}
504
504
} ,
505
+ getReleaseNotesByVersion : async ( { version } : { version : string } ) => {
506
+ const isLatest = version === 'latest'
507
+ const method = isLatest ? 'getLatestRelease' : 'getReleaseByTag'
508
+
509
+ const { data } = await octokit . rest . repos [ method ] ( {
510
+ owner : 'vuetifyjs' ,
511
+ repo : 'vuetify' ,
512
+ tag : isLatest ? '' : ( version . startsWith ( 'v' ) ? version : `v${ version } ` ) ,
513
+ } )
514
+
515
+ return {
516
+ content : [
517
+ {
518
+ type : 'text' ,
519
+ text : `Release notes for version ${ version } :\n\n${ data . body } (published ${ data . published_at } )` ,
520
+ } as const ,
521
+ ] ,
522
+ }
523
+ } ,
505
524
}
506
525
}
Original file line number Diff line number Diff line change @@ -46,4 +46,13 @@ export async function registerDocumentationTools (server: McpServer) {
46
46
'Get a list of frequently asked questions about Vuetify.' ,
47
47
documentation . getFrequentlyAskedQuestions ,
48
48
)
49
+
50
+ server . tool (
51
+ 'get_release_notes_by_version' ,
52
+ 'Get release notes for one or more versions of Vuetify.' ,
53
+ {
54
+ version : z . string ( ) . describe ( 'One or more Vuetify versions for which to get the release notes.' ) . default ( 'latest' ) ,
55
+ } ,
56
+ documentation . getReleaseNotesByVersion ,
57
+ )
49
58
}
You can’t perform that action at this time.
0 commit comments