@solongate/proxy 0.27.0 → 0.27.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 +27 -2
- package/dist/init.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -172,8 +172,33 @@ function parseArgs(argv) {
|
|
|
172
172
|
let agentName;
|
|
173
173
|
let separatorIndex = args.indexOf("--");
|
|
174
174
|
const flags = separatorIndex >= 0 ? args.slice(0, separatorIndex) : args;
|
|
175
|
-
|
|
175
|
+
let upstreamArgs = separatorIndex >= 0 ? args.slice(separatorIndex + 1) : [];
|
|
176
|
+
const flagsWithValue = /* @__PURE__ */ new Set([
|
|
177
|
+
"--policy",
|
|
178
|
+
"--name",
|
|
179
|
+
"--rate-limit",
|
|
180
|
+
"--global-rate-limit",
|
|
181
|
+
"--config",
|
|
182
|
+
"--api-key",
|
|
183
|
+
"--api-url",
|
|
184
|
+
"--upstream-url",
|
|
185
|
+
"--upstream-transport",
|
|
186
|
+
"--port",
|
|
187
|
+
"--policy-id",
|
|
188
|
+
"--id",
|
|
189
|
+
"--ai-judge-model",
|
|
190
|
+
"--ai-judge-endpoint",
|
|
191
|
+
"--ai-judge-api-key",
|
|
192
|
+
"--ai-judge-timeout",
|
|
193
|
+
"--agent-name"
|
|
194
|
+
]);
|
|
176
195
|
for (let i = 0; i < flags.length; i++) {
|
|
196
|
+
if (!flags[i].startsWith("--")) {
|
|
197
|
+
if (upstreamArgs.length === 0) {
|
|
198
|
+
upstreamArgs.push(...flags.slice(i));
|
|
199
|
+
}
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
177
202
|
switch (flags[i]) {
|
|
178
203
|
case "--policy":
|
|
179
204
|
policySource = flags[++i];
|
|
@@ -455,7 +480,7 @@ function findConfigFile(explicitPath, createIfMissing = false) {
|
|
|
455
480
|
mcpServers: {
|
|
456
481
|
"filesystem": {
|
|
457
482
|
command: "npx",
|
|
458
|
-
args: ["-y", "@modelcontextprotocol/server-filesystem", "."]
|
|
483
|
+
args: ["-y", "@modelcontextprotocol/server-filesystem@latest", "."]
|
|
459
484
|
},
|
|
460
485
|
"playwright": {
|
|
461
486
|
command: "npx",
|
package/dist/init.js
CHANGED
|
@@ -61,7 +61,7 @@ function findConfigFile(explicitPath, createIfMissing = false) {
|
|
|
61
61
|
mcpServers: {
|
|
62
62
|
"filesystem": {
|
|
63
63
|
command: "npx",
|
|
64
|
-
args: ["-y", "@modelcontextprotocol/server-filesystem", "."]
|
|
64
|
+
args: ["-y", "@modelcontextprotocol/server-filesystem@latest", "."]
|
|
65
65
|
},
|
|
66
66
|
"playwright": {
|
|
67
67
|
command: "npx",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solongate/proxy",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.2",
|
|
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": {
|