mirror of
https://github.com/nuxt/ui.git
synced 2026-09-14 19:51:10 +08:00
17 lines
408 B
TypeScript
17 lines
408 B
TypeScript
// @ts-expect-error - no types available
|
|
import { listComponentExamples } from '#component-example/nitro'
|
|
|
|
export default defineMcpTool({
|
|
description: 'Lists all available UI examples and code demonstrations',
|
|
annotations: {
|
|
readOnlyHint: true,
|
|
destructiveHint: false,
|
|
idempotentHint: true,
|
|
openWorldHint: false
|
|
},
|
|
cache: '1h',
|
|
handler() {
|
|
return listComponentExamples()
|
|
}
|
|
})
|