@shipstatic/mcp 0.1.6 → 0.1.7
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 +5 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export
|
|
2
|
+
export declare function createSandboxServer(): import("@modelcontextprotocol/sdk/server/mcp.js").McpServer;
|
package/dist/index.js
CHANGED
|
@@ -11,6 +11,10 @@ const CONFIG_EXAMPLE = JSON.stringify({
|
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
13
|
}, null, 2);
|
|
14
|
+
// Smithery sandbox: allows capability scanning without real credentials
|
|
15
|
+
export function createSandboxServer() {
|
|
16
|
+
return createServer(new Ship({ apiKey: 'sandbox' }));
|
|
17
|
+
}
|
|
14
18
|
const apiKey = process.env.SHIP_API_KEY;
|
|
15
19
|
if (apiKey) {
|
|
16
20
|
const server = createServer(new Ship({ apiKey }));
|
|
@@ -18,7 +22,7 @@ if (apiKey) {
|
|
|
18
22
|
server.connect(transport).catch(console.error);
|
|
19
23
|
}
|
|
20
24
|
else {
|
|
21
|
-
console.error('Shipstatic MCP server v0.1.
|
|
25
|
+
console.error('Shipstatic MCP server v0.1.7');
|
|
22
26
|
console.error('This is a stdio server for MCP clients.\n');
|
|
23
27
|
console.error('SHIP_API_KEY environment variable is required.\n');
|
|
24
28
|
console.error('Add to your MCP client config:\n');
|