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
Tools not registering
Tools not registering
Ensure
@mcp-b/global is imported before calling registerTool(). For SSR (Nuxt), see the Nuxt guide.Stale state in handlers
Stale state in handlers
Access
.value inside the handler to get current state: