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

jd-codex

v1.0.1

Published

MCP (Model Context Protocol) 服务

Readme

JDI Codex

这是一个用于访问 coding.jd.com API 的 MCP (Model Context Protocol) 服务器。

发布包:

npm run release

配置

{
  "mcpServers": {
    "jd-codex": {
      "command": "npx",
      "args": ["jd-codex"],
      "env": {
        "CODING_TOKEN": "your-token-here"
      },
      "disabled": false
    }
  }
}

获取 CODING_TOKEN

  1. 登录 coding.jd.com
  2. 进入个人设置 → 设置 → API Token → 生成API Token
  3. 创建新的访问令牌
  4. 将令牌复制到配置文件的 CODING_TOKEN 字段中

开发

# 开发模式运行(使用 tsx)
npm run dev

# 编译 TypeScript
npm run build

# 运行编译后的代码
npm start

# 监听模式编译
npm run watch

使用

配置完成后,重启 Cursor 或重新加载 MCP 服务器,即可在 AI 对话中使用以下工具:

可用工具

  • encode_uri_component: 对指定的URL或字符串进行encodeURIComponent编码
  • fetch_projects: 请求 coding.jd.com API 获取项目列表
    • 支持搜索、分页、排序等功能
  • fetch_file_content: 获取代码文件内容
    • 支持指定分支、项目ID或仓库路径
  • fetch_repository_tree: 获取文件树
    • 支持递归查询、指定路径、分支等

使用示例

在 Cursor 的 AI 对话中,你可以直接说:

  • "帮我获取项目列表"
  • "查看某个项目的文件树"
  • "读取某个文件的代码内容"

AI 会自动调用相应的工具来完成你的请求。