mcpstore-gateway 1.3.0 → 1.3.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.d.ts +1 -1
- package/dist/index.js +26 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* MCP Store Gateway v1.
|
|
3
|
+
* MCP Store Gateway v1.3.1
|
|
4
4
|
*
|
|
5
5
|
* A single MCP server that gives Claude Code access to ALL your installed MCPs
|
|
6
6
|
* from mcpclaudecode.com. Install MCPs on the website, they appear here instantly.
|
|
@@ -54,11 +54,20 @@ async function syncExternalMcps(apiKey) {
|
|
|
54
54
|
let changed = false;
|
|
55
55
|
// 3. Add or update external MCPs (prefixed with mcpstore-)
|
|
56
56
|
// Always update so credentials from the vault get injected
|
|
57
|
+
const isWindows = os.platform() === "win32";
|
|
57
58
|
for (const mcp of data.external_mcps) {
|
|
58
59
|
const key = `${MANAGED_PREFIX}${mcp.slug}`;
|
|
60
|
+
// On Windows, wrap npx/node commands with cmd /c so Claude Code can spawn them
|
|
61
|
+
const mcpConfig = { ...mcp.config };
|
|
62
|
+
if (isWindows && (mcpConfig.command === "npx" || mcpConfig.command === "node")) {
|
|
63
|
+
const originalCommand = mcpConfig.command;
|
|
64
|
+
const originalArgs = mcpConfig.args || [];
|
|
65
|
+
mcpConfig.command = "cmd";
|
|
66
|
+
mcpConfig.args = ["/c", originalCommand, ...originalArgs];
|
|
67
|
+
}
|
|
59
68
|
const existing = config.mcpServers[key];
|
|
60
|
-
if (!existing || JSON.stringify(existing) !== JSON.stringify(
|
|
61
|
-
config.mcpServers[key] =
|
|
69
|
+
if (!existing || JSON.stringify(existing) !== JSON.stringify(mcpConfig)) {
|
|
70
|
+
config.mcpServers[key] = mcpConfig;
|
|
62
71
|
changed = true;
|
|
63
72
|
}
|
|
64
73
|
}
|
|
@@ -124,10 +133,19 @@ async function runSetup(apiKey) {
|
|
|
124
133
|
if (!config.mcpServers) {
|
|
125
134
|
config.mcpServers = {};
|
|
126
135
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
136
|
+
// On Windows, wrap npx with cmd /c so Claude Code can spawn the process
|
|
137
|
+
if (os.platform() === "win32") {
|
|
138
|
+
config.mcpServers.mcpstore = {
|
|
139
|
+
command: "cmd",
|
|
140
|
+
args: ["/c", "npx", "-y", "mcpstore-gateway", "--api-key", apiKey],
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
config.mcpServers.mcpstore = {
|
|
145
|
+
command: "npx",
|
|
146
|
+
args: ["-y", "mcpstore-gateway", "--api-key", apiKey],
|
|
147
|
+
};
|
|
148
|
+
}
|
|
131
149
|
fs.writeFileSync(mcpJsonPath, JSON.stringify(config, null, 2) + "\n", "utf-8");
|
|
132
150
|
console.log(` OK — ${mcpJsonPath}`);
|
|
133
151
|
// 3. Done!
|
|
@@ -178,7 +196,7 @@ async function runServer(apiKey) {
|
|
|
178
196
|
await syncExternalMcps(apiKey);
|
|
179
197
|
const server = new McpServer({
|
|
180
198
|
name: "MCP Store",
|
|
181
|
-
version: "1.
|
|
199
|
+
version: "1.3.1",
|
|
182
200
|
});
|
|
183
201
|
// Register hosted tools (proxied through our backend)
|
|
184
202
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcpstore-gateway",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "MCP Store Gateway — One MCP server for all your installed MCPs from mcpclaudecode.com",
|
|
5
5
|
"keywords": ["mcp", "claude", "claude-code", "ai", "gateway", "marketplace"],
|
|
6
6
|
"license": "MIT",
|