@shipstatic/mcp 0.1.5 → 0.1.6

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/index.js +7 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -12,17 +12,15 @@ const CONFIG_EXAMPLE = JSON.stringify({
12
12
  },
13
13
  }, null, 2);
14
14
  const apiKey = process.env.SHIP_API_KEY;
15
- if (!apiKey) {
16
- console.error('Shipstatic MCP server v0.1.5');
15
+ if (apiKey) {
16
+ const server = createServer(new Ship({ apiKey }));
17
+ const transport = new StdioServerTransport();
18
+ server.connect(transport).catch(console.error);
19
+ }
20
+ else {
21
+ console.error('Shipstatic MCP server v0.1.6');
17
22
  console.error('This is a stdio server for MCP clients.\n');
18
23
  console.error('SHIP_API_KEY environment variable is required.\n');
19
24
  console.error('Add to your MCP client config:\n');
20
25
  console.error(CONFIG_EXAMPLE);
21
- process.exit(1);
22
- }
23
- async function main() {
24
- const server = createServer(new Ship({ apiKey }));
25
- const transport = new StdioServerTransport();
26
- await server.connect(transport);
27
26
  }
28
- main().catch(console.error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/mcp",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "mcpName": "com.shipstatic/mcp",
5
5
  "description": "MCP server for Shipstatic — deploy and manage static sites from AI agents",
6
6
  "type": "module",