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

dsh-vercel-mcp

v0.1.1

Published

Vercel MCP connection for DeepSeek Harness: official OAuth 2.0 flow (dynamic client registration + PKCE) against mcp.vercel.com, Vercel API tools under mcp__vercel__*, and a web settings panel

Readme

English | 中文

dsh-vercel-mcp

DeepSeek Harness (DSH) 的 Vercel MCP 连接插件:官方 Vercel API MCP 服务器(mcp.vercel.com)+ 完整的 OAuth 2.0 客户端流程(动态客户端注册、PKCE S256、回调挂在 GUI 自己的 Web 服务上、refresh_token 自动续期)+ 可视化设置面板。

授权后,Vercel 平台的全部工具(部署、项目、域名、环境变量、DNS 记录、 部署代码等)就会以 mcp__vercel__* 形式出现在会话中,遇 401 自动刷新令牌。

为什么自建

DSH 自带的 @deepseek-ai/dsh-mcp-client 只支持静态 headers,无法完成 mcp.vercel.com 要求的 OAuth 流程(WWW-Authenticate: Bearer realm="OAuth")。 本插件基于官方 @modelcontextprotocol/sdk 原语自己实现了 OAuth 客户端, 连接是真实授权,而不是手动贴 token。

安装

# 本地开发(link)
dsh plugin --profile web add link:/path/to/dsh-vercel-mcp

bundle 补丁会自动挂上插件行,重启 Host 后生效。令牌存 ~/.dsh/dsh-vercel-mcp.json(权限 0600)。

授权方式

两条路,都走同一个 Vercel OAuth 流程:

  1. 设置面板(Web GUI → 设置 → Vercel MCP):点「开始授权」, 浏览器打开 Vercel 授权页,授权后自动回调完成;「测试连接」列出发现的工具。
  2. 对话里:让 agent 执行 vercel_mcp_oauth_start,打开返回的 authorizeUrl;或把回调地址里的 code 交给 vercel_mcp_oauth_finish。

工具

Agent 侧辅助工具:

| 工具 | 作用 | |---|---| | vercel_mcp_status | 授权 + 连接状态、工具数量(不泄露密钥) | | vercel_mcp_oauth_start | 开始 OAuth 流程,返回浏览器授权链接 | | vercel_mcp_oauth_finish | 手动粘贴 code 的兜底方式 | | vercel_mcp_test | 连接并列出 MCP 服务器全部工具 | | vercel_mcp_clear | 清除凭据并断开 |

另有 MCP 服务器自身的工具,名为 mcp__vercel__*。

API 路由

全部仅限本机回环(127.0.0.1),OAuth 回调除外(需接受 mcp.vercel.com 的跨站跳转,但仍校验 OAuth state):

  • GET /api/dsh-vercel-mcp/status
  • POST /api/dsh-vercel-mcp/oauth/start
  • GET /api/dsh-vercel-mcp/oauth/callback(浏览器落地页)
  • POST /api/dsh-vercel-mcp/oauth/finish
  • POST /api/dsh-vercel-mcp/oauth/refresh
  • POST /api/dsh-vercel-mcp/test
  • POST /api/dsh-vercel-mcp/clear

开发

pnpm install
npm run typecheck
npm run test                  # 离线 store/provider 冒烟
DSH_VERCEL_MCP_LIVE=1 npm run test   # 对 mcp.vercel.com 的真实 OAuth 第一阶段
npm run build                 # tsc 声明 + tsdown(lib/ + lib/client.js)

License

MIT