mirror of
https://github.com/nuxt/ui.git
synced 2026-09-14 19:51:10 +08:00
18 lines
486 B
TypeScript
18 lines
486 B
TypeScript
// @ts-expect-error - no types available
|
|
import { listComponentExamples } from '#component-example/nitro'
|
|
|
|
export default defineMcpResource({
|
|
uri: 'resource://nuxt-ui/examples',
|
|
description: 'Complete list of available Nuxt UI example code and demonstrations',
|
|
cache: '1h',
|
|
handler(uri: URL) {
|
|
return {
|
|
contents: [{
|
|
uri: uri.toString(),
|
|
mimeType: 'application/json',
|
|
text: JSON.stringify(listComponentExamples(), null, 2)
|
|
}]
|
|
}
|
|
}
|
|
})
|