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

html-share-mcp

v0.2.3

Published

MCP Server for 欣农HTML托管平台 (HTML Share Service)

Readme

HTML Share MCP Server

MCP Server for HTML Share Service,让 AI Agent 通过 MCP 协议操作 HTML 分享服务。

功能

| Tool | 说明 | |------|------| | html_share_publish | 发布 HTML 内容,返回分享链接 | | html_share_list | 列出当前用户的所有已发布文件 | | html_share_get_link | 按 ID 或名称获取文件分享链接 | | html_share_update_visibility | 修改文件可见性(public/private) | | html_share_delete | 删除文件 |

前提

  1. HTML Share Service 已部署并可访问
  2. 已在 Web UI 的 Profile 页生成 API Token(hsp_ 开头)

安装

# 全局安装(推荐)
npm install -g ./mcp-server/

# 或不安装,通过 npx 直接运行
npx ./mcp-server

配置

环境变量

| 变量 | 必填 | 说明 | |------|------|------| | HTML_SHARE_URL | 是 | 服务地址,如 https://share.example.com | | HTML_SHARE_TOKEN | 是 | API Token,以 hsp_ 开头 |

Claude Code / Codex / Cursor

在项目 .mcp.json(或 Claude Code 全局 ~/.claude.json、Codex ~/.codex/config.json)中添加:

{
  "mcpServers": {
    "html-share": {
      "command": "npx",
      "args": ["-y", "html-share-mcp"],
      "env": {
        "HTML_SHARE_URL": "https://share.example.com",
        "HTML_SHARE_TOKEN": "hsp_your_token_here"
      }
    }
  }
}

安全提示:建议通过环境变量引用 token 而非明文写入配置文件。确保 .mcp.json.gitignore 中。

Cursor 也可在 Settings → MCP Servers UI 中手动添加,配置同上。

使用示例

配置完成后,Agent 可直接调用:

用户: 把这段报表 HTML 发布到分享系统
Agent: [调用 html_share_publish] → 已发布,链接: https://share.example.com/s/abc123

用户: 我发布过哪些文件?
Agent: [调用 html_share_list] → 你有 3 个文件: ...

用户: 把第一个改成公开
Agent: [调用 html_share_update_visibility] → 已设为 public