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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@bty/mcp-dianping

v0.1.2

Published

Dianping integration for the Model Context Protocol (MCP)

Downloads

16

Readme

DianPing MCP

快速开始

# 若已安装 playwright 该步骤可省略
npx playwright install

# 全局安装
npm install -g @bty/mcp-dianping

# 初始化登录,记录 Cookie
# 推荐安装后调用一次用于记录 Cookie
bty-mcp-dianping init

Tools

  • 关键词搜索笔记
  • 通过 URL 访问笔记内容
  • 通过 URL 访问笔记评论

使用说明

在 Cursor 的 settings.json 中添加以下配置:

{
  "mcpServers": {
    "DianPing MCP": {
      "command": "bty-mcp-dianping",
      "args": [
        "--stdio"
      ]
    }
  }
}

或者使用 npx 方式:

{
  "mcpServers": {
    "DianPing MCP": {
      "command": "npx",
      "args": [
        "bty-mcp-dianping",
        "--stdio"
      ]
    }
  }
}

配置说明:

  • command: 可以是全局安装后的 bty-mcp-dianping 命令,或使用 npx 直接运行
  • args: 必须包含 --stdio 参数以支持 Cursor 的通信方式

开发指南

环境要求

  • Node.js >= 16
  • npm >= 7

开发流程

# 安装依赖
pnpm install

# 构建项目
pnpm run build

# 开发模式运行
pnpm run dev

使用 MCP Inspector 进行调试

MCP Inspector 是一个用于调试 MCP 服务器的工具,可以帮助开发者检查和验证 MCP 服务器的行为。使用以下命令启动:

npx @modelcontextprotocol/inspector npx bty-mcp-dianping --stdio

这个命令会:

  1. 启动 MCP Inspector 工具
  2. 通过 Inspector 运行 bty-mcp-dianping 服务
  3. 提供一个交互式界面来检查请求和响应
  4. 帮助调试和验证 MCP 协议的实现

注意事项

  1. 首次使用最好执行 init 命令进行登录
  2. Cookie 文件包含敏感信息,避免泄露
  3. 建议定期更新 Cookie,避免失效
  4. 确保已正确安装 Node.js 环境