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

upload-mcp

v0.1.10

Published

rd-upload-mcp package - COS文件上传工具

Readme

文件上传

upload-mcp - COS文件上传工具

功能特性

基础功能

  • 单文件上传: 支持将单个文件上传到腾讯云COS
  • 图片文件特殊处理: 自动识别图片文件并提供图片相关功能
  • 文件类型验证: 支持常见图片、文档、压缩包格式
  • 自定义目标路径: 支持指定COS存储路径
  • 自动路径生成: 如不指定路径,自动生成带时间戳的路径

分块上传功能

  • 🚀 智能分块上传: 自动检测大文件并启用分块上传(>5MB)
  • 💪 断点续传: 支持失败重试,单个块失败不影响其他块
  • 🔄 并行上传: 多个文件块可以同时上传(如果支持)
  • 📊 进度监控: 实时显示上传进度和状态
  • 稳定性强: 特别适合大文件和网络不稳定环境

文件大小限制

  • 普通上传: 最大支持 10MB 的文件
  • 分块上传: 理论上无限制(实际受COS服务限制)
  • 智能切换: 文件超过 5MB 自动启用分块上传

支持的文件类型

图片文件

  • JPEG (.jpg, .jpeg)
  • PNG (.png)
  • GIF (.gif)
  • BMP (.bmp)
  • WebP (.webp)

文档文件

  • PDF (.pdf)
  • Word (.doc, .docx)
  • Excel (.xls, .xlsx)
  • 文本文件 (.txt)

压缩文件

  • ZIP (.zip)
  • RAR (.rar)

安装

npm install upload-mcp
# or
pnpm add upload-mcp

MCP工具调用规则

单文件上传工具 (upload-file)

🔴【强制调用规则】

  • 当用户需要上传单个文件到COS时,AI助手必须立即调用此MCP工具
  • 支持传入自定义目标路径,如不提供则自动生成
  • 返回COS永久访问地址

参数说明:

  • filePath (必填): 本地文件路径(绝对路径或相对路径)
  • targetPath (可选): COS目标路径

开发

# 构建
pnpm --filter "upload-mcp" build

许可证

MIT