@solongate/proxy 0.10.1 → 0.11.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.
Files changed (2) hide show
  1. package/dist/index.js +10 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -132,6 +132,7 @@ function parseArgs(argv) {
132
132
  let upstreamTransport;
133
133
  let port;
134
134
  let policyId;
135
+ let advancedDetection = true;
135
136
  let separatorIndex = args.indexOf("--");
136
137
  const flags = separatorIndex >= 0 ? args.slice(0, separatorIndex) : args;
137
138
  const upstreamArgs = separatorIndex >= 0 ? args.slice(separatorIndex + 1) : [];
@@ -174,6 +175,9 @@ function parseArgs(argv) {
174
175
  case "--id":
175
176
  policyId = flags[++i];
176
177
  break;
178
+ case "--no-advanced-detection":
179
+ advancedDetection = false;
180
+ break;
177
181
  }
178
182
  }
179
183
  if (apiKey && /^\$\{.+\}$/.test(apiKey)) {
@@ -222,7 +226,8 @@ function parseArgs(argv) {
222
226
  apiUrl: apiUrl ?? fileConfig.apiUrl,
223
227
  port: port ?? fileConfig.port,
224
228
  policyPath: resolvePolicyPath(cfgPolicySource) ?? void 0,
225
- policyId: policyId ?? fileConfig.policyId
229
+ policyId: policyId ?? fileConfig.policyId,
230
+ advancedDetection: advancedDetection ? { enabled: true } : void 0
226
231
  };
227
232
  }
228
233
  if (upstreamUrl) {
@@ -243,7 +248,8 @@ function parseArgs(argv) {
243
248
  apiUrl,
244
249
  port,
245
250
  policyPath: resolvedPolicyPath ?? void 0,
246
- policyId
251
+ policyId,
252
+ advancedDetection: advancedDetection ? { enabled: true } : void 0
247
253
  };
248
254
  }
249
255
  if (upstreamArgs.length === 0) {
@@ -268,7 +274,8 @@ function parseArgs(argv) {
268
274
  apiUrl,
269
275
  port,
270
276
  policyPath: resolvedPolicyPath ?? void 0,
271
- policyId
277
+ policyId,
278
+ advancedDetection: advancedDetection ? { enabled: true } : void 0
272
279
  };
273
280
  }
274
281
  function resolvePolicyPath(source) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solongate/proxy",
3
- "version": "0.10.1",
3
+ "version": "0.11.0",
4
4
  "description": "MCP security proxy — protect any MCP server with customizable policies, path/command constraints, rate limiting, and audit logging. Zero code changes required.",
5
5
  "type": "module",
6
6
  "bin": {