telique-mcp 1.0.8 → 1.0.9

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/index.js CHANGED
@@ -1,15 +1,26 @@
1
1
  #!/usr/bin/env node
2
- import { stdin } from "node:process";
3
2
  const subcommand = process.argv[2];
4
- // If run with "setup" arg, or directly in a terminal (not piped by an MCP client),
5
- // launch the interactive setup flow.
6
- const isInteractiveTerminal = subcommand !== "serve" && stdin.isTTY === true;
7
- if (subcommand === "setup" || isInteractiveTerminal) {
3
+ if (subcommand === "setup") {
4
+ // Explicit setup command
8
5
  const { runSetup } = await import("./setup.js");
9
6
  await runSetup();
10
7
  }
8
+ else if (!subcommand && process.stdin.isTTY && !process.env.MCP_CLIENT) {
9
+ // No args + interactive terminal + not spawned by an MCP client.
10
+ // Show a short help message pointing to setup.
11
+ console.log(`
12
+ telique-mcp v${(await import("./version.js")).VERSION}
13
+
14
+ Usage:
15
+ telique-mcp setup Interactive setup wizard
16
+ telique-mcp MCP server (stdio) — used by MCP clients
17
+
18
+ Run 'telique-mcp setup' to configure your API key and register
19
+ with your MCP clients (Claude, Cursor, Copilot, Codex, ChatGPT).
20
+ `);
21
+ }
11
22
  else {
12
- // MCP server mode — stdin is piped JSON-RPC from the MCP client
23
+ // MCP server mode — default when spawned by an MCP client
13
24
  const { McpServer } = await import("@modelcontextprotocol/sdk/server/mcp.js");
14
25
  const { StdioServerTransport } = await import("@modelcontextprotocol/sdk/server/stdio.js");
15
26
  const { TeliqueClient } = await import("./client.js");
@@ -37,3 +48,4 @@ else {
37
48
  const transport = new StdioServerTransport();
38
49
  await server.connect(transport);
39
50
  }
51
+ export {};
@@ -0,0 +1 @@
1
+ export declare const VERSION = "1.0.9";
@@ -0,0 +1 @@
1
+ export const VERSION = "1.0.9";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telique-mcp",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "MCP server for Telique telecom APIs (RouteLink, LRN, CNAM, LERG)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",