We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ab8aca commit e45a0aeCopy full SHA for e45a0ae
src/index.ts
@@ -67,7 +67,7 @@ export function VueMcp(options: VueMcpOptions = {}): Plugin {
67
if (cursorMcpOptions.enabled) {
68
if (existsSync(join(root, '.cursor'))) {
69
const mcp = existsSync(join(root, '.cursor/mcp.json'))
70
- ? JSON.parse(await fs.readFile(join(root, '.cursor/mcp.json'), 'utf-8'))
+ ? JSON.parse(await fs.readFile(join(root, '.cursor/mcp.json'), 'utf-8') || '{}')
71
: {}
72
mcp.mcpServers ||= {}
73
mcp.mcpServers[cursorMcpOptions.serverName || 'vue-mcp'] = { url: sseUrl }
0 commit comments