MCP Catalogs
首页

mcp-prompts-catalog

by sparesparrow·2·综合分 32

MCP 生态系统的提示词集合,支持多种格式存储。

ai-llmproductivitydeveloper-tools
0
Forks
0
活跃 Issue
11 个月前
最近提交
2 天前
收录于

概述

这个 MCP 服务器为模型上下文协议生态系统提供了中心化的提示词和模板目录。它通过支持 JSON、YAML、TXT 和 MD 格式,解决了团队中'提示词腐化'的组织问题。该包作为所有默认提示词和序列的单一真实来源,使团队能更轻松地维护和版本化其宝贵的提示词集合。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:在团队环境中管理提示词库,防止碎片化
:按类别组织不同用例的提示词
:在 MCP 兼容应用程序中自动加载提示词
:支持哪些提示词格式?
:如何向目录添加新提示词?

什么时候选它

如果您的团队需要一个集中式、版本控制的提示词目录,支持多种格式并简化应用程序间的提示词管理,请选择这个 MCP 服务器。

什么时候不要选它

如果您需要自定义身份验证或广泛的提示词转换功能,这个服务器并不适合,因为它主要专注于基本提示词格式的存储和检索。

此 server 暴露的工具

从 README 抽取出 4 个工具
  • getPromptsDir() => string

    Returns the absolute path to the prompts directory

  • getCategories() => string[]

    Returns a list of available prompt categories

  • listPrompts(category: string) => string[]

    Lists all prompts in a specific category

  • loadPrompt(promptName: string, category: string) => object

    Loads a specific prompt from a category

说明:Tools inferred from the JavaScript example in the Usage section, as there's no explicit 'Tools' section in the README.

可对比工具

mcp-server-filesystemmcp-storage-jsonprompt-catalog-mcp

安装

使用 npm 安装:

npm install @sparesparrow/mcp-prompts-catalog

在您的 MCP 项目中使用:

const {
  getPromptsDir,
  getCategories,
  listPrompts,
  loadPrompt,
} = require('@sparesparrow/mcp-prompts-catalog');

console.log(getPromptsDir()); // 提示词目录的绝对路径
console.log(getCategories()); // 类别列表
console.log(loadPrompt('development-system-prompt', 'general'));

FAQ

支持哪些提示词格式?
支持 JSON、YAML、TXT 和 MD 格式。加载器会自动检测文件扩展名并相应地解析提示词。
如何向目录添加新提示词?
在 prompts/ 目录下的相应类别文件夹中创建一个遵循现有模式的新文件,然后提交拉取请求将其添加到目录中。

mcp-prompts-catalog 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。