@shipstatic/mcp 1.8.0 → 1.9.0
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/bin.js +8 -3
- package/package.json +4 -4
package/dist/bin.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
import { createRequire } from 'node:module';
|
|
16
16
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
17
17
|
import Ship from '@shipstatic/ship';
|
|
18
|
-
import { SHIP_ENV } from '@shipstatic/types';
|
|
18
|
+
import { normalizeVia, SHIP_ENV, SHIP_VIA_ENV } from '@shipstatic/types';
|
|
19
19
|
import { createServer } from './server.js';
|
|
20
20
|
// The executable knows its own manifest; the library it drives does not have
|
|
21
21
|
// to. `createServer` takes the version as an argument precisely so no module
|
|
@@ -30,8 +30,13 @@ async function main() {
|
|
|
30
30
|
// bearer) and the server classifies it. MCP never has to know which kind it
|
|
31
31
|
// holds.
|
|
32
32
|
const ship = new Ship({ token: process.env[SHIP_ENV.TOKEN] });
|
|
33
|
-
//
|
|
34
|
-
|
|
33
|
+
// Unset, this executable IS the `mcp` origin, which is the default. A
|
|
34
|
+
// first-party wrapper that composes this invocation relabels it through
|
|
35
|
+
// the subprocess slot the CLI shares (`SHIP_VIA_ENV` in types): the Gemini
|
|
36
|
+
// extension sends `gmn`. An unrecognized label is dropped rather than
|
|
37
|
+
// forwarded: the server silently ignores what the vocabulary does not
|
|
38
|
+
// name, so a typo records the honest default instead of nothing.
|
|
39
|
+
const server = createServer(ship, { version, via: normalizeVia(process.env[SHIP_VIA_ENV]) });
|
|
35
40
|
const transport = new StdioServerTransport();
|
|
36
41
|
await server.connect(transport);
|
|
37
42
|
console.error('ShipStatic MCP Server running on stdio');
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipstatic/mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"mcpName": "com.shipstatic/mcp",
|
|
5
|
-
"description": "Deploy static websites from AI agents. Start with the hosted endpoint at mcp.shipstatic.com
|
|
5
|
+
"description": "Deploy static websites from AI agents. Start with the hosted endpoint at mcp.shipstatic.com — no install, no signup, no API key — or install this package to deploy folders from your own machine. The same fifteen tools either way.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"sideEffects": [
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"license": "MIT",
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
70
|
-
"@shipstatic/ship": "2.
|
|
71
|
-
"@shipstatic/types": "2.
|
|
70
|
+
"@shipstatic/ship": "2.8.0",
|
|
71
|
+
"@shipstatic/types": "2.21.0",
|
|
72
72
|
"zod": "^4.4.3"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|