@shipstatic/mcp 0.1.0 → 0.1.2
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.js +20 -11
- package/dist/server.d.ts +2 -2
- package/dist/server.js +2 -3
- package/package.json +8 -4
package/dist/index.js
CHANGED
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
3
|
+
import Ship from '@shipstatic/ship';
|
|
3
4
|
import { createServer } from './server.js';
|
|
5
|
+
const CONFIG_EXAMPLE = JSON.stringify({
|
|
6
|
+
mcpServers: {
|
|
7
|
+
shipstatic: {
|
|
8
|
+
command: 'npx',
|
|
9
|
+
args: ['@shipstatic/mcp'],
|
|
10
|
+
env: { SHIP_API_KEY: 'ship-...' },
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
}, null, 2);
|
|
4
14
|
if (process.stdin.isTTY) {
|
|
5
|
-
console.error('Shipstatic MCP server v0.1.
|
|
15
|
+
console.error('Shipstatic MCP server v0.1.2');
|
|
6
16
|
console.error('This is a stdio server for MCP clients.\n');
|
|
7
17
|
console.error('Add to your MCP client config:\n');
|
|
8
|
-
console.error(
|
|
9
|
-
mcpServers: {
|
|
10
|
-
shipstatic: {
|
|
11
|
-
command: 'npx',
|
|
12
|
-
args: ['@shipstatic/mcp'],
|
|
13
|
-
env: { SHIP_API_KEY: 'ship-...' },
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
}, null, 2));
|
|
18
|
+
console.error(CONFIG_EXAMPLE);
|
|
17
19
|
process.exit(0);
|
|
18
20
|
}
|
|
19
|
-
const
|
|
21
|
+
const apiKey = process.env.SHIP_API_KEY;
|
|
22
|
+
if (!apiKey) {
|
|
23
|
+
console.error('Error: SHIP_API_KEY environment variable is required.\n');
|
|
24
|
+
console.error('Add it to your MCP client config:\n');
|
|
25
|
+
console.error(CONFIG_EXAMPLE);
|
|
26
|
+
process.exit(1);
|
|
27
|
+
}
|
|
28
|
+
const server = createServer(new Ship({ apiKey }));
|
|
20
29
|
const transport = new StdioServerTransport();
|
|
21
30
|
await server.connect(transport);
|
package/dist/server.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Ship from '@shipstatic/ship';
|
|
1
|
+
import type Ship from '@shipstatic/ship';
|
|
2
2
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
|
-
export declare function createServer(ship
|
|
3
|
+
export declare function createServer(ship: Ship): McpServer;
|
package/dist/server.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import Ship from '@shipstatic/ship';
|
|
2
1
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
2
|
import { z } from 'zod';
|
|
4
3
|
import { call } from './call.js';
|
|
@@ -6,10 +5,10 @@ const OPEN_WORLD = { openWorldHint: true };
|
|
|
6
5
|
const READ = { readOnlyHint: true, idempotentHint: true, ...OPEN_WORLD };
|
|
7
6
|
const WRITE = { idempotentHint: true, ...OPEN_WORLD };
|
|
8
7
|
const DESTRUCTIVE = { destructiveHint: true, idempotentHint: true, ...OPEN_WORLD };
|
|
9
|
-
export function createServer(ship
|
|
8
|
+
export function createServer(ship) {
|
|
10
9
|
const server = new McpServer({
|
|
11
10
|
name: 'shipstatic',
|
|
12
|
-
version: '0.1.
|
|
11
|
+
version: '0.1.1',
|
|
13
12
|
}, {
|
|
14
13
|
instructions: 'Deploy a static site to Shipstatic and link it to your domain. To deploy, call deployments_upload with the path to your build output directory. To set up a custom domain, first call domains_validate to check the name, then domains_set to link it to a deployment, then domains_records to get the required DNS records. After DNS is configured, call domains_verify to trigger verification.',
|
|
15
14
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipstatic/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"mcpName": "com.shipstatic/mcp",
|
|
4
5
|
"description": "MCP server for Shipstatic — deploy and manage static sites from AI agents",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"main": "./dist/index.js",
|
|
@@ -14,10 +15,13 @@
|
|
|
14
15
|
],
|
|
15
16
|
"keywords": [
|
|
16
17
|
"mcp",
|
|
17
|
-
"
|
|
18
|
+
"mcp-server",
|
|
18
19
|
"model-context-protocol",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
20
|
+
"shipstatic",
|
|
21
|
+
"static-hosting",
|
|
22
|
+
"deploy",
|
|
23
|
+
"claude",
|
|
24
|
+
"ai"
|
|
21
25
|
],
|
|
22
26
|
"homepage": "https://github.com/shipstatic/mcp",
|
|
23
27
|
"repository": {
|