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

yq-charts-mcp

v1.0.3

Published

MCP Server for reading yq-charts component library documentation

Readme

yq-charts MCP Server

用于读取 yq-charts 组件库文档的 MCP (Model Context Protocol) 服务器。

安装

方式一:全局安装(推荐)

npm install -g yq-charts-mcp

方式二:使用 npx(无需安装)

直接在配置中使用 npx 运行。

配置 AI 助手

Claude Code

编辑 .claude.json:

全局安装后:

{
  "mcpServers": {
    "yq-charts": {
      "command": "yq-charts-mcp"
    }
  }
}

使用 npx:

{
  "mcpServers": {
    "yq-charts": {
      "command": "npx",
      "args": ["yq-charts-mcp"]
    }
  }
}

Gemini Code Assist

编辑 ~/.gemini/settings.json:

全局安装后:

{
  "mcpServers": {
    "yq-charts": {
      "command": "yq-charts-mcp"
    }
  }
}

使用 npx:

{
  "mcpServers": {
    "yq-charts": {
      "command": "npx",
      "args": ["yq-charts-mcp"]
    }
  }
}

功能

工具 (Tools)

| 工具名 | 说明 | 参数 | |--------|------|------| | list_docs | 列出所有文档文件 | 无 | | read_doc | 读取指定文档内容 | path: 文档路径 | | search_docs | 搜索文档内容 | query: 搜索关键词 | | get_component_api | 获取组件 API 文档 | component: 组件名, version: vue2/vue3 | | list_components | 列出所有组件 | version: vue2/vue3 |

资源 (Resources)

所有 Markdown 文档都作为资源暴露,URI 格式: yq-charts://docs/{path}

使用示例

配置完成后,AI 助手可以:

  1. 列出所有组件

    请列出 yq-charts 的所有组件
  2. 获取组件用法

    请告诉我 BarChart 组件的用法
  3. 搜索文档

    搜索文档中关于 "堆叠" 的内容

本地开发

# 安装依赖
npm install

# 开发模式
npm run dev

# 构建
npm run build

# 启动
npm start

License

MIT