ping-mcp-server 0.1.3 → 0.1.4
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/init.js +2 -2
- package/package.json +1 -1
- package/src/init.ts +3 -2
package/dist/init.js
CHANGED
|
@@ -122,7 +122,7 @@ function addToClaudeCodeConfig(configPath) {
|
|
|
122
122
|
config.mcpServers.ping = {
|
|
123
123
|
type: "stdio",
|
|
124
124
|
command: "npx",
|
|
125
|
-
args: ["-y", "ping-mcp-server"]
|
|
125
|
+
args: ["-y", "-p", "ping-mcp-server", "ping-mcp"]
|
|
126
126
|
};
|
|
127
127
|
fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
|
|
128
128
|
printSuccess(`Added Ping MCP server to: ${configPath}`);
|
|
@@ -181,7 +181,7 @@ async function main() {
|
|
|
181
181
|
print(' "ping": {');
|
|
182
182
|
print(' "type": "stdio",');
|
|
183
183
|
print(' "command": "npx",');
|
|
184
|
-
print(' "args": ["-y", "ping-mcp-server"]');
|
|
184
|
+
print(' "args": ["-y", "-p", "ping-mcp-server", "ping-mcp"]');
|
|
185
185
|
print(" }");
|
|
186
186
|
print(" }");
|
|
187
187
|
print(" }");
|
package/package.json
CHANGED
package/src/init.ts
CHANGED
|
@@ -193,10 +193,11 @@ function addToClaudeCodeConfig(configPath: string): boolean {
|
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
// Add Ping MCP server
|
|
196
|
+
// -p flag tells npx which package to install, then runs the ping-mcp binary from it
|
|
196
197
|
config.mcpServers.ping = {
|
|
197
198
|
type: 'stdio',
|
|
198
199
|
command: 'npx',
|
|
199
|
-
args: ['-y', 'ping-mcp-server'],
|
|
200
|
+
args: ['-y', '-p', 'ping-mcp-server', 'ping-mcp'],
|
|
200
201
|
};
|
|
201
202
|
|
|
202
203
|
// Write updated config
|
|
@@ -274,7 +275,7 @@ async function main() {
|
|
|
274
275
|
print(' "ping": {');
|
|
275
276
|
print(' "type": "stdio",');
|
|
276
277
|
print(' "command": "npx",');
|
|
277
|
-
print(' "args": ["-y", "ping-mcp-server"]');
|
|
278
|
+
print(' "args": ["-y", "-p", "ping-mcp-server", "ping-mcp"]');
|
|
278
279
|
print(' }');
|
|
279
280
|
print(' }');
|
|
280
281
|
print(' }');
|