@junis/ghost-mcp 0.2.1 → 0.4.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/build/server.js CHANGED
@@ -46,6 +46,16 @@ const webhooks_1 = require("./tools/webhooks");
46
46
  (0, webhooks_1.registerWebhookTools)(server);
47
47
  const upload_1 = require("./tools/upload");
48
48
  (0, upload_1.registerUploadTools)(server);
49
+ const pages_1 = require("./tools/pages");
50
+ (0, pages_1.registerPageTools)(server);
51
+ const site_1 = require("./tools/site");
52
+ (0, site_1.registerSiteTools)(server);
53
+ const settings_1 = require("./tools/settings");
54
+ (0, settings_1.registerSettingsTools)(server);
55
+ const themes_1 = require("./tools/themes");
56
+ (0, themes_1.registerThemeTools)(server);
57
+ const redirects_1 = require("./tools/redirects");
58
+ (0, redirects_1.registerRedirectsAndRoutesTools)(server);
49
59
  const prompts_1 = require("./prompts");
50
60
  (0, prompts_1.registerPrompts)(server);
51
61
  // Set up and connect to the standard I/O transport
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerPageTools = registerPageTools;
4
+ // src/tools/pages.ts
5
+ const zod_1 = require("zod");
6
+ const ghostApi_1 = require("../ghostApi");
7
+ const browseParams = {
8
+ filter: zod_1.z.string().optional(),
9
+ limit: zod_1.z.number().optional(),
10
+ page: zod_1.z.number().optional(),
11
+ order: zod_1.z.string().optional(),
12
+ };
13
+ const readParams = {
14
+ id: zod_1.z.string().optional(),
15
+ slug: zod_1.z.string().optional(),
16
+ };
17
+ const addParams = {
18
+ title: zod_1.z.string(),
19
+ html: zod_1.z.string().optional(),
20
+ lexical: zod_1.z.string().optional(),
21
+ status: zod_1.z.string().optional(),
22
+ tags: zod_1.z.array(zod_1.z.object({ name: zod_1.z.string() })).optional(),
23
+ codeinjection_head: zod_1.z.string().optional(),
24
+ codeinjection_foot: zod_1.z.string().optional(),
25
+ meta_title: zod_1.z.string().optional(),
26
+ meta_description: zod_1.z.string().optional(),
27
+ slug: zod_1.z.string().optional(),
28
+ feature_image: zod_1.z.string().optional(),
29
+ og_title: zod_1.z.string().optional(),
30
+ og_description: zod_1.z.string().optional(),
31
+ custom_excerpt: zod_1.z.string().optional(),
32
+ };
33
+ const editParams = {
34
+ id: zod_1.z.string(),
35
+ title: zod_1.z.string().optional(),
36
+ html: zod_1.z.string().optional(),
37
+ lexical: zod_1.z.string().optional(),
38
+ status: zod_1.z.string().optional(),
39
+ updated_at: zod_1.z.string(),
40
+ tags: zod_1.z.array(zod_1.z.object({ name: zod_1.z.string() })).optional(),
41
+ codeinjection_head: zod_1.z.string().optional(),
42
+ codeinjection_foot: zod_1.z.string().optional(),
43
+ meta_title: zod_1.z.string().optional(),
44
+ meta_description: zod_1.z.string().optional(),
45
+ slug: zod_1.z.string().optional(),
46
+ feature_image: zod_1.z.string().optional(),
47
+ og_title: zod_1.z.string().optional(),
48
+ og_description: zod_1.z.string().optional(),
49
+ custom_excerpt: zod_1.z.string().optional(),
50
+ };
51
+ const deleteParams = {
52
+ id: zod_1.z.string(),
53
+ };
54
+ function registerPageTools(server) {
55
+ server.tool("pages_browse", "Browse Ghost pages (About, Contact, etc.)", browseParams, async (args, _extra) => {
56
+ const pages = await ghostApi_1.ghostApiClient.pages.browse(args);
57
+ return {
58
+ content: [{ type: "text", text: JSON.stringify(pages, null, 2) }],
59
+ };
60
+ });
61
+ server.tool("pages_read", "Read a single Ghost page by id or slug", readParams, async (args, _extra) => {
62
+ const page = await ghostApi_1.ghostApiClient.pages.read(args);
63
+ return {
64
+ content: [{ type: "text", text: JSON.stringify(page, null, 2) }],
65
+ };
66
+ });
67
+ server.tool("pages_add", "Create a new Ghost page", addParams, async (args, _extra) => {
68
+ const options = args.html ? { source: "html" } : undefined;
69
+ const page = await ghostApi_1.ghostApiClient.pages.add(args, options);
70
+ return {
71
+ content: [{ type: "text", text: JSON.stringify(page, null, 2) }],
72
+ };
73
+ });
74
+ server.tool("pages_edit", "Edit an existing Ghost page", editParams, async (args, _extra) => {
75
+ const options = args.html ? { source: "html" } : undefined;
76
+ const page = await ghostApi_1.ghostApiClient.pages.edit(args, options);
77
+ return {
78
+ content: [{ type: "text", text: JSON.stringify(page, null, 2) }],
79
+ };
80
+ });
81
+ server.tool("pages_delete", "Delete a Ghost page", deleteParams, async (args, _extra) => {
82
+ await ghostApi_1.ghostApiClient.pages.delete(args);
83
+ return {
84
+ content: [{ type: "text", text: `Page with id ${args.id} deleted.` }],
85
+ };
86
+ });
87
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerRedirectsAndRoutesTools = registerRedirectsAndRoutesTools;
4
+ // src/tools/redirects.ts
5
+ const zod_1 = require("zod");
6
+ const ghostHttp_1 = require("../utils/ghostHttp");
7
+ function registerRedirectsAndRoutesTools(server) {
8
+ server.tool("redirects_download", "Download current Ghost redirects configuration (JSON/YAML)", {}, async (_args, _extra) => {
9
+ const data = await (0, ghostHttp_1.ghostGet)("redirects/download/");
10
+ return {
11
+ content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
12
+ };
13
+ });
14
+ server.tool("redirects_upload", "Upload a redirects.yaml or redirects.json file to Ghost", { file: zod_1.z.string().describe("Absolute local file path or URL to the redirects file") }, async (args, _extra) => {
15
+ const result = await (0, ghostHttp_1.ghostUploadFile)("redirects/upload/", args.file);
16
+ return {
17
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
18
+ };
19
+ });
20
+ server.tool("routes_upload", "Upload a routes.yaml file to Ghost", { file: zod_1.z.string().describe("Absolute local file path or URL to the routes.yaml file") }, async (args, _extra) => {
21
+ const result = await (0, ghostHttp_1.ghostUploadFile)("settings/routes/yaml/", args.file);
22
+ return {
23
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
24
+ };
25
+ });
26
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerSettingsTools = registerSettingsTools;
4
+ // src/tools/settings.ts
5
+ const zod_1 = require("zod");
6
+ const ghostHttp_1 = require("../utils/ghostHttp");
7
+ const navigationItem = zod_1.z.object({
8
+ label: zod_1.z.string(),
9
+ url: zod_1.z.string(),
10
+ });
11
+ const editParams = {
12
+ title: zod_1.z.string().optional(),
13
+ description: zod_1.z.string().optional(),
14
+ logo: zod_1.z.string().optional(),
15
+ icon: zod_1.z.string().optional(),
16
+ cover_image: zod_1.z.string().optional(),
17
+ accent_color: zod_1.z.string().optional(),
18
+ locale: zod_1.z.string().optional(),
19
+ timezone: zod_1.z.string().optional(),
20
+ codeinjection_head: zod_1.z.string().optional(),
21
+ codeinjection_foot: zod_1.z.string().optional(),
22
+ facebook: zod_1.z.string().optional(),
23
+ twitter: zod_1.z.string().optional(),
24
+ navigation: zod_1.z.array(navigationItem).optional(),
25
+ secondary_navigation: zod_1.z.array(navigationItem).optional(),
26
+ meta_title: zod_1.z.string().optional(),
27
+ meta_description: zod_1.z.string().optional(),
28
+ og_image: zod_1.z.string().optional(),
29
+ og_title: zod_1.z.string().optional(),
30
+ og_description: zod_1.z.string().optional(),
31
+ twitter_image: zod_1.z.string().optional(),
32
+ twitter_title: zod_1.z.string().optional(),
33
+ twitter_description: zod_1.z.string().optional(),
34
+ posts_per_page: zod_1.z.number().optional(),
35
+ members_support_address: zod_1.z.string().optional(),
36
+ };
37
+ function registerSettingsTools(server) {
38
+ server.tool("settings_read", "Read all Ghost site settings (SEO, branding, code injection, navigation, social, etc.)", {}, async (_args, _extra) => {
39
+ const data = await (0, ghostHttp_1.ghostGet)("settings/");
40
+ return {
41
+ content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
42
+ };
43
+ });
44
+ server.tool("settings_edit", "Edit Ghost site settings (title, description, logo, icon, meta, OG, code injection, navigation, etc.)", editParams, async (args, _extra) => {
45
+ // Ghost settings API expects { settings: [{ key, value }, ...] }
46
+ const settings = Object.entries(args)
47
+ .filter(([_, v]) => v !== undefined)
48
+ .map(([key, value]) => ({ key, value }));
49
+ const data = await (0, ghostHttp_1.ghostPut)("settings/", { settings });
50
+ return {
51
+ content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
52
+ };
53
+ });
54
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerSiteTools = registerSiteTools;
4
+ const ghostApi_1 = require("../ghostApi");
5
+ function registerSiteTools(server) {
6
+ server.tool("site_read", "Read site basic info (title, description, logo, url, version, etc.)", {}, async (_args, _extra) => {
7
+ const site = await ghostApi_1.ghostApiClient.site.read();
8
+ return {
9
+ content: [{ type: "text", text: JSON.stringify(site, null, 2) }],
10
+ };
11
+ });
12
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.registerThemeTools = registerThemeTools;
7
+ // src/tools/themes.ts
8
+ const zod_1 = require("zod");
9
+ const ghostApi_1 = require("../ghostApi");
10
+ const ghostHttp_1 = require("../utils/ghostHttp");
11
+ const fs_1 = __importDefault(require("fs"));
12
+ function registerThemeTools(server) {
13
+ server.tool("themes_browse", "List all installed Ghost themes", {}, async (_args, _extra) => {
14
+ const data = await (0, ghostHttp_1.ghostGet)("themes/");
15
+ return {
16
+ content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
17
+ };
18
+ });
19
+ server.tool("themes_upload", "Upload a Ghost theme zip file", { file: zod_1.z.string().describe("Absolute local file path or URL to the theme zip file") }, async (args, _extra) => {
20
+ const { filePath, isTemp } = await (0, ghostHttp_1.resolveFileInput)(args.file);
21
+ try {
22
+ const result = await ghostApi_1.ghostApiClient.themes.upload({ ...args, file: filePath });
23
+ return {
24
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
25
+ };
26
+ }
27
+ finally {
28
+ if (isTemp)
29
+ fs_1.default.unlinkSync(filePath);
30
+ }
31
+ });
32
+ server.tool("themes_activate", "Activate an installed Ghost theme by name", { name: zod_1.z.string().describe("Theme name to activate") }, async (args, _extra) => {
33
+ const result = await ghostApi_1.ghostApiClient.themes.activate(args.name);
34
+ return {
35
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
36
+ };
37
+ });
38
+ server.tool("themes_download", "Download a Ghost theme as zip. Returns the saved file path.", {
39
+ name: zod_1.z.string().describe("Theme name to download"),
40
+ output_path: zod_1.z.string().describe("Absolute path to save the downloaded zip"),
41
+ }, async (args, _extra) => {
42
+ const data = await (0, ghostHttp_1.ghostDownload)(`themes/${args.name}/download/`);
43
+ fs_1.default.writeFileSync(args.output_path, data);
44
+ return {
45
+ content: [{ type: "text", text: `Theme saved to ${args.output_path}` }],
46
+ };
47
+ });
48
+ }
@@ -1,58 +1,124 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
3
36
  exports.registerUploadTools = registerUploadTools;
4
37
  // src/tools/upload.ts
5
38
  const zod_1 = require("zod");
6
39
  const ghostApi_1 = require("../ghostApi");
40
+ const ghostHttp_1 = require("../utils/ghostHttp");
41
+ const fs = __importStar(require("fs"));
7
42
  const imageUploadParams = {
8
- file: zod_1.z.string().describe("Absolute path to the image file"),
43
+ file: zod_1.z.string().describe("Absolute local file path or URL to the image"),
9
44
  purpose: zod_1.z.string().optional().describe("Purpose of the image (default: 'image')"),
10
45
  ref: zod_1.z.string().optional().describe("Reference string returned in the response"),
11
46
  };
12
47
  const mediaUploadParams = {
13
- file: zod_1.z.string().describe("Absolute path to the audio/video file"),
14
- thumbnail: zod_1.z.string().optional().describe("Absolute path to a thumbnail image for the media"),
48
+ file: zod_1.z.string().describe("Absolute local file path or URL to the audio/video file"),
49
+ thumbnail: zod_1.z.string().optional().describe("Absolute local file path or URL to a thumbnail image"),
15
50
  purpose: zod_1.z.string().optional().describe("Purpose of the media"),
16
51
  };
17
52
  const fileUploadParams = {
18
- file: zod_1.z.string().describe("Absolute path to the file"),
53
+ file: zod_1.z.string().describe("Absolute local file path or URL to the file"),
19
54
  ref: zod_1.z.string().optional().describe("Reference string returned in the response"),
20
55
  };
21
56
  function registerUploadTools(server) {
22
57
  // Upload image
23
58
  server.tool("images_upload", "Upload an image to Ghost (jpg, jpeg, png, gif, svg, svgz, ico, webp). Returns the CDN URL.", imageUploadParams, async (args, _extra) => {
24
- const result = await ghostApi_1.ghostApiClient.images.upload(args);
25
- return {
26
- content: [
27
- {
28
- type: "text",
29
- text: JSON.stringify(result, null, 2),
30
- },
31
- ],
32
- };
59
+ const { filePath, isTemp } = await (0, ghostHttp_1.resolveFileInput)(args.file);
60
+ try {
61
+ const result = await ghostApi_1.ghostApiClient.images.upload({ ...args, file: filePath });
62
+ return {
63
+ content: [
64
+ {
65
+ type: "text",
66
+ text: JSON.stringify(result, null, 2),
67
+ },
68
+ ],
69
+ };
70
+ }
71
+ finally {
72
+ if (isTemp)
73
+ fs.unlinkSync(filePath);
74
+ }
33
75
  });
34
76
  // Upload media (audio/video)
35
77
  server.tool("media_upload", "Upload audio/video to Ghost (mp4, webm, ogv, mp3, wav, ogg, m4a). Returns the CDN URL.", mediaUploadParams, async (args, _extra) => {
36
- const result = await ghostApi_1.ghostApiClient.media.upload(args);
37
- return {
38
- content: [
39
- {
40
- type: "text",
41
- text: JSON.stringify(result, null, 2),
42
- },
43
- ],
44
- };
78
+ const { filePath, isTemp } = await (0, ghostHttp_1.resolveFileInput)(args.file);
79
+ let thumbnailResolved = null;
80
+ if (args.thumbnail) {
81
+ thumbnailResolved = await (0, ghostHttp_1.resolveFileInput)(args.thumbnail);
82
+ }
83
+ try {
84
+ const result = await ghostApi_1.ghostApiClient.media.upload({
85
+ ...args,
86
+ file: filePath,
87
+ ...(thumbnailResolved ? { thumbnail: thumbnailResolved.filePath } : {}),
88
+ });
89
+ return {
90
+ content: [
91
+ {
92
+ type: "text",
93
+ text: JSON.stringify(result, null, 2),
94
+ },
95
+ ],
96
+ };
97
+ }
98
+ finally {
99
+ if (isTemp)
100
+ fs.unlinkSync(filePath);
101
+ if (thumbnailResolved?.isTemp)
102
+ fs.unlinkSync(thumbnailResolved.filePath);
103
+ }
45
104
  });
46
105
  // Upload file
47
106
  server.tool("files_upload", "Upload a file to Ghost (pdf, docx, xlsx, csv, epub, zip, etc. 50+ formats). Returns the CDN URL.", fileUploadParams, async (args, _extra) => {
48
- const result = await ghostApi_1.ghostApiClient.files.upload(args);
49
- return {
50
- content: [
51
- {
52
- type: "text",
53
- text: JSON.stringify(result, null, 2),
54
- },
55
- ],
56
- };
107
+ const { filePath, isTemp } = await (0, ghostHttp_1.resolveFileInput)(args.file);
108
+ try {
109
+ const result = await ghostApi_1.ghostApiClient.files.upload({ ...args, file: filePath });
110
+ return {
111
+ content: [
112
+ {
113
+ type: "text",
114
+ text: JSON.stringify(result, null, 2),
115
+ },
116
+ ],
117
+ };
118
+ }
119
+ finally {
120
+ if (isTemp)
121
+ fs.unlinkSync(filePath);
122
+ }
57
123
  });
58
124
  }
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.resolveFileInput = resolveFileInput;
7
+ exports.ghostGet = ghostGet;
8
+ exports.ghostPut = ghostPut;
9
+ exports.ghostPost = ghostPost;
10
+ exports.ghostUploadFile = ghostUploadFile;
11
+ exports.ghostDownload = ghostDownload;
12
+ // src/utils/ghostHttp.ts
13
+ const jsonwebtoken_1 = __importDefault(require("jsonwebtoken"));
14
+ const axios_1 = __importDefault(require("axios"));
15
+ const fs_1 = __importDefault(require("fs"));
16
+ const path_1 = __importDefault(require("path"));
17
+ const os_1 = __importDefault(require("os"));
18
+ const config_1 = require("../config");
19
+ /**
20
+ * If input is a URL, download to a temp file and return the path.
21
+ * If input is a local path, return as-is.
22
+ */
23
+ async function resolveFileInput(input) {
24
+ if (!input.startsWith("http://") && !input.startsWith("https://")) {
25
+ return { filePath: input, isTemp: false };
26
+ }
27
+ const urlPath = new URL(input).pathname;
28
+ const ext = path_1.default.extname(urlPath) || ".tmp";
29
+ const tempFile = path_1.default.join(os_1.default.tmpdir(), `ghost-mcp-${Date.now()}${ext}`);
30
+ const response = await axios_1.default.get(input, { responseType: "stream" });
31
+ const writer = fs_1.default.createWriteStream(tempFile);
32
+ response.data.pipe(writer);
33
+ await new Promise((resolve, reject) => {
34
+ writer.on("finish", resolve);
35
+ writer.on("error", reject);
36
+ });
37
+ return { filePath: tempFile, isTemp: true };
38
+ }
39
+ function generateToken() {
40
+ const [id, secret] = config_1.GHOST_ADMIN_API_KEY.split(":");
41
+ return jsonwebtoken_1.default.sign({}, Buffer.from(secret, "hex"), {
42
+ keyid: id,
43
+ algorithm: "HS256",
44
+ expiresIn: "5m",
45
+ audience: `/${config_1.GHOST_API_VERSION}/admin/`,
46
+ });
47
+ }
48
+ function apiUrl(endpoint) {
49
+ return `${config_1.GHOST_API_URL.replace(/\/+$/, "")}/ghost/api/admin/${endpoint.replace(/^\/+/, "")}`;
50
+ }
51
+ function authHeaders() {
52
+ return { Authorization: `Ghost ${generateToken()}` };
53
+ }
54
+ async function ghostGet(endpoint, params) {
55
+ const res = await axios_1.default.get(apiUrl(endpoint), {
56
+ headers: authHeaders(),
57
+ params,
58
+ });
59
+ return res.data;
60
+ }
61
+ async function ghostPut(endpoint, data) {
62
+ const res = await axios_1.default.put(apiUrl(endpoint), data, {
63
+ headers: { ...authHeaders(), "Content-Type": "application/json" },
64
+ });
65
+ return res.data;
66
+ }
67
+ async function ghostPost(endpoint, data) {
68
+ const res = await axios_1.default.post(apiUrl(endpoint), data, {
69
+ headers: { ...authHeaders(), "Content-Type": "application/json" },
70
+ });
71
+ return res.data;
72
+ }
73
+ async function ghostUploadFile(endpoint, filePath, fieldName = "file") {
74
+ const { filePath: resolvedPath, isTemp } = await resolveFileInput(filePath);
75
+ try {
76
+ const FormData = (await import("form-data")).default;
77
+ const form = new FormData();
78
+ form.append(fieldName, fs_1.default.createReadStream(resolvedPath));
79
+ const res = await axios_1.default.post(apiUrl(endpoint), form, {
80
+ headers: {
81
+ ...authHeaders(),
82
+ ...form.getHeaders(),
83
+ },
84
+ });
85
+ return res.data;
86
+ }
87
+ finally {
88
+ if (isTemp)
89
+ fs_1.default.unlinkSync(resolvedPath);
90
+ }
91
+ }
92
+ async function ghostDownload(endpoint) {
93
+ const res = await axios_1.default.get(apiUrl(endpoint), {
94
+ headers: authHeaders(),
95
+ responseType: "arraybuffer",
96
+ });
97
+ return res.data;
98
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junis/ghost-mcp",
3
- "version": "0.2.1",
3
+ "version": "0.4.0",
4
4
  "description": "MCP server for using the Ghost API",
5
5
  "main": "build/server.js",
6
6
  "bin": {
@@ -26,10 +26,12 @@
26
26
  "@modelcontextprotocol/sdk": "^1.10.1",
27
27
  "@tryghost/admin-api": "^1.13.13",
28
28
  "axios": "^1.8.4",
29
+ "jsonwebtoken": "^9.0.3",
29
30
  "zod": "^3.24.3"
30
31
  },
31
32
  "devDependencies": {
32
33
  "@types/axios": "^0.9.36",
34
+ "@types/jsonwebtoken": "^9.0.10",
33
35
  "@types/node": "^22.14.1",
34
36
  "typescript": "^5.8.3"
35
37
  }