mcp-prompts

v4.4.1
@sparesparrow/mcp-prompts Checked 1 day ago Published 4 days ago

Simple MCP server for managing AI prompts and agent configurations with direct claude CLI orchestration

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_prompts List prompts

List the prompts this server serves, as summaries (id, name, description, tags, isTemplate, category, version, language). Filter with tags (any match), category, isTemplate and search (name, description and content). Returns up to `limit` prompts starting at `offset`; when has_more is true, call again with offset = next_offset. Use get_prompt for the content of one prompt.

ParameterTypeDescription
categorystringReturn prompts of this category, e.g. "embedded" (list_categories shows them with sizes)
isTemplatebooleantrue for templates only, false for plain prompts only
limitintegerMost prompts to return (1-50, default 20)
offsetintegerPrompts to skip; use next_offset from the previous page
searchstringText to look for in the name, description or content (case-insensitive)
tagsarrayReturn prompts carrying any of these tags

get_prompt Get a prompt

Get one prompt by id, as JSON: its content, description, tags, and for a template the `variables` it needs. Fails with an error naming the id when no such prompt is served.

ParameterTypeDescription
id *stringPrompt ID, as returned by list_prompts

apply_template Fill a template

Fill a template prompt's {{variables}} and return the resulting text. Only prompts with isTemplate true can be applied. A placeholder with no value stays in the text as written and is named in `missing`; a value the template does not use is named in `unused`. {{name^}} inserts the value with its first letter upper-cased.

ParameterTypeDescription
id *stringID of a template prompt
variablesobjectValues for the template variables, by name, e.g. {"module": "app"}

list_categories List categories

List the prompt categories this server serves with the number of prompts and templates in each. Start here, then call list_prompts with a category to see only that part of the library.

get_stats Library statistics

Counts of prompts and templates, the tags and categories in use, and where changes are saved (`storage`: memory, file or postgres).

add_prompt Add a prompt

Add a new prompt. Set isTemplate and variables to make it a template that apply_template can fill. Give `id` to choose a stable id (it fails if the id is taken); otherwise a random one is assigned. The result says whether the prompt was saved to disk or is kept in memory only.

ParameterTypeDescription
content *string
name *string
categorystring
descriptionstring
idstringStable id for the new prompt. Left out, the server assigns a random one.
isTemplateboolean
metadataobject
tagsarray
variablesarray

update_prompt Update a prompt

Change fields of an existing prompt; fields left out of `updates` keep their value, and the version goes up. Replaces the previous values, which are not kept.

ParameterTypeDescription
id *stringPrompt ID
updates *objectThe fields to change; fields left out keep their value

delete_prompt Delete a prompt

Delete a prompt by its id. This cannot be undone through the tools.

ParameterTypeDescription
id *stringPrompt ID, as returned by list_prompts