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

mcp-prd-server

v0.2.8

Published

MCP Server for PRD content management

Readme

MCP PRD Server

这是一个基于MCP(Model Context Protocol)的PRD内容管理服务器,用于获取和管理PRD文档内容。

功能特性

  • 获取PRD文档内容
  • 支持按章节获取PRD内容
  • 提供PRD资源访问
  • 自动爬取和缓存PRD数据
  • 支持项目列表和版本管理

安装

作为依赖安装

npm install mcp-prd-server

全局安装

npm install -g mcp-prd-server

使用方法

作为 MCP 服务器使用

# 直接运行
node build/index.js

# 或者使用全局命令
prd-server

在代码中使用

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";

// 创建MCP服务器
const server = new McpServer({
  name: "PRD-Server",
  version: "1.0.0",
});

// 启动服务器
const transport = new StdioServerTransport();
await server.connect(transport);

开发

本地开发

# 安装依赖
npm install

# 开发模式(监听文件变化)
npm run dev

# 构建项目
npm run build

# 运行项目
npm start

发布到 npm

1. 准备发布

# 构建项目
npm run build

# 检查将要发布的文件
npm pack --dry-run

2. 登录 npm

npm login

3. 发布包

# 发布到 npm
npm publish

# 或者发布到特定 scope
npm publish --access public

4. 更新版本

# 更新补丁版本 (1.0.0 -> 1.0.1)
npm version patch

# 更新次要版本 (1.0.0 -> 1.1.0)
npm version minor

# 更新主要版本 (1.0.0 -> 2.0.0)
npm version major

配置说明

package.json 关键字段

  • main: 指定包的入口文件
  • bin: 指定可执行文件
  • files: 指定要发布的文件
  • prepublishOnly: 发布前自动执行的脚本

发布文件结构

mcp-prd-server/
├── build/           # 编译后的 JavaScript 文件
├── README.md        # 项目说明文档
└── package.json     # 包配置文件

许可证

MIT License

贡献

欢迎提交 Issue 和 Pull Request!