a year ago
developer-tools这是一个基于Model Context Protocol (MCP)的服务器,用于根据用户任务需求提供预设的prompt模板,帮助Cline/Cursor/Windsurf...更高效地执行各种任务。服务器将预设的prompt作为工具(tools)返回,以便在Cursor和Windsurf等编辑器中更好地使用。
Overview
What is MCP Prompt Server?
MCP Prompt Server is a server based on the Model Context Protocol (MCP) that provides preset prompt templates according to user task requirements, helping tools like Cline, Cursor, and Windsurf to execute various tasks more efficiently.
How to use MCP Prompt Server?
To use the MCP Prompt Server, install the dependencies, start the server, and connect it with editors like Cursor or Windsurf to access the preset prompt tools.
Key features of MCP Prompt Server?
- Provides preset prompt templates for tasks like code review, API documentation generation, and code refactoring.
- Offers all prompt templates as MCP tools instead of MCP prompts format.
- Supports dynamic parameter replacement for more flexible prompt templates.
- Allows developers to freely add and modify prompt templates.
- Provides a tool API to reload prompts and query available prompts.
- Optimized for better integration with editors like Cursor and Windsurf.
Use cases of MCP Prompt Server?
- Automating code reviews in development environments.
- Generating API documentation from code snippets.
- Refactoring code efficiently using predefined templates.
FAQ from MCP Prompt Server?
- Can I add my own prompt templates?
Yes! You can create new prompt templates by adding YAML or JSON files in the
src/promptsdirectory.
- How do I reload the prompts?
You can use the
reload_promptstool to reload all preset prompts without restarting the server.
- Is there an API for managing prompts?
Yes! The server provides management tools like
reload_promptsandget_prompt_namesto manage your prompts.