diff --git a/bridge-server/src/index.ts b/bridge-server/src/index.ts index aa1bdc2..137999e 100644 --- a/bridge-server/src/index.ts +++ b/bridge-server/src/index.ts @@ -22,6 +22,7 @@ import { loadServerConfig } from './config/config.js'; import { GcliMcpBridge } from './bridge/bridge.js'; import { createOpenAIRouter } from './bridge/openai.js'; import express from 'express'; +import cors from 'cors'; import { logger } from './utils/logger.js'; import { type SecurityPolicy } from './types.js'; import yargs from 'yargs'; @@ -266,6 +267,7 @@ async function startMcpServer() { logger.info('-----------------------'); const app = express(); + app.use(cors()); app.use(express.json({ limit: '50mb' })); // Start the MCP service.