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

phinix_experience

v0.0.2

Published

phinix_experience - A Model Context Protocol server for searching development experience

Readme

phinix_experience MCP 服务器

phinix_experience 是一个基于 Model Context Protocol (MCP) 的服务器,为 AI 模型提供项目开发经验检索功能,帮助开发者在编码前查阅相关踩坑经验,避免重复犯错。

功能特性

🔍 经验列表检索 (search_experience_list)

  • 根据关键词搜索项目开发经验库
  • 返回匹配的经验列表(包含 id 和概述)
  • 支持自然语言描述查询

📄 经验详情获取 (search_experience_detail)

  • 根据经验 ID 获取完整的经验详情
  • 包含详细的问题描述、解决方案和注意事项

安装和使用

环境要求

  • Node.js 18+
  • npm 或 yarn

安装依赖

npm install

环境变量

| 变量名 | 必需 | 说明 | | -------- | ---- | ------------------------- | | APP_ID | 是 | RAG 应用 ID,用于经验检索 |

启动服务器

npm start

在 IDE 中配置 MCP

{
  "mcpServers": {
    "phinix_experience": {
      "command": "npx",
      // 线上
      "args": ["phinix_experience"],
      // 本地测试
      // "args": ["tsx", "/project/ai_experience/src/index.js"],
      "env": {
        "APP_ID": "dataphin"
      }
    },
  }
}

MCP 工具说明

1. search_experience_list

编码前检索项目开发经验库,查找与当前任务相关的踩坑经验。

参数:

| 参数 | 类型 | 必需 | 说明 | | ------- | ------ | ---- | ------------------------------ | | query | string | 是 | 搜索查询词,描述当前任务或问题 |

返回:

匹配的经验列表,每条包含:

  • id: 经验唯一 ID
  • text: 经验概述

示例:

{"query": "scss 样式"}
{"query": "表格列配置"}
{"query": "接口请求错误处理"}

2. search_experience_detail

获取某条经验的完整详情。

参数:

| 参数 | 类型 | 必需 | 说明 | | ---- | ------ | ---- | --------------------------------------------- | | id | number | 是 | 经验唯一 ID(从 search_experience_list 获取) |

返回:

经验的完整详情内容。

示例:

{ "id": 123 }

推荐使用流程

search_experience_list(query="...") → 获取经验列表 → search_experience_detail(id=xxx) → 获取详情

项目结构

src/
├── index.js                # 入口文件
├── server.js               # MCP 服务器核心,注册工具
├── config.js               # 埋点统计配置
├── analytics/              # 埋点统计模块
│   ├── index.ts
│   ├── reporter.ts
│   ├── tracker.ts
│   └── types.ts
└── tools/
    ├── index.js            # 工具导出入口
    └── searchExperience.js # 经验检索工具实现

技术栈

  • MCP SDK: @modelcontextprotocol/sdk
  • Schema 验证: Zod
  • Transport: STDIO(标准输入输出)
  • 运行时: tsx

开发

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

# 使用 MCP Inspector 调试
npm run serve

许可证

MIT License