@slapy/mcp 1.0.0-alpha → 1.0.1-alpha
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/README.md +11 -11
- package/bin/slapy-mcp.js +27 -5
- package/dist/server.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -18,10 +18,10 @@ npm install -g @slapy/mcp@alpha
|
|
|
18
18
|
## Required Environment
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
export SLAPY_AGENT_KEY="ak_xxxx"
|
|
22
|
-
export SLAPY_WORKSPACE_ID="workspace_xxxx"
|
|
23
|
-
export SLAPY_USER_ID="user_xxxx"
|
|
24
|
-
export SLAPY_API_URL="https://slapy.
|
|
21
|
+
export SLAPY_AGENT_KEY="ak_xxxx"
|
|
22
|
+
export SLAPY_WORKSPACE_ID="workspace_xxxx"
|
|
23
|
+
export SLAPY_USER_ID="user_xxxx"
|
|
24
|
+
export SLAPY_API_URL="https://slapy.ai"
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
For local development:
|
|
@@ -39,13 +39,13 @@ export SLAPY_API_URL="http://localhost:3000"
|
|
|
39
39
|
"command": "npx",
|
|
40
40
|
"args": ["@slapy/mcp@alpha"],
|
|
41
41
|
"env": {
|
|
42
|
-
"SLAPY_AGENT_KEY": "ak_xxxx",
|
|
43
|
-
"SLAPY_WORKSPACE_ID": "workspace_xxxx",
|
|
44
|
-
"SLAPY_USER_ID": "user_xxxx",
|
|
45
|
-
"SLAPY_API_URL": "https://slapy.
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
42
|
+
"SLAPY_AGENT_KEY": "ak_xxxx",
|
|
43
|
+
"SLAPY_WORKSPACE_ID": "workspace_xxxx",
|
|
44
|
+
"SLAPY_USER_ID": "user_xxxx",
|
|
45
|
+
"SLAPY_API_URL": "https://slapy.ai"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
49
|
}
|
|
50
50
|
```
|
|
51
51
|
|
package/bin/slapy-mcp.js
CHANGED
|
@@ -1,8 +1,30 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { runStdioServer } from "../dist/index.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { runStdioServer } from "../dist/index.js";
|
|
3
|
+
|
|
4
|
+
const VERSION = "1.0.1-alpha";
|
|
5
|
+
const args = new Set(process.argv.slice(2));
|
|
6
|
+
|
|
7
|
+
if (args.has("--version") || args.has("-v")) {
|
|
8
|
+
console.log(VERSION);
|
|
9
|
+
process.exit(0);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
if (args.has("--help") || args.has("-h")) {
|
|
13
|
+
console.log([
|
|
14
|
+
"slapy-mcp",
|
|
15
|
+
"",
|
|
16
|
+
"Model Context Protocol server for SLAPY.",
|
|
17
|
+
"",
|
|
18
|
+
"Usage:",
|
|
19
|
+
" slapy-mcp Start the MCP stdio server",
|
|
20
|
+
" slapy-mcp --version Print the package version",
|
|
21
|
+
" slapy-mcp --help Print this help",
|
|
22
|
+
].join("\n"));
|
|
23
|
+
process.exit(0);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
runStdioServer().catch((error) => {
|
|
27
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
28
|
+
console.error(`SLAPY MCP failed to start: ${message}`);
|
|
7
29
|
process.exit(1);
|
|
8
30
|
});
|
package/dist/server.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slapy/mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1-alpha",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Model Context Protocol server for SLAPY agent-native social publishing.",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"email": "syfcorp@proton.me"
|
|
11
11
|
},
|
|
12
12
|
"bin": {
|
|
13
|
-
"slapy-mcp": "
|
|
13
|
+
"slapy-mcp": "bin/slapy-mcp.js"
|
|
14
14
|
},
|
|
15
15
|
"main": "./dist/index.js",
|
|
16
16
|
"types": "./dist/index.d.ts",
|