Merge develop into test - sync latest code
This commit is contained in:
20
openhis-ui-vue3/vite/plugins/vue-mcp.js
Normal file
20
openhis-ui-vue3/vite/plugins/vue-mcp.js
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* @Description: Vue MCP Plugin - Enable MCP server for Vue application debugging
|
||||
*/
|
||||
import { VueMcp } from 'vite-plugin-vue-mcp'
|
||||
|
||||
export default function createVueMcpPlugin() {
|
||||
return VueMcp({
|
||||
// The host to listen on, default is `localhost`
|
||||
host: 'localhost',
|
||||
|
||||
// Print the MCP server URL in the console
|
||||
printUrl: true,
|
||||
|
||||
// Update the address of the MCP server in the cursor config file `.cursor/mcp.json`
|
||||
updateCursorMcpJson: false, // Disable for OpenCode environment
|
||||
|
||||
// The path to the MCP server, default is `/__mcp`
|
||||
mcpPath: '/__mcp',
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user