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

rote-toolkit

v0.4.0

Published

CLI and MCP toolkit for Rote OpenKey API

Readme

Rote Toolkit

Rote Toolkit 是一个基于 TypeScript 的增强工具包,主要用于在终端或 AI Agents 侧连接和增强你的 Rote 笔记系统。基于 Rote OpenKey API 授权,即插即用,无需繁复的登录流程。

主项目仓库:Rabithua/rote

特性

  • CLI 模式:通过终端快速记笔记、搜索笔记。
  • MCP 模式:作为 Model Context Protocol 服务端,让 AI (Claude/Cursor) 能够安全、规范地读写 Rote 笔记。
  • 无感鉴权:只需一次配置 OpenKey 即可长期使用。

安装

要求 Node.js v18 或更高版本。

npm install -g rote-toolkit

配置鉴权

运行以下命令进行全局配置:

rote config

系统会提示你输入:

  1. Rote API URL:例如 https://your-rote-domain.com
  2. OpenKey:你的 API 密钥

凭证会保存在本地:~/.rote-toolkit/config.json

CLI 模式使用指南

1) 快速记录笔记

rote add "今天学到了 MCP 协议,非常有趣!"

附带标签、设为公开并置顶:

rote add "实现了一个新的前端组件" -t "代码,前端,React" --public --pin

2) 搜索和获取笔记

搜索包含 "MCP" 的笔记:

rote search "MCP"

获取最近的笔记(支持过滤归档和标签):

rote list --limit 5 --archived -t "知识管理"

获取探索页面的笔记(无需配置 OpenKey):

rote explore --limit 5

MCP 模式使用指南

是否需要提前安装?

不需要。
在 VS Code / Claude Desktop 里使用 npxbunx 配置时,会在启动 MCP Server 时自动下载并运行 rote-toolkit

仅当你希望本机直接运行命令时,才需要全局安装:

npm install -g rote-toolkit

1) 先完成凭证配置(一次即可)

rote config

2) 本机手动启动(可选,用于调试)

以下两条命令等价:

rote mcp
rote-mcp

3) Claude Desktop 配置示例

{
  "mcpServers": {
    "rote-toolkit": {
      "command": "npx",
      "args": ["-y", "-p", "rote-toolkit@latest", "rote-mcp"]
    }
  }
}

4) VS Code 配置示例

{
  "servers": {
    "rote-toolkit": {
      "type": "stdio",
      "command": "bunx",
      "args": ["-y", "--package", "rote-toolkit@latest", "rote-mcp"]
    }
  }
}

版本建议

  • 追踪最新版:rote-toolkit@latest
  • 需要稳定可复现:固定版本号,例如 [email protected]

常见问题

  • 报错 could not determine executable to run:通常是 npx 参数写法不对,确认使用 -p rote-toolkit@... rote-mcp
  • 报错 unknown command 'rote-mcp'(bunx):需要 --package,例如 bunx -y --package rote-toolkit@latest rote-mcp

AI 可使用的能力 (Tools)

  • rote_create_note
  • rote_update_note
  • rote_delete_note
  • rote_search_notes
  • rote_list_notes
  • rote_explore_notes

本地开发

API Key Usage Guide

npm install
npm run build
npm run dev -- --help

发布到 npm

首次发布前先登录:

npm login

自动构建 + 自动升级版本 + 发布:

npm run release:patch

也支持:

npm run release:minor
npm run release:major

发布脚本会执行:

  1. 检查 git 工作区是否干净
  2. 检查 npm 登录状态
  3. npm run build
  4. npm pack --dry-run
  5. npm version <patch|minor|major>
  6. npm publish