edoardo 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edoardo",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "AI Agent with MCP plugin support - Chat with AI models and extend capabilities with plugins",
5
5
  "type": "module",
6
6
  "bin": {
@@ -29,12 +29,19 @@ const stdioServers = new Map();
29
29
 
30
30
  // ============ CORS (must be first for all requests!) ============
31
31
 
32
- app.use(cors({
32
+ const corsOptions = {
33
33
  origin: true,
34
34
  credentials: true,
35
35
  methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
36
36
  allowedHeaders: ['Content-Type', 'Authorization', 'X-MCP-Endpoint', 'X-MCP-Auth-Type', 'X-MCP-Auth-Token', 'X-MCP-Extra-Config', 'X-MCP-Type', 'X-MCP-Command', 'X-MCP-Args', 'X-MCP-Allowed-Paths'],
37
- }));
37
+ preflightContinue: false,
38
+ optionsSuccessStatus: 204
39
+ };
40
+
41
+ app.use(cors(corsOptions));
42
+
43
+ // Explicit OPTIONS handler for all routes (preflight)
44
+ app.options('*', cors(corsOptions));
38
45
 
39
46
  app.use(express.json());
40
47