@ecommaps/mcp 1.0.5 → 1.0.6

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.
Files changed (2) hide show
  1. package/cli.js +8 -0
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -78,6 +78,14 @@ async function main() {
78
78
  try {
79
79
  // Try to parse as JSON-RPC
80
80
  const msg = JSON.parse(data);
81
+
82
+ // FIX: Some clients (Antigravity/Cursor) fail if they receive 'notifications/initialized'
83
+ // before they send their own 'initialize' handshake. The server sends this eagerly,
84
+ // so we filter it out here to keep the client happy.
85
+ if (msg.method === 'notifications/initialized') {
86
+ return; // Skip this message
87
+ }
88
+
81
89
  // Forward to StdOut
82
90
  console.log(JSON.stringify(msg));
83
91
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecommaps/mcp",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "EcoBaseAI Official MCP Client",
5
5
  "bin": {
6
6
  "mcp": "./cli.js"