viewgate-wrapper 1.10.30 → 1.10.32

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.
Files changed (2) hide show
  1. package/dist/cli.js +6 -8
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -17,7 +17,7 @@ async function setup() {
17
17
  // 2. Determine the path or URL
18
18
  // Since we now have a standalone server, we can point to its URL or local path.
19
19
  // The user wants it to be scalable, so we'll prioritize a server URL.
20
- const mcpServerUrl = process.env.MCP_SERVER_URL || 'https://view-gate.vercel.app/sse';
20
+ const mcpServerUrl = process.env.MCP_SERVER_URL || 'https://view-gate-mcp.vercel.app/sse';
21
21
  // 3. Read and update mcp_config.json
22
22
  try {
23
23
  const config = JSON.parse(fs.readFileSync(configPath, 'utf8'));
@@ -29,14 +29,12 @@ async function setup() {
29
29
  // Default values if not present
30
30
  const backendUrl = env.BACKEND_URL || 'http://localhost:5000';
31
31
  const apiKey = env.API_KEY || '';
32
- config.mcpServers.viewgate = {
32
+ config.mcpServers["viewgate"] = {
33
33
  command: "npx",
34
- args: [
35
- "-y",
36
- "mcp-remote",
37
- `${mcpServerUrl}${mcpServerUrl.includes('?') ? '&' : '?'}apiKey=${apiKey}`
38
- ],
39
- env: {}
34
+ args: ["-y", "viewgate-mcp"],
35
+ env: {
36
+ "VIEWGATE_API_KEY": apiKey || "TU_API_KEY_AQUI"
37
+ }
40
38
  };
41
39
  fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
42
40
  console.log(`✅ Updated mcp_config.json successfully!`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viewgate-wrapper",
3
- "version": "1.10.30",
3
+ "version": "1.10.32",
4
4
  "type": "module",
5
5
  "main": "./dist/viewgate-wrapper.umd.cjs",
6
6
  "module": "./dist/viewgate-wrapper.js",