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

@camscanner/yapi-mcp-server

v1.0.2

Published

MCP Server for querying YApi API documentation

Readme

YApi MCP Server

用于在 Claude Code 中查询和管理 YApi 接口文档的 MCP Server。

功能

| 工具 | 说明 | |------|------| | yapi-auth | 浏览器登录 YApi | | yapi-logout | 退出登录 | | list_projects | 列出所有项目 | | get_project_info | 获取项目信息 | | list_apis | 列出项目下所有接口(按分类) | | get_api_detail | 获取接口详情 | | search_api | 搜索接口 | | create_api | 创建新接口 | | update_api | 修改接口 | | export_swagger | 导出 Swagger 文档 | | import_api_docs | 批量导出接口文档 |

安装

# 1. 添加插件市场(仅首次)
claude plugin marketplace add tianmuji/camscanner-plugins

# 2. 安装插件
claude plugin install yapi@camscanner-plugins

安装后重启 Claude Code 即可使用。插件会自动注册 MCP Server 和 /yapi Skill。

前提条件

  • Node.js >= 18
  • Playwright Chromium(用于浏览器登录):npx playwright install chromium

认证

首次使用时调用 yapi-auth 工具,会打开浏览器进行 SSO 登录(扫码验证 + 密码)。

  • 浏览器数据持久化在 ~/.yapi-mcp/browser-data/,保存的密码下次自动填充
  • 认证信息保存在 ~/.yapi-mcp/credentials.json,有效期 7 天

开发者指南

发布新版本

# 1. 修改代码并构建
npm run build

# 2. 更新版本号并发布到 npm
npm version patch   # bug fix: 1.0.0 → 1.0.1
npm version minor   # 新功能: 1.0.0 → 1.1.0
npm version major   # 破坏性变更: 1.0.0 → 2.0.0

npm publish --registry https://registry.npmjs.org/ --access public

# 3. 推送 tag 到远端
git push && git push --tags

用户下次启动 Claude Code 时,npx -y @camscanner/yapi-mcp-server@latest 会自动拉取新版本。