Skip to main content

Community Example

Full-stack Nuxt 3 with SSR support by Mike Chao
Nuxt’s SSR requires ensuring WebMCP code only runs on the client.

Client-Only Plugin

Create a plugin that initializes WebMCP on the client:

Basic Usage

Use import.meta.client to guard registration:

With Server Data

ClientOnly Wrapper

For client-only components:

Common Gotchas

Register tools in app.vue or a layout so they persist across routes.

Development

Use Chrome DevTools MCP for AI-driven development - your AI can write, discover, and test tools in real-time.