@oksigenia/ghost-mcp 0.1.0 → 0.1.1
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 +14 -10
- package/dist/index.js +3 -1
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -11,23 +11,16 @@ It reuses the [`ghost-md-publisher`](https://github.com/OksigeniaSL/ghost-md-pub
|
|
|
11
11
|
- Node.js 20.9+
|
|
12
12
|
- A Ghost site with an Admin API key (Settings → Integrations → Add custom integration).
|
|
13
13
|
|
|
14
|
-
## Install & build
|
|
15
|
-
|
|
16
|
-
```bash
|
|
17
|
-
npm install
|
|
18
|
-
npm run build
|
|
19
|
-
```
|
|
20
|
-
|
|
21
14
|
## Configure your MCP client
|
|
22
15
|
|
|
23
|
-
|
|
16
|
+
No install needed — your MCP client runs it on demand with `npx`. Point it at the package and pass your Ghost credentials as env. Example (Claude Desktop `claude_desktop_config.json`):
|
|
24
17
|
|
|
25
18
|
```json
|
|
26
19
|
{
|
|
27
20
|
"mcpServers": {
|
|
28
21
|
"ghost": {
|
|
29
|
-
"command": "
|
|
30
|
-
"args": ["/
|
|
22
|
+
"command": "npx",
|
|
23
|
+
"args": ["-y", "@oksigenia/ghost-mcp"],
|
|
31
24
|
"env": {
|
|
32
25
|
"GHOST_URL": "https://your-site.com",
|
|
33
26
|
"GHOST_ADMIN_API_KEY": "id:secret",
|
|
@@ -38,6 +31,17 @@ Point your MCP client at the built server and pass your Ghost credentials as env
|
|
|
38
31
|
}
|
|
39
32
|
```
|
|
40
33
|
|
|
34
|
+
To pin a version, use `"@oksigenia/ghost-mcp@0.1.1"`. To install it globally instead: `npm install -g @oksigenia/ghost-mcp` (the command is then `oksigenia-ghost-mcp`).
|
|
35
|
+
|
|
36
|
+
## From source (development)
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
npm install
|
|
40
|
+
npm run build
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Then point your MCP client at the built server with `"command": "node"` and `"args": ["/absolute/path/to/oksigenia-ghost-mcp/dist/index.js"]`.
|
|
44
|
+
|
|
41
45
|
## Tools
|
|
42
46
|
|
|
43
47
|
Content ops:
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import dotenv from "dotenv";
|
|
|
5
5
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
6
6
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
|
+
import { createRequire } from "module";
|
|
8
9
|
|
|
9
10
|
// src/ghost.ts
|
|
10
11
|
import { getClient, verifyClient } from "@oksigenia/ghost-md-publisher/lib/ghost-client";
|
|
@@ -243,7 +244,8 @@ async function publishTranslationSet(args) {
|
|
|
243
244
|
// src/index.ts
|
|
244
245
|
dotenv.config({ quiet: true });
|
|
245
246
|
console.log = (...args) => console.error(...args);
|
|
246
|
-
var
|
|
247
|
+
var { version } = createRequire(import.meta.url)("../package.json");
|
|
248
|
+
var server = new McpServer({ name: "oksigenia-ghost-mcp", version });
|
|
247
249
|
var ok = (v) => ({
|
|
248
250
|
content: [{ type: "text", text: typeof v === "string" ? v : JSON.stringify(v, null, 2) }]
|
|
249
251
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oksigenia/ghost-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
"dev": "tsup --watch",
|
|
26
26
|
"start": "node dist/index.js",
|
|
27
27
|
"typecheck": "tsc --noEmit",
|
|
28
|
-
"test": "vitest run"
|
|
28
|
+
"test": "vitest run",
|
|
29
|
+
"prepare": "git config core.hooksPath .githooks || true"
|
|
29
30
|
},
|
|
30
31
|
"keywords": [
|
|
31
32
|
"ghost",
|
|
@@ -43,10 +44,10 @@
|
|
|
43
44
|
"url": "git+https://github.com/OksigeniaSL/oksigenia-ghost-mcp.git"
|
|
44
45
|
},
|
|
45
46
|
"dependencies": {
|
|
46
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
47
|
-
"@oksigenia/ghost-md-publisher": "^0.3.
|
|
47
|
+
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
48
|
+
"@oksigenia/ghost-md-publisher": "^0.3.4",
|
|
48
49
|
"dotenv": "^17.4.2",
|
|
49
|
-
"zod": "^
|
|
50
|
+
"zod": "^4.6.7"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
53
|
"@types/node": "^22.20.1",
|