@solongate/proxy 0.27.2 → 0.28.1
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 +3 -4
- package/dist/init.js +0 -1
- package/dist/lib.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -521,7 +521,6 @@ function wrapServer(serverName, server, policy) {
|
|
|
521
521
|
const env = { ...server.env ?? {} };
|
|
522
522
|
env.SOLONGATE_API_KEY = "${SOLONGATE_API_KEY}";
|
|
523
523
|
const proxyArgs = ["-y", "@solongate/proxy@latest"];
|
|
524
|
-
proxyArgs.push("--agent-name", serverName);
|
|
525
524
|
if (policy) {
|
|
526
525
|
proxyArgs.push("--policy", policy);
|
|
527
526
|
}
|
|
@@ -6006,12 +6005,12 @@ var SolonGateProxy = class {
|
|
|
6006
6005
|
}
|
|
6007
6006
|
);
|
|
6008
6007
|
this.server.oninitialized = () => {
|
|
6009
|
-
if (
|
|
6008
|
+
if (this.server) {
|
|
6010
6009
|
const clientVersion = this.server.getClientVersion();
|
|
6011
6010
|
if (clientVersion?.name) {
|
|
6012
|
-
this.agentId = clientVersion.
|
|
6011
|
+
this.agentId = clientVersion.name;
|
|
6013
6012
|
this.agentName = clientVersion.name;
|
|
6014
|
-
log2(`Agent identified from MCP clientInfo: ${this.agentName}
|
|
6013
|
+
log2(`Agent identified from MCP clientInfo: ${this.agentName}`);
|
|
6015
6014
|
}
|
|
6016
6015
|
}
|
|
6017
6016
|
};
|
package/dist/init.js
CHANGED
|
@@ -102,7 +102,6 @@ function wrapServer(serverName, server, policy) {
|
|
|
102
102
|
const env = { ...server.env ?? {} };
|
|
103
103
|
env.SOLONGATE_API_KEY = "${SOLONGATE_API_KEY}";
|
|
104
104
|
const proxyArgs = ["-y", "@solongate/proxy@latest"];
|
|
105
|
-
proxyArgs.push("--agent-name", serverName);
|
|
106
105
|
if (policy) {
|
|
107
106
|
proxyArgs.push("--policy", policy);
|
|
108
107
|
}
|
package/dist/lib.js
CHANGED
|
@@ -4446,12 +4446,12 @@ var SolonGateProxy = class {
|
|
|
4446
4446
|
}
|
|
4447
4447
|
);
|
|
4448
4448
|
this.server.oninitialized = () => {
|
|
4449
|
-
if (
|
|
4449
|
+
if (this.server) {
|
|
4450
4450
|
const clientVersion = this.server.getClientVersion();
|
|
4451
4451
|
if (clientVersion?.name) {
|
|
4452
|
-
this.agentId = clientVersion.
|
|
4452
|
+
this.agentId = clientVersion.name;
|
|
4453
4453
|
this.agentName = clientVersion.name;
|
|
4454
|
-
log2(`Agent identified from MCP clientInfo: ${this.agentName}
|
|
4454
|
+
log2(`Agent identified from MCP clientInfo: ${this.agentName}`);
|
|
4455
4455
|
}
|
|
4456
4456
|
}
|
|
4457
4457
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solongate/proxy",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.1",
|
|
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": {
|