@acepaste/ingress-mcp 0.7.0 → 0.8.0
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/server.js +2 -1
- package/package.json +2 -2
package/dist/server.js
CHANGED
|
@@ -24,7 +24,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
24
24
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
25
25
|
import { z } from "zod";
|
|
26
26
|
import { appendFileSync, readFileSync } from "node:fs";
|
|
27
|
-
import { IngressEngine, createTaintGuard, loadPolicyFile, ENGINE_VERSION } from "@acepaste/ingress";
|
|
27
|
+
import { IngressEngine, createTaintGuard, loadPolicyFile, cloakingConfigFromEnv, HONEST_USER_AGENT, ENGINE_VERSION } from "@acepaste/ingress";
|
|
28
28
|
const env = process.env;
|
|
29
29
|
const logPath = env.INGRESS_LOG;
|
|
30
30
|
const cfg = env.INGRESS_POLICY ? loadPolicyFile(env.INGRESS_POLICY) : {};
|
|
@@ -40,6 +40,7 @@ if (env.INGRESS_HOSTILE)
|
|
|
40
40
|
cfg.hostileThreshold = Number(env.INGRESS_HOSTILE);
|
|
41
41
|
if (env.INGRESS_SUSPECT)
|
|
42
42
|
cfg.suspectThreshold = Number(env.INGRESS_SUSPECT);
|
|
43
|
+
Object.assign(cfg, cloakingConfigFromEnv(env, HONEST_USER_AGENT));
|
|
43
44
|
if (env.INGRESS_CLOAKING === "0")
|
|
44
45
|
cfg.cloakingCheck = false;
|
|
45
46
|
if (env.INGRESS_SANDBOX === "off" || env.INGRESS_SANDBOX === "escalate" || env.INGRESS_SANDBOX === "always")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acepaste/ingress-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "AcePaste Ingress as a Model Context Protocol server: ingress_fetch and ingress_scan tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/server.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"start": "node dist/server.js"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@acepaste/ingress": "0.
|
|
15
|
+
"@acepaste/ingress": "0.8.0",
|
|
16
16
|
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
17
17
|
"zod": "^4.6.7"
|
|
18
18
|
},
|