Skip to main content
Glama
ghostContentApi.ts748 B
import GhostContentAPI from '@tryghost/content-api'; import { GHOST_API_URL, GHOST_ADMIN_API_KEY, GHOST_API_VERSION } from './config.js'; // Live binding that tools import. export let ghostContentApiClient: any; export type GhostContentApiConfig = { url: string; key: string; version: string; }; let currentContentConfig: GhostContentApiConfig | null = null; export function initGhostContentApi(config: GhostContentApiConfig) { ghostContentApiClient = new (GhostContentAPI as any)({ url: config.url, key: config.key, version: config.version }); currentContentConfig = { ...config }; } export function getGhostContentApiConfig(): GhostContentApiConfig | null { return currentContentConfig; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hithereiamaliff/mcp-ghostcms'

If you have feedback or need assistance with the MCP directory API, please join our Discord server