dejared-mcp 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +224 -10
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -2,9 +2,37 @@
2
2
 
3
3
  An MCP (Model Context Protocol) server that lets AI assistants explore, analyze, and decompile Java JAR files.
4
4
 
5
+ ## Prerequisites
6
+
7
+ - **Node.js 18+** - required for the `npx` wrapper (not needed for pure Java usage)
8
+ - **Java 21+** - JRE is sufficient
9
+
5
10
  ## Quick Start
6
11
 
7
- Add to your MCP client configuration:
12
+ Most MCP-compatible tools use a JSON configuration like this:
13
+
14
+ ```json
15
+ {
16
+ "mcpServers": {
17
+ "dejared": {
18
+ "command": "npx",
19
+ "args": ["-y", "dejared-mcp"]
20
+ }
21
+ }
22
+ }
23
+ ```
24
+
25
+ See below for tool-specific instructions.
26
+
27
+ ## Configuration by Tool
28
+
29
+ <details>
30
+ <summary><strong>Claude Desktop</strong></summary>
31
+
32
+ Edit the Claude Desktop config file:
33
+
34
+ - **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
35
+ - **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
8
36
 
9
37
  ```json
10
38
  {
@@ -17,11 +45,202 @@ Add to your MCP client configuration:
17
45
  }
18
46
  ```
19
47
 
20
- That's it. The wrapper automatically downloads the server JAR on first run.
48
+ Restart Claude Desktop after saving.
49
+
50
+ </details>
51
+
52
+ <details>
53
+ <summary><strong>Claude Code (CLI)</strong></summary>
21
54
 
22
- ### Custom Java Path
55
+ Run this command in your terminal:
56
+
57
+ ```bash
58
+ claude mcp add dejared -- npx -y dejared-mcp
59
+ ```
23
60
 
