@warmio/mcp 1.0.1 → 1.0.2

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/dist/install.js CHANGED
@@ -22,10 +22,11 @@ const ALL_CLIENTS = [
22
22
  { name: 'Antigravity', configPath: join(HOME, '.gemini', 'antigravity', 'mcp_config.json'), format: 'json' },
23
23
  { name: 'Gemini CLI', configPath: join(HOME, '.gemini', 'settings.json'), format: 'json' },
24
24
  ];
25
- const MCP_CONFIG = {
26
- command: 'npx',
27
- args: ['-y', '@warmio/mcp', '--server'],
28
- };
25
+ // On Windows, npx doesn't forward stdin/stdout properly for MCP's JSON-RPC protocol.
26
+ // Using cmd /c npx ... fixes the pipe forwarding.
27
+ const MCP_CONFIG = platform() === 'win32'
28
+ ? { command: 'cmd', args: ['/c', 'npx', '-y', '@warmio/mcp', '--server'] }
29
+ : { command: 'npx', args: ['-y', '@warmio/mcp', '--server'] };
29
30
  function isDetected(client) {
30
31
  if (client.alwaysInclude)
31
32
  return true;
@@ -68,7 +69,11 @@ function configureToml(client, apiKey) {
68
69
  if (!content.endsWith('\n'))
69
70
  content += '\n';
70
71
  }
71
- content += `\n[mcp_servers.warm]\ncommand = "npx"\nargs = ["-y", "@warmio/mcp", "--server"]\n\n[mcp_servers.warm.env]\nWARM_API_KEY = "${apiKey}"\n`;
72
+ const tomlCommand = platform() === 'win32' ? 'cmd' : 'npx';
73
+ const tomlArgs = platform() === 'win32'
74
+ ? '["/c", "npx", "-y", "@warmio/mcp", "--server"]'
75
+ : '["-y", "@warmio/mcp", "--server"]';
76
+ content += `\n[mcp_servers.warm]\ncommand = "${tomlCommand}"\nargs = ${tomlArgs}\n\n[mcp_servers.warm.env]\nWARM_API_KEY = "${apiKey}"\n`;
72
77
  mkdirSync(dirname(client.configPath), { recursive: true });
73
78
  writeFileSync(client.configPath, content);
74
79
  }
package/dist/server.js CHANGED
@@ -49,7 +49,7 @@ async function apiRequest(endpoint, params = {}) {
49
49
  }
50
50
  return response.json();
51
51
  }
52
- const server = new Server({ name: 'warm', version: '1.0.1' }, { capabilities: { tools: {} } });
52
+ const server = new Server({ name: 'warm', version: '1.0.2' }, { capabilities: { tools: {} } });
53
53
  server.setRequestHandler(ListToolsRequestSchema, async () => ({
54
54
  tools: [
55
55
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warmio/mcp",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "MCP server for Warm Financial API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",