get_prompt_categories
Retrieve all available prompt categories from the Open MCP Server to organize and access reusable templates for tasks like planning, code review, and summarization.
Instructions
Get all available prompt categories
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/prompts/prompts.ts:315-333 (handler)Implements the 'get_prompt_categories' MCP tool by registering it on the server with an inline async handler that fetches categories from the prompt registry and formats the response as MCP content.server.tool("get_prompt_categories", "Get all available prompt categories", {}, async () => { const categories = registry.prompts.getCategories(); return { content: [ { type: "text", text: JSON.stringify( { categories, count: categories.length, }, null, 2 ), }, ], }; });