Skip to main content
Glama

Vue MCP Server

by webfansplz
MIT License
1,067
502
rpc.ts1.1 kB
import type { RpcFunctions, VueMcpContext } from './types' export function createServerRpc(ctx: VueMcpContext): RpcFunctions { return { // component tree getInspectorTree: (_: { event: string, componentName?: string }) => ({}), onInspectorTreeUpdated: (event: string, data: string) => { ctx.hooks.callHook(event, data) }, // component state getInspectorState: (_: { event: string, componentName: string }) => ({}), onInspectorStateUpdated: (event: string, data: string) => { ctx.hooks.callHook(event, data) }, // router info getRouterInfo: (_: { event: string }) => ({}), onRouterInfoUpdated: (event: string, data: string) => { ctx.hooks.callHook(event, data) }, // pinia tree getPiniaTree: (_: { event: string }) => ({}), onPiniaTreeUpdated: (event: string, data: string) => { ctx.hooks.callHook(event, data) }, // pinia state getPiniaState: (_: { event: string, storeName: string }) => ({}), onPiniaInfoUpdated: (event: string, data: string) => { ctx.hooks.callHook(event, data) }, } }

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/webfansplz/vite-plugin-vue-mcp'

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