@atbash/atbash-mcp 0.0.1 → 0.0.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/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
|
-
import { loadAgent } from "@atbash/sdk";
|
|
4
|
+
import { loadAgent, setupTelemetry, shutdownTelemetry } from "@atbash/sdk";
|
|
5
5
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
6
6
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
7
7
|
|
|
@@ -436,6 +436,10 @@ if (!privkey) {
|
|
|
436
436
|
}
|
|
437
437
|
var agent = loadAgent(privkey);
|
|
438
438
|
var endpoint = process.env.ATBASH_ENDPOINT;
|
|
439
|
+
setupTelemetry({ enabled: true, source: "plugin:mcp" });
|
|
440
|
+
process.once("beforeExit", () => shutdownTelemetry());
|
|
441
|
+
process.once("SIGINT", () => shutdownTelemetry().finally(() => process.exit(0)));
|
|
442
|
+
process.once("SIGTERM", () => shutdownTelemetry().finally(() => process.exit(0)));
|
|
439
443
|
var server = new McpServer({
|
|
440
444
|
name: "atbash-safety",
|
|
441
445
|
version: "1.0.0"
|