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 56457e9 commit e630ce8Copy full SHA for e630ce8
packages/vite-plugin-mcp/src/index.ts
@@ -36,7 +36,8 @@ export function ViteMcp(options: ViteMcpOptions = {}): Plugin {
36
const port = vite.config.server.port
37
const root = searchForWorkspaceRoot(vite.config.root)
38
39
- const sseUrl = `http://${options.host || 'localhost'}:${options.port || port}${mcpPath}/sse`
+ const protocol = vite.config.server.https ? 'https' : 'http'
40
+ const sseUrl = `${protocol}://${options.host || 'localhost'}:${options.port || port}${mcpPath}/sse`
41
42
if (cursorMcpOptions.enabled) {
43
if (existsSync(join(root, '.cursor'))) {
0 commit comments