Skip to main content
Glama
gapra

@gapra/nuxt-migration-mcp

by gapra

generate_async_data_composable

Generate a useAsyncData composable to replace Nuxt 2 asyncData() or fetch() hooks, simplifying migration to Nuxt 3.

Instructions

Generate a useAsyncData composable to replace Nuxt 2 asyncData() or fetch() lifecycle hooks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesComposable name (e.g., 'usePosts')
relativePathYesRelative path in target (e.g., 'composables/usePosts.ts')
moduleNoOptional module name
targetPathNoOptional absolute target path override
endpointNoAPI endpoint to fetch from
keyNoCache key for useAsyncData
hasLazyLoadNoWhether to use lazy loading

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gapra/gp-nuxt-migration-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server