@warmio/mcp 4.2.1 → 4.2.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/README.md CHANGED
@@ -14,6 +14,10 @@ The installer detects supported MCP clients, prompts for your Warm API key, and
14
14
  `stdio` server config automatically. The key is stored once in your local Warm profile instead of
15
15
  being duplicated into every MCP client config.
16
16
 
17
+ When launched without arguments in a non-interactive context, the binary automatically starts the
18
+ `stdio` server instead of the installer. This keeps MCP clients that invoke the package directly
19
+ from falling into the interactive setup flow.
20
+
17
21
  ## Requirements
18
22
 
19
23
  - Warm Pro
package/dist/index.js CHANGED
@@ -1,12 +1,19 @@
1
1
  #!/usr/bin/env node
2
2
  import { install } from './install.js';
3
3
  import { startStdioServer } from './server.js';
4
+ function isInteractiveSession() {
5
+ return process.stdin.isTTY === true && process.stdout.isTTY === true;
6
+ }
4
7
  function printUsage() {
5
8
  console.log('');
6
9
  console.log(' Warm MCP');
7
10
  console.log(' --------');
8
11
  console.log('');
9
- console.log(' warm-mcp [install] [--force] [--no-validate]');
12
+ console.log(' warm-mcp');
13
+ console.log(' Interactive terminal: runs installer');
14
+ console.log(' Non-interactive launch: starts stdio server');
15
+ console.log('');
16
+ console.log(' warm-mcp install [--force] [--no-validate]');
10
17
  console.log(' warm-mcp stdio');
11
18
  console.log('');
12
19
  console.log(' Aliases:');
@@ -15,7 +22,7 @@ function printUsage() {
15
22
  }
16
23
  function parseCliArgs(args) {
17
24
  const options = {
18
- command: 'install',
25
+ command: isInteractiveSession() ? 'install' : 'stdio',
19
26
  force: false,
20
27
  validateApiKey: true,
21
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warmio/mcp",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "MCP server for Warm Financial API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",