Skip to main content
Glama

Claudeus WordPress MCP

by deus-h
prompts.ts1.42 kB
/** * Prompt handling for WordPress MCP * Manages prompt listings and retrieval */ import { prompts } from '../prompts/index.js'; /** * List all available prompts */ export function listPrompts() { return { prompts: Object.entries(prompts).map(([id, prompt]) => ({ name: id, description: prompt.description, arguments: prompt.arguments })) }; } /** * Get a specific prompt by name */ export function getPrompt(promptName: string, args?: Record<string, unknown>) { const prompt = prompts[promptName]; if (!prompt) { throw new Error(`Unknown prompt: ${promptName}`); } return { description: prompt.description, messages: [ { role: 'assistant', content: { type: 'text', text: `I am a WordPress content expert, ready to help you with ${prompt.name}.` } }, { role: 'user', content: { type: 'text', text: `Please help me with ${prompt.name} using these arguments:\n${ prompt.arguments.map(arg => `${arg.name}: ${args?.[arg.name] || '(not provided)'}` ).join('\n') }` } } ] }; }

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/deus-h/claudeus-wp-mcp'

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