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 +18 -6
- package/dist/version.d.ts +1 -0
- package/dist/version.js +1 -0
- package/package.json +1 -1
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
|
-
|
|
5
|
-
//
|
|
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 —
|
|
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";
|
package/dist/version.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const VERSION = "1.0.9";
|