@solongate/proxy 0.1.20 → 0.1.21
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 +7 -2
- package/dist/index.js +7 -2
- package/package.json +1 -1
package/dist/create.js
CHANGED
|
@@ -132,8 +132,8 @@ function createProject(dir, name, _policy) {
|
|
|
132
132
|
bin: { [name]: "./dist/index.js" },
|
|
133
133
|
scripts: {
|
|
134
134
|
build: "tsup src/index.ts --format esm",
|
|
135
|
-
dev: "tsx src/index.ts",
|
|
136
|
-
start: "node dist/index.js"
|
|
135
|
+
dev: "tsx --env-file=.env src/index.ts",
|
|
136
|
+
start: "node --env-file=.env dist/index.js"
|
|
137
137
|
},
|
|
138
138
|
dependencies: {
|
|
139
139
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
@@ -222,6 +222,11 @@ console.log('${name} is running');
|
|
|
222
222
|
2
|
|
223
223
|
) + "\n"
|
|
224
224
|
);
|
|
225
|
+
writeFileSync(
|
|
226
|
+
join(dir, ".env"),
|
|
227
|
+
`SOLONGATE_API_KEY=sg_live_YOUR_KEY_HERE
|
|
228
|
+
`
|
|
229
|
+
);
|
|
225
230
|
writeFileSync(
|
|
226
231
|
join(dir, ".gitignore"),
|
|
227
232
|
`node_modules/
|
package/dist/index.js
CHANGED
|
@@ -844,8 +844,8 @@ function createProject(dir, name, _policy) {
|
|
|
844
844
|
bin: { [name]: "./dist/index.js" },
|
|
845
845
|
scripts: {
|
|
846
846
|
build: "tsup src/index.ts --format esm",
|
|
847
|
-
dev: "tsx src/index.ts",
|
|
848
|
-
start: "node dist/index.js"
|
|
847
|
+
dev: "tsx --env-file=.env src/index.ts",
|
|
848
|
+
start: "node --env-file=.env dist/index.js"
|
|
849
849
|
},
|
|
850
850
|
dependencies: {
|
|
851
851
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
@@ -934,6 +934,11 @@ console.log('${name} is running');
|
|
|
934
934
|
2
|
|
935
935
|
) + "\n"
|
|
936
936
|
);
|
|
937
|
+
writeFileSync3(
|
|
938
|
+
join2(dir, ".env"),
|
|
939
|
+
`SOLONGATE_API_KEY=sg_live_YOUR_KEY_HERE
|
|
940
|
+
`
|
|
941
|
+
);
|
|
937
942
|
writeFileSync3(
|
|
938
943
|
join2(dir, ".gitignore"),
|
|
939
944
|
`node_modules/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solongate/proxy",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"description": "MCP security proxy \u00e2\u20ac\u201d protect any MCP server with policies, input validation, rate limiting, and audit logging. Zero code changes required.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|