@solongate/proxy 0.4.4 → 0.4.6

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/create.js CHANGED
@@ -300,10 +300,11 @@ async function main() {
300
300
  bEmpty();
301
301
  log(` ${c.dim}\u251C${hr}\u2524${c.reset}`);
302
302
  bEmpty();
303
- bLine(`${c.yellow}Use with OpenClaw:${c.reset}`);
303
+ bLine(`${c.yellow}Use with any MCP server:${c.reset}`);
304
304
  bEmpty();
305
- bLine(` ${c.cyan}$${c.reset} solongate-proxy -- npx @openclaw/server`);
306
- bLine(` ${c.dim}Wraps OpenClaw servers with SolonGate protection${c.reset}`);
305
+ bLine(` ${c.cyan}$${c.reset} solongate-proxy -- npx @modelcontextprotocol/server-filesystem .`);
306
+ bLine(` ${c.cyan}$${c.reset} solongate-proxy -- npx @playwright/mcp@latest`);
307
+ bLine(` ${c.dim}Wraps any MCP server or AI tool with SolonGate protection${c.reset}`);
307
308
  bEmpty();
308
309
  log(` ${c.dim}\u251C${hr}\u2524${c.reset}`);
309
310
  bEmpty();
package/dist/index.js CHANGED
@@ -187,7 +187,7 @@ function parseArgs(argv) {
187
187
  }
188
188
  if (upstreamArgs.length === 0) {
189
189
  throw new Error(
190
- "No upstream server command provided.\n\nUsage: solongate-proxy [options] -- <command> [args...]\n\nExamples:\n solongate-proxy -- node my-server.js\n solongate-proxy --policy restricted -- npx @openclaw/server\n solongate-proxy --upstream-url http://localhost:3001/mcp\n solongate-proxy --config solongate.json\n"
190
+ "No upstream server command provided.\n\nUsage: solongate-proxy [options] -- <command> [args...]\n\nExamples:\n solongate-proxy -- node my-server.js\n solongate-proxy --policy restricted -- npx @playwright/mcp@latest\n solongate-proxy --upstream-url http://localhost:3001/mcp\n solongate-proxy --config solongate.json\n"
191
191
  );
192
192
  }
193
193
  const [command, ...commandArgs] = upstreamArgs;
@@ -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) {
@@ -1802,10 +1802,11 @@ async function main3() {
1802
1802
  bEmpty();
1803
1803
  log4(` ${c2.dim}\u251C${hr}\u2524${c2.reset}`);
1804
1804
  bEmpty();
1805
- bLine(`${c2.yellow}Use with OpenClaw:${c2.reset}`);
1805
+ bLine(`${c2.yellow}Use with any MCP server:${c2.reset}`);
1806
1806
  bEmpty();
1807
- bLine(` ${c2.cyan}$${c2.reset} solongate-proxy -- npx @openclaw/server`);
1808
- bLine(` ${c2.dim}Wraps OpenClaw servers with SolonGate protection${c2.reset}`);
1807
+ bLine(` ${c2.cyan}$${c2.reset} solongate-proxy -- npx @modelcontextprotocol/server-filesystem .`);
1808
+ bLine(` ${c2.cyan}$${c2.reset} solongate-proxy -- npx @playwright/mcp@latest`);
1809
+ bLine(` ${c2.dim}Wraps any MCP server or AI tool with SolonGate protection${c2.reset}`);
1809
1810
  bEmpty();
1810
1811
  log4(` ${c2.dim}\u251C${hr}\u2524${c2.reset}`);
1811
1812
  bEmpty();
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.6",
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": {