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

@changpu/jar-api-parser

v1.4.0

Published

MCP tool for parsing Java jar packages and extracting API information from Gradle cache

Readme

Jar API Parser - MCP 工具

npm version License: MIT

一个用于解析 Java jar 包接口方法信息的 MCP (Model Context Protocol) 工具。自动从 Gradle cache 中定位并解析二方包的 API 信息。

功能特性

  • ✅ 自动定位 Gradle cache 中的 jar 包
  • ✅ 解析接口和抽象类的方法签名
  • ✅ 提取方法参数列表和返回值类型
  • ✅ 支持泛型信息解析
  • ✅ 支持按方法名过滤
  • ✅ 支持 NPM 全局安装和 npx 使用

安装

方式一:NPM 全局安装(推荐)

npm install -g @changpu-jingling/jar-api-parser

方式二:使用 npx(无需安装)

npx @changpu-jingling/jar-api-parser

方式三:项目本地安装

npm install @changpu-jingling/jar-api-parser

配置 MCP 服务器

Claude Desktop 配置

编辑配置文件:~/Library/Application Support/Claude/claude_desktop_config.json

使用 npx(推荐):

{
  "mcpServers": {
    "jar-api-parser": {
      "command": "npx",
      "args": ["-y", "@changpu-jingling/jar-api-parser"]
    }
  }
}

使用全局安装:

{
  "mcpServers": {
    "jar-api-parser": {
      "command": "jar-api-parser"
    }
  }
}

Claude Code CLI 配置

编辑配置文件:~/.config/claude-code/config.json

{
  "mcpServers": {
    "jar-api-parser": {
      "command": "npx",
      "args": ["-y", "@changpu-jingling/jar-api-parser"]
    }
  }
}

配置完成后,重启 Claude Desktop 或 Claude Code CLI。

使用示例

查询接口方法

// 查询 OrderStatusApi 的所有方法
{
  "gav": "com.webuy:ordercenter-client:1.2.35-RELEASE",
  "className": "com.webuy.ordercenter.client.OrderStatusApi"
}

// 查询特定方法
{
  "gav": "com.webuy:ordercenter-client:1.2.35-RELEASE",
  "className": "com.webuy.ordercenter.client.OrderStatusApi",
  "methodName": "queryBuyerOrderListCount"
}

输出示例

{
  "artifact": {
    "groupId": "com.webuy",
    "artifactId": "ordercenter-client",
    "version": "1.2.35-RELEASE"
  },
  "jarPath": "~/.gradle/caches/modules-2/files-2.1/...",
  "classes": [
    {
      "className": "OrderStatusApi",
      "packageName": "com.webuy.ordercenter.client",
      "isInterface": true,
      "methods": [
        {
          "name": "queryBuyerOrderListCount",
          "returnType": "Result",
          "parameters": [
            {
              "index": 0,
              "name": "request",
              "type": "QueryOrderListCountRequest"
            }
          ],
          "isPublic": true,
          "isAbstract": true
        }
      ]
    }
  ]
}