Skip to main content
Glama
thana0623

prompts-mcp-server

by thana0623

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

init_prompts

Scans the target project and automatically generates the prompts file system

bootstrap

Loads all context files at once; called as the first step when an AI agent starts

check_requirements

5-point standard requirement clarification check (Goal, Input/Output, Constraints, Acceptance Criteria, Impact Scope)

make_plan

Generates an executable plan after requirements are clarified

log_dialog

Logs conversation entries to the transmission chain (rolling window + status summary)

log_module

Records module-level changes (directory-based management)

read_module

Reads module change history

update_todos

Updates the TODO list (add/complete/remove)

Installation

npm install
npm run build

Usage

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    # 运行 CLI

Environment Variables

Variable

Description

Default Value

PROJECT_ROOT

Target project root directory

process.cwd()

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>.md

Tech Stack

  • TypeScript (ES2022, ESM)

  • @modelcontextprotocol/sdk — Official MCP SDK

  • Node.js Runtime

License

MIT

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • F
    license
    -
    quality
    D
    maintenance
    Intelligently analyzes codebases to enhance LLM prompts with relevant context, featuring adaptive context management and task detection to produce higher quality AI responses.
    2
  • F
    license
    A
    quality
    C
    maintenance
    Refines 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.
    4
    209
    5

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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