cms
Ghost CMS MCP Integration for OpenAI Agents SDK
Connect Ghost CMS to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Ghost CMS to OpenAI Agents SDK
Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.
Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with
--write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.
Ghost CMS MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-ghost": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=ghost",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=ghost --write=deny Why Use KosmoKrator Here
Expose only Ghost CMS instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Ghost CMS Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the Ghost CMS integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__ghost__ghost_list_posts | ghost.ghost_list_posts | Read | List blog posts from Ghost CMS. Supports filtering by tag, author, status, and free-text search. Returns paginated results with post titles, slugs, status, and metadata. |
integration__ghost__ghost_get_post | ghost.ghost_get_post | Read | Get a single Ghost blog post by ID. Returns full post content, metadata, tags, and authors. |
integration__ghost__ghost_create_post | ghost.ghost_create_post | Write | Create a new blog post in Ghost CMS. Supports setting title, HTML content, status (draft or published), featured flag, tags, and authors. |
integration__ghost__ghost_update_post | ghost.ghost_update_post | Write | Update an existing blog post in Ghost CMS. Provide the post ID and any fields to change (title, content, status, featured flag, tags). |
integration__ghost__ghost_list_pages | ghost.ghost_list_pages | Read | List static pages from Ghost CMS. Supports filtering, pagination, and ordering. Pages are non-blog content like "About", "Contact", etc. |
integration__ghost__ghost_list_members | ghost.ghost_list_members | Read | List newsletter members from Ghost CMS. Supports filtering by subscription status, email search, and pagination. Returns member names, emails, labels, and subscription info. |
integration__ghost__ghost_get_current_user | ghost.ghost_get_current_user | Read | Get the currently authenticated Ghost admin user. Useful for verifying API credentials and checking user role/permissions. |