@solongate/proxy 0.4.4 → 0.4.5

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 CHANGED
@@ -551,13 +551,13 @@ function isAlreadyProtected(server) {
551
551
  return false;
552
552
  }
553
553
  function wrapServer(server, policy, apiKey) {
554
+ const env = { ...server.env ?? {} };
555
+ env.SOLONGATE_API_KEY = apiKey;
554
556
  return {
555
557
  command: "npx",
556
558
  args: [
557
559
  "-y",
558
560
  "@solongate/proxy",
559
- "--api-key",
560
- apiKey,
561
561
  "--policy",
562
562
  policy,
563
563
  "--verbose",
@@ -565,7 +565,7 @@ function wrapServer(server, policy, apiKey) {
565
565
  server.command,
566
566
  ...server.args ?? []
567
567
  ],
568
- ...server.env ? { env: server.env } : {}
568
+ env
569
569
  };
570
570
  }
571
571
  async function prompt(question) {
package/dist/init.js CHANGED
@@ -46,13 +46,13 @@ function isAlreadyProtected(server) {
46
46
  return false;
47
47
  }
48
48
  function wrapServer(server, policy, apiKey) {
49
+ const env = { ...server.env ?? {} };
50
+ env.SOLONGATE_API_KEY = apiKey;
49
51
  return {
50
52
  command: "npx",
51
53
  args: [
52
54
  "-y",
53
55
  "@solongate/proxy",
54
- "--api-key",
55
- apiKey,
56
56
  "--policy",
57
57
  policy,
58
58
  "--verbose",
@@ -60,7 +60,7 @@ function wrapServer(server, policy, apiKey) {
60
60
  server.command,
61
61
  ...server.args ?? []
62
62
  ],
63
- ...server.env ? { env: server.env } : {}
63
+ env
64
64
  };
65
65
  }
66
66
  async function prompt(question) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solongate/proxy",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
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": {