@thalovant/mcp-server 0.1.2 → 0.1.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.4
4
+
5
+ - Fixed npm bin execution when the package manager launches the server through a symlink.
6
+ - Added a symlink-based stdio smoke test for published package behavior.
7
+
8
+ ## 0.1.3
9
+
10
+ - Removed the generic remote URL from registry metadata; publish concrete remote entries only after a real hosted URL exists.
11
+
3
12
  ## 0.1.2
4
13
 
5
14
  - Updated the server runtime version constant.
package/dist/index.js CHANGED
@@ -7,13 +7,14 @@ import { DEFAULT_CONTROL_API_URL, ThalovantClient, ThalovantControlPlane, Thalov
7
7
  import { AsyncLocalStorage } from "node:async_hooks";
8
8
  import { createHash, randomUUID, timingSafeEqual } from "node:crypto";
9
9
  import { createServer as createHttpServer } from "node:http";
10
+ import { realpathSync } from "node:fs";
10
11
  import { appendFile, readFile, writeFile } from "node:fs/promises";
11
12
  import { dirname, resolve } from "node:path";
12
13
  import { mkdir } from "node:fs/promises";
13
- import { pathToFileURL } from "node:url";
14
+ import { fileURLToPath, pathToFileURL } from "node:url";
14
15
  import { createRemoteJWKSet, jwtVerify } from "jose";
15
16
  import { z } from "zod";
16
- const VERSION = "0.1.2";
17
+ const VERSION = "0.1.4";
17
18
  const DEFAULT_TIMEOUT_MS = 30_000;
18
19
  const MAX_TIMEOUT_MS = 300_000;
19
20
  const MAX_LIMIT = 100;
@@ -1604,7 +1605,17 @@ export async function main() {
1604
1605
  const server = createServer();
1605
1606
  await server.connect(transport);
1606
1607
  }
1607
- if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {
1608
+ function isMainModule() {
1609
+ if (!process.argv[1])
1610
+ return false;
1611
+ try {
1612
+ return realpathSync(fileURLToPath(import.meta.url)) === realpathSync(process.argv[1]);
1613
+ }
1614
+ catch {
1615
+ return import.meta.url === pathToFileURL(process.argv[1]).href;
1616
+ }
1617
+ }
1618
+ if (isMainModule()) {
1608
1619
  main().catch((error) => {
1609
1620
  console.error("Fatal error in thalovant-mcp:", error);
1610
1621
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thalovant/mcp-server",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Stdio and Streamable HTTP MCP server for Thalovant control-plane and hub runtime APIs.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/server.json CHANGED
@@ -7,32 +7,12 @@
7
7
  "url": "https://github.com/thalovant/thalovant-mcp",
8
8
  "source": "github"
9
9
  },
10
- "version": "0.1.2",
11
- "remotes": [
12
- {
13
- "type": "streamable-http",
14
- "url": "https://{host}/mcp",
15
- "variables": {
16
- "host": {
17
- "description": "Your deployed Thalovant MCP host, for example mcp.example.com.",
18
- "isRequired": true
19
- }
20
- },
21
- "headers": [
22
- {
23
- "name": "Authorization",
24
- "description": "Bearer token issued for this MCP resource server.",
25
- "isRequired": true,
26
- "isSecret": true
27
- }
28
- ]
29
- }
30
- ],
10
+ "version": "0.1.4",
31
11
  "packages": [
32
12
  {
33
13
  "registryType": "npm",
34
14
  "identifier": "@thalovant/mcp-server",
35
- "version": "0.1.2",
15
+ "version": "0.1.4",
36
16
  "transport": {
37
17
  "type": "stdio"
38
18
  }