hvtracker-mcp 0.1.1 → 0.1.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/bin/hvtracker-mcp.js +15 -3
- package/package.json +1 -1
- package/server.json +4 -4
package/bin/hvtracker-mcp.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { realpathSync } from "node:fs";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
4
5
|
|
|
5
6
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
6
7
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
7
8
|
import { z } from "zod";
|
|
8
9
|
|
|
9
|
-
const VERSION = "0.1.
|
|
10
|
+
const VERSION = "0.1.2";
|
|
10
11
|
const DEFAULT_BASE_URL = "https://hvtracker.net";
|
|
11
12
|
const BASE_URL = (process.env.HVTRACKER_BASE_URL || DEFAULT_BASE_URL).replace(/\/+$/, "");
|
|
12
13
|
const TIMEOUT_MS = Number(process.env.HVTRACKER_TIMEOUT_SECONDS || 20) * 1000;
|
|
@@ -202,7 +203,18 @@ export async function runStdio() {
|
|
|
202
203
|
await server.connect(new StdioServerTransport());
|
|
203
204
|
}
|
|
204
205
|
|
|
205
|
-
|
|
206
|
+
function isEntrypoint() {
|
|
207
|
+
if (!process.argv[1]) {
|
|
208
|
+
return false;
|
|
209
|
+
}
|
|
210
|
+
try {
|
|
211
|
+
return realpathSync(process.argv[1]) === realpathSync(fileURLToPath(import.meta.url));
|
|
212
|
+
} catch {
|
|
213
|
+
return process.argv[1] === fileURLToPath(import.meta.url);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
if (isEntrypoint()) {
|
|
206
218
|
runStdio().catch((error) => {
|
|
207
219
|
console.error(error);
|
|
208
220
|
process.exit(1);
|
package/package.json
CHANGED
package/server.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "io.github.YugantM/hvtracker-mcp",
|
|
4
4
|
"title": "HVTracker MCP",
|
|
5
5
|
"description": "Pre-connect trust checks for AI agents and MCP servers using HVTracker's public trust registry.",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.2",
|
|
7
7
|
"repository": {
|
|
8
8
|
"url": "https://github.com/YugantM/hvtracker-mcp",
|
|
9
9
|
"source": "github"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
{
|
|
19
19
|
"registryType": "npm",
|
|
20
20
|
"identifier": "hvtracker-mcp",
|
|
21
|
-
"version": "0.1.
|
|
21
|
+
"version": "0.1.2",
|
|
22
22
|
"transport": {
|
|
23
23
|
"type": "stdio"
|
|
24
24
|
}
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
{
|
|
27
27
|
"registryType": "pypi",
|
|
28
28
|
"identifier": "hvtracker-mcp",
|
|
29
|
-
"version": "0.1.
|
|
29
|
+
"version": "0.1.2",
|
|
30
30
|
"transport": {
|
|
31
31
|
"type": "stdio"
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"registryType": "oci",
|
|
36
|
-
"identifier": "ghcr.io/yugantm/hvtracker-mcp:v0.1.
|
|
36
|
+
"identifier": "ghcr.io/yugantm/hvtracker-mcp:v0.1.2",
|
|
37
37
|
"transport": {
|
|
38
38
|
"type": "stdio"
|
|
39
39
|
}
|