如何配置多目录加载模板?
设置环境变量`TEMPLATE_DIRS`,值为逗号分隔的目录路径,例如`TEMPLATE_DIRS="./dir1,./dir2"`。也可通过命令行参数`--template-dirs`指定,优先级高于单目录配置。
@enjoyzl
基本信息
暂无概览
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-server-prompts": {
"command": "node",
"args": [
"dist/index.js",
"--template-dirs=./dir1,./dir2,./dir3"
]
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
基于MCP协议的AI提示词库服务器,为软件开发全生命周期提供结构化提示词模板。支持MCP协议和HTTP REST API双重访问方式,内置60+专业模板,覆盖需求分析、架构设计、开发、测试、部署等环节。
通过git clone、npm install && npm run build安装,然后npm start启动MCP服务器或npm run start:http启动HTTP服务器。支持通过环境变量TEMPLATE_DIR(单目录)或TEMPLATE_DIRS(多目录)配置模板加载路径,也可用--template-dirs命令行参数。MCP客户端可调用enhancePrompt、searchTemplates等工具,HTTP客户端访问对应REST接口。
设置环境变量`TEMPLATE_DIRS`,值为逗号分隔的目录路径,例如`TEMPLATE_DIRS="./dir1,./dir2"`。也可通过命令行参数`--template-dirs`指定,优先级高于单目录配置。
需要Node.js环境,通过npm安装依赖后编译运行。模板文件使用Markdown格式,存放在本地文件系统中。
支持三种占位符:`{{用户输入}}`用于主要用户输入,`${变量名}`表示自定义变量,`{{}}`表示空占位符等待填充。
执行`npm run start:http`启动HTTP服务器,默认监听3000端口(可通过`PORT`环境变量修改),提供`/api/enhance`、`/api/categories`等REST接口。
是的,README提供了Windows(cmd)和Mac/Linux(bash)的完整配置示例,包括单目录和多目录模式。

Health by Dr Brad works out a health plan from your own results: which screening is due at your age, and evidence-based suggestions, each with the reason and the published guideline or study behind it. Your record is one
MCP Toolbox for Databases is an open source MCP server for databases.
Open-source MCP to use Blender with any LLM

Couples therapist Figs O'Sullivan (LMFT, 17 years, endorsed by Sue Johnson, creator of EFT) inside your AI. Ask relationship questions answered from his clinical writing, name the pattern in a fight, get a three-step rep
🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
评论