@solongate/proxy 0.1.11 → 0.1.13

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
@@ -181,14 +181,14 @@ console.log = (...args: unknown[]) => {
181
181
  process.stderr.write(args.map(String).join(' ') + '\\n');
182
182
  };
183
183
 
184
- import { SecureMcpServer } from '@solongate/sdk';
184
+ import { SecureMcpServer, createPermissivePolicySet } from '@solongate/sdk';
185
185
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
186
186
  import { z } from 'zod';
187
187
 
188
- const server = new SecureMcpServer({
189
- name: '${name}',
190
- version: '0.1.0',
191
- });
188
+ const server = new SecureMcpServer(
189
+ { name: '${name}', version: '0.1.0' },
190
+ { policySet: createPermissivePolicySet() },
191
+ );
192
192
 
193
193
  server.tool(
194
194
  'hello',
@@ -213,7 +213,7 @@ console.log('${name} is running');
213
213
  command: "node",
214
214
  args: ["dist/index.js"],
215
215
  env: {
216
- SOLONGATE_API_KEY: "sg_test_e4460d32_replace_with_your_key"
216
+ SOLONGATE_API_KEY: "sg_test_YOUR_KEY_HERE"
217
217
  }
218
218
  }
219
219
  }
@@ -278,6 +278,14 @@ async function main() {
278
278
  bEmpty();
279
279
  bLine(`${c.dim}https://dashboard.solongate.com/api-keys/${c.reset}`);
280
280
  bEmpty();
281
+ log(` ${c.dim}\u251C${hr}\u2524${c.reset}`);
282
+ bEmpty();
283
+ bLine(`${c.yellow}Use with Claude Code:${c.reset}`);
284
+ bEmpty();
285
+ bLine(` ${c.dim}1.${c.reset} Open the project folder in Claude Code`);
286
+ bLine(` ${c.dim}2.${c.reset} .mcp.json is auto-detected on startup`);
287
+ bLine(` ${c.dim}3.${c.reset} Restart Claude Code if already open`);
288
+ bEmpty();
281
289
  log(` ${c.dim}\u2570${hr}\u256F${c.reset}`);
282
290
  log("");
283
291
  }
package/dist/index.js CHANGED
@@ -842,14 +842,14 @@ console.log = (...args: unknown[]) => {
842
842
  process.stderr.write(args.map(String).join(' ') + '\\n');
843
843
  };
844
844
 
845
- import { SecureMcpServer } from '@solongate/sdk';
845
+ import { SecureMcpServer, createPermissivePolicySet } from '@solongate/sdk';
846
846
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
847
847
  import { z } from 'zod';
848
848
 
849
- const server = new SecureMcpServer({
850
- name: '${name}',
851
- version: '0.1.0',
852
- });
849
+ const server = new SecureMcpServer(
850
+ { name: '${name}', version: '0.1.0' },
851
+ { policySet: createPermissivePolicySet() },
852
+ );
853
853
 
854
854
  server.tool(
855
855
  'hello',
@@ -874,7 +874,7 @@ console.log('${name} is running');
874
874
  command: "node",
875
875
  args: ["dist/index.js"],
876
876
  env: {
877
- SOLONGATE_API_KEY: "sg_test_e4460d32_replace_with_your_key"
877
+ SOLONGATE_API_KEY: "sg_test_YOUR_KEY_HERE"
878
878
  }
879
879
  }
880
880
  }
@@ -939,6 +939,14 @@ async function main3() {
939
939
  bEmpty();
940
940
  bLine(`${c2.dim}https://dashboard.solongate.com/api-keys/${c2.reset}`);
941
941
  bEmpty();
942
+ log3(` ${c2.dim}\u251C${hr}\u2524${c2.reset}`);
943
+ bEmpty();
944
+ bLine(`${c2.yellow}Use with Claude Code:${c2.reset}`);
945
+ bEmpty();
946
+ bLine(` ${c2.dim}1.${c2.reset} Open the project folder in Claude Code`);
947
+ bLine(` ${c2.dim}2.${c2.reset} .mcp.json is auto-detected on startup`);
948
+ bLine(` ${c2.dim}3.${c2.reset} Restart Claude Code if already open`);
949
+ bEmpty();
942
950
  log3(` ${c2.dim}\u2570${hr}\u256F${c2.reset}`);
943
951
  log3("");
944
952
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solongate/proxy",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "MCP security proxy — protect any MCP server with policies, input validation, rate limiting, and audit logging. Zero code changes required.",
5
5
  "type": "module",
6
6
  "bin": {