Skip to main content
Glama
post-tools.js1.08 kB
/** * Ghost Post Tools - Refactored using generic content operations */ import { createContentHandler, listContentHandler, updateContentHandler, deleteContentHandler, createToolDefinition, listToolDefinition, updateToolDefinition, deleteToolDefinition } from '../core/content-operations.js'; // Posts support tags const postOptions = { supportsTags: true }; // Handler functions export const handleCreateGhostPost = createContentHandler('posts', postOptions); export const handleListGhostPosts = listContentHandler('posts'); export const handleUpdateGhostPost = updateContentHandler('posts', 'post_id', postOptions); export const handleDeleteGhostPost = deleteContentHandler('posts', 'post_id'); // Tool definitions export const createGhostPostToolDefinition = createToolDefinition('posts', postOptions); export const listGhostPostsToolDefinition = listToolDefinition('posts'); export const updateGhostPostToolDefinition = updateToolDefinition('posts', postOptions); export const deleteGhostPostToolDefinition = deleteToolDefinition('posts');

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/oculairmedia/Ghost-MCP'

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