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.
- package/dist/cli.js +6 -8
- 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
|
|
32
|
+
config.mcpServers["viewgate"] = {
|
|
33
33
|
command: "npx",
|
|
34
|
-
args: [
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
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!`);
|