Skip to main content
Glama

Ghost MCP Server

// src/tools/invites.ts import { z } from "zod"; import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { ghostApiClient } from "../ghostApi"; // Parameter schemas as ZodRawShape (object literals) const browseParams = { filter: z.string().optional(), limit: z.number().optional(), page: z.number().optional(), order: z.string().optional(), }; const addParams = { role_id: z.string(), email: z.string(), }; const deleteParams = { id: z.string(), }; export function registerInviteTools(server: McpServer) { // Browse invites server.tool( "invites_browse", browseParams, async (args, _extra) => { const invites = await ghostApiClient.invites.browse(args); return { content: [ { type: "text", text: JSON.stringify(invites, null, 2), }, ], }; } ); // Add invite server.tool( "invites_add", addParams, async (args, _extra) => { const invite = await ghostApiClient.invites.add(args); return { content: [ { type: "text", text: JSON.stringify(invite, null, 2), }, ], }; } ); // Delete invite server.tool( "invites_delete", deleteParams, async (args, _extra) => { await ghostApiClient.invites.delete(args); return { content: [ { type: "text", text: `Invite with id ${args.id} deleted.`, }, ], }; } ); }

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/MFYDev/ghost-mcp'

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