npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ai-partner-mcp-prd

v0.1.0

Published

PRD MCP Server for Cursor - 为 Cursor 终端大模型提供 PRD 相关提示词的 MCP Server

Readme

PRD MCP Server

这是一个为 Cursor 终端大模型提供 PRD 相关提示词的 MCP Server。

安装

从 npm 安装:

npm install -g @ai-partner/ai-partner-prd

或者本地开发安装:

npm install

使用

作为全局命令使用

ai-partner-prd

本地开发启动

npm start

功能

MCP Server 提供以下 7 个工具:

1. init_prompt

  • 描述: 获取初始化提示词
  • 参数: 无
  • 文件路径: .cursor/rules/initialization.mdc
  • 功能: 从服务端获取初始化相关的提示词内容

2. prd_document_prompt

  • 描述: 获取产品PRD文档编写的提示词
  • 参数: filePath (文件路径)
  • 功能: 根据传入的文件路径获取对应的PRD文档编写提示词

3. diagram_prompt

  • 描述: 获取图形类的提示词
  • 参数: filePath (文件路径)
  • 功能: 根据传入的文件路径获取对应的图形类提示词

4. quality_check_prompt

  • 描述: 获取质量检查提示词
  • 参数: 无
  • 文件路径: .cursor/rules/prd-quality-check-report.mdc
  • 功能: 获取质量检查相关的提示词内容

5. summary_prompt

  • 描述: 获取总结提示词
  • 参数: 无
  • 文件路径: .cursor/rules/prd-progress-summary-report.mdc
  • 功能: 获取总结相关的提示词内容

6. next_step_prompt

  • 描述: 获取下一步建议的提示词
  • 参数: 无
  • 文件路径: .cursor/rules/prd-design-thinking-methods.mdc
  • 功能: 获取下一步建议的提示词内容

7. generate_spec_doc_command

  • 描述: 获取生成功能规格说明书的指令内容
  • 参数: 无
  • 文件路径: .cursor/rules/docs-directory-initialization.mdc
  • 触发条件: 用户输入 /生成功能规格说明书 时调用
  • 功能: 先查看指令内容,再根据指令获取对应的提示词进行生成

依赖

  • Node.js 环境
  • 需要设置环境变量 API_KEY
  • 远程服务运行在 http://218.244.139.170:8080

配置

mcp-server.json 配置文件

{
  "baseUrl": "http://218.244.139.170:8080",
  "toolFilePaths": {
    "init_prompt": ".cursor/rules/initialization.mdc",
    "next_step_prompt": ".cursor/rules/prd-design-thinking-methods.mdc",
    "generate_spec_doc_command": ".cursor/rules/docs-directory-initialization.mdc",
    "quality_check_prompt": ".cursor/rules/prd-quality-check-report.mdc",
    "summary_prompt": ".cursor/rules/prd-progress-summary-report.mdc"
  }
}

Cursor 配置示例

{
  "mcpServers": {
    "prd-mcp-server": {
      "command": "cmd",
      "args": [
        "/c",
        "node",
        "D:/prd/prd-src/node-src/server.js"
      ],
      "cwd": "D:/prd/prd-src/node-src",
      "env": {
        "API_KEY": "your_api_key_here"
      }
    }
  }
}

使用

  1. 安装依赖:npm install
  2. 在 Cursor 中配置 MCP Server(设置正确的 API_KEY)
  3. 重启 Cursor
  4. 使用相应的工具获取提示词内容