@jgardner04/ghost-mcp-server 1.12.2 → 1.12.4
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 +2 -2
- package/package.json +8 -8
- package/src/__tests__/mcp_server.test.js +1165 -251
- package/src/__tests__/mcp_server_pages.test.js +12 -12
- package/src/index.js +3 -16
- package/src/mcp_server.js +1655 -407
- package/src/mcp_server_enhanced.js +1 -1
- package/src/services/__tests__/postService.test.js +1 -1
- package/src/__tests__/mcp_server_improved.test.js +0 -1301
- package/src/mcp_server_improved.js +0 -1720
|
@@ -462,7 +462,7 @@ const subscriptionTool = new Tool({
|
|
|
462
462
|
mcpServer.addTool(subscriptionTool);
|
|
463
463
|
|
|
464
464
|
// Keep existing tools (create_post, upload_image, etc.) from previous implementation
|
|
465
|
-
// ... (include the tools from
|
|
465
|
+
// ... (include the tools from mcp_server.js)
|
|
466
466
|
|
|
467
467
|
// --- Enhanced Transport with Middleware ---
|
|
468
468
|
|
|
@@ -28,7 +28,7 @@ describe('postService', () => {
|
|
|
28
28
|
|
|
29
29
|
// NOTE: Input validation tests have been moved to MCP layer tests.
|
|
30
30
|
// The postService no longer performs Joi validation - input is validated
|
|
31
|
-
// by Zod schemas at the MCP tool layer (see
|
|
31
|
+
// by Zod schemas at the MCP tool layer (see mcp_server.js).
|
|
32
32
|
|
|
33
33
|
describe('createPostService - basic functionality', () => {
|
|
34
34
|
it('should accept valid input and create a post', async () => {
|