-
-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
When my project uses the basicSsl plugin and runs on the https instead of http, the mcp client call the error

The vite.config as below and the serve runs at https://localhost:3456
import basicSsl from '@vitejs/plugin-basic-ssl'
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'
import DevTools from 'vite-plugin-vue-devtools'
import { VueMcp } from '../src'
export default defineConfig({
server: {
port: 3456,
},
plugins: [
vue(),
VueMcp({
appendTo: 'src/main.ts',
}),
DevTools(),
basicSsl(),
],
})
In the connect.ts file i see the serve use vite middlewares to listen the port, so i edit the mcp.json and use the https
{
"mcpServers": {
"vue-mcp": {
"url": "https://localhost:3456/__mcp/sse"
}
}
}
However, the client called another error as "self signed certificate"

How to fix the plugin when using the https?
Metadata
Metadata
Assignees
Labels
No labels