Skip to content

Can't setup when using httpsSSL in vite config #15

@matto49

Description

@matto49

When my project uses the basicSsl plugin and runs on the https instead of http, the mcp client call the error

Image

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"

Image

How to fix the plugin when using the https?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions