@adhisang/minecraft-modding-mcp 1.0.0 → 1.1.0
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.
- package/CHANGELOG.md +8 -0
- package/README.md +37 -0
- package/dist/cli.js +21 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +382 -785
- package/dist/logger.js +1 -9
- package/dist/mcp-helpers.d.ts +5 -0
- package/dist/mcp-helpers.js +13 -0
- package/dist/resources.d.ts +2 -2
- package/dist/resources.js +23 -57
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ All notable changes to this project are documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project aims to follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.1.0] - 2026-03-01
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- Migrate stdio transport from mcp-use to @modelcontextprotocol/sdk.
|
|
12
|
+
|
|
13
|
+
### Documentation
|
|
14
|
+
- Add Quick Start setup for Claude Code, OpenAI Codex CLI, and Gemini CLI.
|
|
15
|
+
|
|
8
16
|
## [1.0.0] - 2026-03-01
|
|
9
17
|
|
|
10
18
|
### Added
|
package/README.md
CHANGED
|
@@ -39,6 +39,43 @@ It lets you explore decompiled Minecraft source, convert symbol names across fou
|
|
|
39
39
|
npx @adhisang/minecraft-modding-mcp
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
+
### CLI Agent Tools
|
|
43
|
+
|
|
44
|
+
#### Claude Code
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
claude mcp add minecraft-modding -- npx -y @adhisang/minecraft-modding-mcp
|
|
48
|
+
claude mcp list
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
#### OpenAI Codex CLI
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
codex mcp add minecraft-modding -- npx -y @adhisang/minecraft-modding-mcp
|
|
55
|
+
codex mcp list
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
#### Gemini CLI
|
|
59
|
+
|
|
60
|
+
Add the following to `~/.gemini/settings.json`:
|
|
61
|
+
|
|
62
|
+
```json
|
|
63
|
+
{
|
|
64
|
+
"mcpServers": {
|
|
65
|
+
"minecraft-modding": {
|
|
66
|
+
"command": "npx",
|
|
67
|
+
"args": ["-y", "@adhisang/minecraft-modding-mcp"]
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Then run this command in Gemini CLI:
|
|
74
|
+
|
|
75
|
+
```text
|
|
76
|
+
/mcp list
|
|
77
|
+
```
|
|
78
|
+
|
|
42
79
|
### For Developers (Repository)
|
|
43
80
|
```bash
|
|
44
81
|
pnpm install
|
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { startServer } from "./index.js";
|
|
3
|
-
|
|
3
|
+
function keepProcessAliveUntilStdinCloses() {
|
|
4
|
+
return new Promise((resolve) => {
|
|
5
|
+
const keepAlive = setInterval(() => { }, 1 << 30);
|
|
6
|
+
const release = () => {
|
|
7
|
+
clearInterval(keepAlive);
|
|
8
|
+
resolve();
|
|
9
|
+
};
|
|
10
|
+
if (process.stdin.destroyed) {
|
|
11
|
+
release();
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
process.stdin.once("end", release);
|
|
15
|
+
process.stdin.once("close", release);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
startServer()
|
|
19
|
+
.then(() => keepProcessAliveUntilStdinCloses())
|
|
20
|
+
.catch((err) => {
|
|
21
|
+
console.error("Fatal: server failed to start", err);
|
|
22
|
+
process.exit(1);
|
|
23
|
+
});
|
|
4
24
|
//# sourceMappingURL=cli.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
1
2
|
import { SourceService } from "./source-service.js";
|
|
2
3
|
declare const SERVER_VERSION: string;
|
|
3
|
-
declare const server:
|
|
4
|
+
declare const server: McpServer;
|
|
4
5
|
declare const config: import("./types.js").Config;
|
|
5
6
|
declare const sourceService: SourceService;
|
|
6
|
-
export declare function startServer(): void
|
|
7
|
+
export declare function startServer(): Promise<void>;
|
|
7
8
|
export { server, sourceService, config, SERVER_VERSION };
|