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

@dachengzhihui/keyan-deployer-mcp

v0.1.1

Published

MCP server for keyan-deployer REST API

Downloads

31

Readme

keyan-deployer-mcp

MCP server exposing the keyan-deployer REST API as resource-aggregated tools for Claude Code.

Install (Claude Code)

claude mcp add keyan-deployer-mcp \
  -e KEYAN_API_URL=https://your-host \
  -e DEPLOY_PASSWORD=xxx \
  -- npx -y @dachengzhihui/keyan-deployer-mcp

For other MCP clients (Claude Desktop, Cursor, Windsurf, VS Code/Copilot, Cline, Codex CLI, Gemini CLI, …) see INSTALL.md.

Env vars

| Var | Required | Description | |-----|----------|-------------| | KEYAN_API_URL | yes | API base URL, e.g. https://example.com | | DEPLOY_PASSWORD | yes | Bearer auth password |

Tools

Each tool takes { action, params }. Run a tool with action: "list"/etc.; the tool description enumerates every action and its params.

sites, site_records, ports, system, reports, report_folders, report_records, report_tags, comment_config.

File-upload actions (sites.deploy, reports.create, report_records.create) take a local file path; the server reads it and uploads multipart.

Deploy a project & get an access link (host:port)

  1. sites create { code, name, category, type, config? }
    • frontend: category="frontend", type="static"|"spa" (spa archive must contain index.html)
    • backend: category="backend", type="fastapi" (archive must contain pyproject.toml); config.env injects env vars
    • reverse proxy: category="proxy", config.upstream_url=... (ready immediately, no deploy)
  2. sites deploy { id, archive_path } until the record status is success
  3. sites get { id } to read port; the link is http://{host}:{port}/, where {host} is the hostname of your KEYAN_API_URL (it maps to the deploy machine). The sites tool description shows the concrete host at runtime.
  4. sites stop / start / restart { id } to control it

Custom domains / HTTPS are managed in the desktop app, not the MCP server.

Develop

cd mcp
npm install
npm test          # 18 tests
npm run build     # -> dist/

Release (publish a new version to npm)

The package is published as @dachengzhihui/keyan-deployer-mcp; npx -y @dachengzhihui/keyan-deployer-mcp always pulls the latest.

cd mcp
# 1. bump version in package.json (e.g. 0.1.0 -> 0.1.1)
npm run build
npm publish --access public   # scoped package: first publish must be public

No-OTP publishing: put an npm Automation or Granular Access token (one that bypasses 2FA) in ~/.npmrc:

//registry.npmjs.org/:_authToken=npm_xxxxxxxx

Then npm publish needs no one-time code. Create the token at https://www.npmjs.com/settings/USERNAME/tokens. Never commit the token; for CI use a repo secret and reference it as //registry.npmjs.org/:_authToken=${NPM_TOKEN}.