You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then the MCP server will be available at `http://localhost:[port]/__mcp/sse`.
28
+
29
+
If you are using Cursor, create a `.cursor/mcp.json` file in your project root, this plugin will automatically update it for you. For more details about the MCP, check the [official Cursor documentation](https://docs.cursor.com/context/model-context-protocol).
30
+
31
+
### Options
32
+
33
+
```ts
34
+
exportinterfaceVueMcpOptions {
35
+
/**
36
+
* The host to listen on, default is `localhost`
37
+
*/
38
+
host?:string
39
+
40
+
/**
41
+
* The port to listen on, default is the port of the Vite dev server
42
+
*/
43
+
port?:number
44
+
45
+
/**
46
+
* Print the MCP server URL in the console
47
+
*
48
+
* @defaulttrue
49
+
*/
50
+
printUrl?:boolean
51
+
52
+
/**
53
+
* The MCP server info. Ingored when `mcpServer` is provided
54
+
*/
55
+
mcpServerInfo?:McpServerInfo
56
+
57
+
/**
58
+
* Custom MCP server, when this is provided, the built-in MCP tools will be ignored
`get-router-info`: Get the Vue router info of the application.
115
+
34
116

35
117
36
118
### Get Pinia Tree
37
119
120
+
`get-pinia-tree`: Get the Pinia tree of the application.
121
+
38
122

39
123
40
124
### Get Pinia State
41
125
126
+
`get-pinia-state`: Get the Pinia state of the application (input: `storeName`).
127
+
42
128

43
129
44
130
## Notice 💡
45
131
46
-
**Please ensure the application is open in your browser when using this plugin.**
132
+
**Please ensure the application is running in your browser before using the features.**
47
133
48
134
## Credits 💖
49
135
50
136
This project is inspired by [vite-plugin-mcp](https://github.com/antfu/nuxt-mcp/tree/main/packages/vite-plugin-mcp). Thanks to [@antfu](https://github.com/antfu) for the great work.
0 commit comments