24
- If Java is not in your system PATH, set the `DEJARED_JAVA_PATH` environment variable:
61
+ Or add it to your project's `.mcp.json`:
62
+
63
+ ```json
64
+ {
65
+ "mcpServers": {
66
+ "dejared": {
67
+ "command": "npx",
68
+ "args": ["-y", "dejared-mcp"]
69
+ }
70
+ }
71
+ }
72
+ ```
73
+
74
+ </details>
75
+
76
+ <details>
77
+ <summary><strong>Cursor</strong></summary>
78
+
79
+ Create or edit `.cursor/mcp.json` in your project root (project-level) or `~/.cursor/mcp.json` (global):
80
+
81
+ ```json
82
+ {
83
+ "mcpServers": {
84
+ "dejared": {
85
+ "command": "npx",
86
+ "args": ["-y", "dejared-mcp"]
87
+ }
88
+ }
89
+ }
90
+ ```
91
+
92
+ </details>
93
+
94
+ <details>
95
+ <summary><strong>VS Code (GitHub Copilot)</strong></summary>
96
+
97
+ Create or edit `.vscode/mcp.json` in your project root:
98
+
99
+ ```json
100
+ {
101
+ "servers": {
102
+ "dejared": {
103
+ "command": "npx",
104
+ "args": ["-y", "dejared-mcp"]
105
+ }
106
+ }
107
+ }
108
+ ```
109
+
110
+ Or add to your VS Code `settings.json` for global availability.
111
+
112
+ After saving, click the **Start** button that appears in the MCP config file, then use Agent mode in Copilot Chat.
113
+
114
+ </details>
115
+
116
+ <details>
117
+ <summary><strong>JetBrains IDEs (GitHub Copilot)</strong></summary>
118
+
119
+ Go to **Settings** > **Tools** > **AI Assistant** > **Model Context Protocol (MCP)**.
120
+
121
+ Click **+ Add** and configure:
122
+
123
+ - **Name**: `dejared`
124
+ - **Transport**: `Stdio`
125
+ - **Command**: `npx`
126
+ - **Arguments**: `-y dejared-mcp`
127
+
128
+ </details>
129
+
130
+ <details>
131
+ <summary><strong>Gemini CLI</strong></summary>
132
+
133
+ **Option A** - CLI command:
134
+
135
+ ```bash
136
+ gemini mcp add dejared npx -y dejared-mcp
137
+ ```
138
+
139
+ **Option B** - Edit `~/.gemini/settings.json` (global) or `.gemini/settings.json` (project):
140
+
141
+ ```json
142
+ {
143
+ "mcpServers": {
144
+ "dejared": {
145
+ "command": "npx",
146
+ "args": ["-y", "dejared-mcp"]
147
+ }
148
+ }
149
+ }
150
+ ```
151
+
152
+ Use `/mcp` in a Gemini CLI session to verify the server is connected.
153
+
154
+ </details>
155
+
156
+ <details>
157
+ <summary><strong>Antigravity Editor</strong></summary>
158
+
159
+ Edit `~/.gemini/antigravity/mcp_config.json`:
160
+
161
+ ```json
162
+ {
163
+ "mcpServers": {
164
+ "dejared": {
165
+ "command": "npx",
166
+ "args": ["-y", "dejared-mcp"]
167
+ }
168
+ }
169
+ }
170
+ ```
171
+
172
+ Or install through the MCP Store if available.
173
+
174
+ </details>
175
+
176
+ <details>
177
+ <summary><strong>GitHub Copilot CLI</strong></summary>
178
+
179
+ **Option A** - Interactive:
180
+
181
+ ```
182
+ /mcp add
183
+ ```
184
+
185
+ Then fill in:
186
+ - **Server Name**: `dejared`
187
+ - **Server Type**: `STDIO`
188
+ - **Command**: `npx -y dejared-mcp`
189
+
190
+ **Option B** - Edit `~/.copilot/mcp-config.json`:
191
+
192
+ ```json
193
+ {
194
+ "mcpServers": {
195
+ "dejared": {
196
+ "type": "local",
197
+ "command": "npx",
198
+ "args": ["-y", "dejared-mcp"],
199
+ "tools": ["*"]
200
+ }
201
+ }
202
+ }
203
+ ```
204
+
205
+ </details>
206
+
207
+ <details>
208
+ <summary><strong>Pure Java (no Node.js required)</strong></summary>
209
+
210
+ If you prefer to run the server JAR directly without Node.js:
211
+
212
+ 1. Download the latest JAR from [GitHub Releases](https://github.com/HuynhKhanh1402/dejared-mcp/releases).
213
+
214
+ Direct link pattern:
215
+ ```
216
+ https://github.com/HuynhKhanh1402/dejared-mcp/releases/download/v{VERSION}/dejared-mcp-{VERSION}.jar
217
+ ```
218
+
219
+ 2. Run it:
220
+ ```bash
221
+ java -jar dejared-mcp-0.1.1.jar
222
+ ```
223
+
224
+ 3. Configure your MCP client to use the JAR directly instead of `npx`. For example, in Claude Desktop:
225
+
226
+ ```json
227
+ {
228
+ "mcpServers": {
229
+ "dejared": {
230
+ "command": "java",
231
+ "args": ["-jar", "/path/to/dejared-mcp-0.1.1.jar"]
232
+ }
233
+ }
234
+ }
235
+ ```
236
+
237
+ Replace `/path/to/dejared-mcp-0.1.1.jar` with the actual path where you saved the JAR. This works with any MCP client that supports stdio transport.
238
+
239
+ </details>
240
+
241
+ ## Custom Java Path
242
+
243
+ If Java is not in your system PATH, set the `DEJARED_JAVA_PATH` environment variable in your MCP config. This applies to all `npx`-based configurations:
25
244
 
26
245
  ```json
27
246
  {
@@ -37,11 +256,6 @@ If Java is not in your system PATH, set the `DEJARED_JAVA_PATH` environment vari
37
256
  }
38
257
  ```
39
258
 
40
- ## Requirements
41
-
42
- - Node.js 18+
43
- - Java 21+ (JRE is sufficient)
44
-
45
259
  ## Features
46
260
 
47
261
  **Discovery** - Browse JAR structure:
@@ -79,7 +293,7 @@ The npm package is a thin Node.js wrapper. On first run it:
79
293
 
80
294
  The server communicates over stdio.
81
295
 
82
- ## Configuration
296
+ ## Server Configuration
83
297
 
84
298
  | Property | Default | Description |
85
299
  |----------|---------|-------------|
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "dejared-mcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
+ "mcpName": "io.github.HuynhKhanh1402/dejared",
4
5
  "description": "Explore, analyze, and decompile Java JAR files via MCP",
5
6
  "bin": {
6
7
  "dejared-mcp": "bin/dejared-mcp.js"