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

@time50/simple-qqdocs-mcp

v0.1.0

Published

简易腾讯文档 MCP,配合 Playwright MCP 操作表格 canvas

Readme

simple-qqdocs-mcp

配合 Playwright MCP 操作腾讯文档表格(.excel-container>canvas)的简易 MCP 服务。

前置条件

  1. 用 Playwright MCP 打开 docs.qq.com/sheet 表格页
  2. 浏览器开启 CDP,默认 http://127.0.0.1:9222
  3. 若遇代理报错,在 MCP 配置中设置 ALL_PROXY=""

安装与配置

pnpm install

在 Cursor / MCP 配置中注册(路径按实际修改):

{
  "mcpServers": {
    "simple-qqdocs": {
      "command": "node",
      "args": ["d:/1024/llm/simple-qqdocs-mcp/src/index.js"],
      "env": {
        "CDP_ENDPOINT": "http://127.0.0.1:9222",
        "ALL_PROXY": ""
      }
    }
  }
}

使用流程

  1. Playwright 打开腾讯文档表格
  2. 调用 refresh_grid_boundaries 或直接使用默认工具(会自动重新识别网格)
  3. 页面滚动/缩放后,优先用非 quick_* 工具,或先 refresh_grid_boundaries

工具选用

| 场景 | 推荐 | |------|------| | 常规操作 | get_cell_bounds / click_cell / input_cell | | 用户明确要求 quick/快速/缓存 | quick_get_cell_bounds / quick_click_cell / quick_input_cell |

Tools

坐标与操作

| Tool | 说明 | |------|------| | refresh_grid_boundaries | 识别并刷新列标 ABCD、行标 1234 的边界缓存 | | get_cell_bounds | 默认 获取单元格边界(每次重新识别) | | quick_get_cell_bounds | 用缓存快速获取边界 | | click_cell | 默认 识别并点击单元格 | | quick_click_cell | 用缓存快速点击 | | input_cell | 默认 点击单元格并输入文本 | | quick_input_cell | 用缓存快速输入 |

单元格引用A1(单格)、A1:C2A1C2(范围)

返回格式

  • 单格 A1bounds: [[x1, x2], [y1, y2]]
  • 范围 A1:C2bounds: [[x1, x2, x3, x4], [y1, y2, y3]]

基础 / 调试

| Tool | 说明 | |------|------| | get_canvas_snapshot | 获取 canvas 截图(base64 PNG) | | detect_grid | 识别行标/列标区域与边界 | | recognize_cell_text | 识别单元格文字,返回 { text, bcolor, fcolor } |

环境变量

| 变量 | 默认 | 说明 | |------|------|------| | CDP_ENDPOINT | http://127.0.0.1:9222 | 浏览器 CDP 地址 |