Skip to main content

Community Example

Vue 3 Composition API integration by Besian

Basic Usage

With Reactive State

Tools can read and modify Vue reactive state:

Creating a Composable

For reuse across components, create a composable:

Common Gotchas

Ensure @mcp-b/global is imported before calling registerTool(). For SSR (Nuxt), see the Nuxt guide.
Access .value inside the handler to get current state:

Development

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