Gradle Class Finder MCP
About
Find and decompile classes within Gradle dependencies.
Details
- Author
- touwaeriol
- Categories
- Developer Tools
Jump to
Setup
Install Gradle Class Finder MCP in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/touwaeriol/gradle-class-finder-mcp
Follow the installation instructions in the repository README, then restart your MCP client.
Find and decompile classes within Gradle dependencies.
一个基于 Model Context Protocol (MCP) 的 Gradle 项目类查找服务,帮助在 Gradle 项目依赖中查找指定的类并获取其源代码。
- 在 Gradle 项目依赖中查找指定的类
- 获取类的源代码或反编译代码
- 支持 JDK 类查找
- 智能类名解析(支持简单类名)
- Kotlin 类智能识别和反编译
- JDK 17 或更高版本
- Gradle 8.5 或更高版本(可选,项目包含 Gradle Wrapper)
# 使用 Gradle Wrapper(推荐) ./gradlew shadowJar # 或者使用系统安装的 Gradle gradle shadowJar
构建完成后,会在build/libs/目录下生成gradle-class-finder-mcp.jar文件。
# 直接运行 JAR 文件 java -jar build/libs/gradle-class-finder-mcp.jar # 或者使用 Gradle 运行 ./gradlew run
docker build -t gradle-class-finder-mcp .
# 基本运行 docker run gradle-class-finder-mcp # 使用自定义内存设置 docker run -e JAVA_OPTS="-Xmx1g -Xms512m" gradle-class-finder-mcp # 挂载本地项目目录(用于分析本地项目) docker run -v /path/to/your/project:/workspace gradle-class-finder-mcp
{ "mcpServers": { "gradle-class-finder": { "command": "java", "args": ["-jar", "/path/to/gradle-class-finder-mcp.jar"] } } }
{ "mcpServers": { "gradle-class-finder": { "command": "docker", "args": ["run", "-i", "gradle-class-finder-mcp"] } } }
使用工具 find_class 查找类: - workspace_dir: /path/to/gradle/project - class_name: com.example.MyClass
使用工具 get_source_code 获取源代码: - jar_path: /path/to/library.jar - class_name: com.example.MyClass
- JAVA_OPTS: JVM 参数设置(例如:-Xmx512m -Xms256m)
- 确保使用shadowJar任务构建,而不是普通的jar任务
- 检查 JAR 文件是否存在于build/libs/目录
- 确保目标项目有有效的 Gradle 配置
- 检查网络连接,确保能访问 Maven 仓库
gradle-class-finder-mcp/ ├── src/ │ └── main/ │ └── java/ │ └── com/opencare/mcp/ │ ├── GradleClassFinderMcpServer.java │ ├── service/ │ ├── decompiler/ │ └── util/ ├── build.gradle ├── Dockerfile └── README.md
# 运行测试 ./gradlew test # 清理构建 ./gradlew clean # 构建并运行 ./gradlew clean shadowJar run
This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.
Create crafted UI components inspired by the best 21st.dev design engineers.
Bring agent evaluations, observability, and synthetic test set generation directly into your IDE for free with Galileo's new MCP server
An MCP server to help AI assistants to answer questions and generate AccelByte Extend SDK code more effectively .
MCP server for AI Diagram Maker — generate beautiful software engineering diagrams directly inside Cursor, Claude Desktop, Claude Code, or any MCP-compatible AI agent
ALAPI MCP Tools,Call hundreds of API interfaces via MCP
AI-powered SVG animation generator that transforms static files into animated SVG components using the Allyson platform
MCP server that gives AI assistants on-demand access to 1,500+ amCharts docs, ~300 code examples, and 1000+ class API references.
APIMatic MCP Server is used to validate OpenAPI specifications using APIMatic. The server processes OpenAPI files and returns validation summaries by leveraging APIMatic’s API.
One shared context layer for AI agents and humans — live API specs, DB schemas, and versioned contracts across repos so every agent and teammate works from the same source of truth.
Build and deploy full-stack Next.js apps with 98 tools for React, AWS, and MongoDB
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





