prompts-mcp-server
The prompts-mcp-server maintains conversational context and continuity across development sessions, helping AI assistants manage project state, workflows, and tasks.
Initialize Project (
init_prompts/pmcp setup): Scans a project and generates a prompt system (context.md, workflow logs, todos, dev rules, module directories) without overwriting existing files.Bootstrap Session (
bootstrap): Loads the full context chain (context.md, daily logs, recent activity, summaries, todos, module records) — the first step an AI agent should call when starting a session.Clarify Requirements (
check_requirements): Runs a 5-point clarity check on a task description and generates follow-up questions instead of guessing when requirements are ambiguous.Generate Execution Plan (
make_plan): After requirements are confirmed, generates a concrete, actionable plan awaiting user approval.Log Dialogs (
log_dialog): Records a conversation session into the context chain (daily log, recent activity, summaries, session state) including decisions, code changes, and leftover todos.Log & Read Module Changes (
log_module/read_module): Records modifications per code module and retrieves historical records — read module history before making changes.Manage Todos (
update_todos): Add, complete, or remove items in the project's todos.md.Skill System (
pmcp skill): Manage and apply specialized role-based skills (e.g., analyst, architect, backend) for different tasks.Code Version Control: Facilitates commits, pushes, and publishing workflows including privacy audits (
pmcp audit,pmcp publish).Tool & Scene Recommendation (
pmcp tools/pmcp recommend): Discover and recommend appropriate development tools and scenarios for specific contexts.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@prompts-mcp-serverInitialize prompts for my project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
prompts-mcp-server
A universal MCP (Model Context Protocol) Server that automatically generates and manages a prompts system for any software project, enabling AI coding assistants to maintain persistent context across development sessions.
Features
Intelligent Project Scanning — Automatically identifies the target project's tech stack, frameworks, databases, and build tools
Context Persistence — Maintains a complete chain of project context, conversation logs, and module change history
Requirement Clarification Check — A 5-point standard requirement confirmation mechanism to prevent blind development
Plan Generation — Generates an executable plan after requirement confirmation, awaiting user approval before implementation
Rolling Window System — Maintains the last 5 conversation records and 10 status summaries, with automatic rotation
Module-level Tracking — Records change history by functional module for easy traceability
Dual Interface Mode — Supports both MCP Server (stdio protocol) and CLI usage
Non-destructive Initialization — Does not overwrite existing files when generating prompt files
Related MCP server: MCP Prompt Enhancer
MCP Tools
Tool | Description |
| Scans the target project and automatically generates the prompts file system |
| Loads all context files at once; called as the first step when an AI agent starts |
| 5-point standard requirement clarification check (Goal, Input/Output, Constraints, Acceptance Criteria, Impact Scope) |
| Generates an executable plan after requirements are clarified |
| Logs conversation entries to the transmission chain (rolling window + status summary) |
| Records module-level changes (directory-based management) |
| Reads module change history |
| Updates the TODO list (add/complete/remove) |
Installation
npm install
npm run buildUsage
Integration as an MCP Server
Add the following to your AI assistant's configuration (e.g., Cline, Claude Desktop, etc.):
{
"mcpServers": {
"prompts-mcp": {
"command": "node",
"args": ["/path/to/prompts-mcp-server/build/index.js"],
"env": {
"PROJECT_ROOT": "/path/to/your/project"
}
}
}
}Usage as CLI
# 初始化 prompts 系统
npm run cli init [--project-root /path]
# 加载所有上下文
npm run cli bootstrap
# 需求检查
npm run cli check "任务描述"
# 生成计划
npm run cli plan "任务描述"
# 记录对话
npm run cli log --title "xxx" --request "xxx" [--changes ...]
# 模块日志
npm run cli module-log <module> --change "xxx"
npm run cli module-read <module>
npm run cli module-list
# TODO 管理
npm run cli todos add|complete|remove "todo text"Development Mode
npm run dev # 运行 MCP Server
npm run dev:cli # 运行 CLIEnvironment Variables
Variable | Description | Default Value |
| Target project root directory |
|
Generated File Structure
After initialization, the following will be generated in the .github/prompts/ directory of the target project:
.github/prompts/
├── context.md # 项目上下文:技术栈、规则、TODO、日志索引
├── workflow-log.md # 工作流规则和 AI 对话规范
├── recent-5.md # 最近 5 条对话记录(滚动窗口)
├── summary-10.md # 每 10 条的状态摘要
├── log-state.json # JSON 状态追踪
├── todos.md # TODO 列表
├── dev-rules.md # 自动生成的开发规则
├── daily/ # 每日完整日志
│ └── YYYY-MM-DD.md
└── modules/ # 各模块变更历史
└── <module-name>.mdTech Stack
TypeScript (ES2022, ESM)
@modelcontextprotocol/sdk — Official MCP SDK
Node.js Runtime
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityDmaintenanceA powerful context management system that maintains persistent context across coding sessions, helping development teams track project structure, dependencies, and progress.65
- Flicense-qualityDmaintenanceIntelligently analyzes codebases to enhance LLM prompts with relevant context, featuring adaptive context management and task detection to produce higher quality AI responses.2
- FlicenseAqualityCmaintenanceRefines and improves AI prompts using workspace-aware context from your project's tech stack, structure, and dependencies. Includes tools to analyze prompt quality and generate well-structured prompts from raw ideas.42095
- AlicenseAquality-maintenanceProvides AI-driven project memory management through structured prompts that help Claude parse tasks from specs, review code changes, sync with commit history, and maintain project documentation without directly accessing files.7
Related MCP Connectors
The project brain for AI coding agents — memory, decisions, sprints, knowledge base via MCP.
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Adaptive plan/build/review cycles for AI coding assistants, persisted across sessions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/thana0623/pmcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server