@adhisang/minecraft-modding-mcp 3.0.0 → 3.1.1

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.
@@ -0,0 +1,137 @@
1
+ export const TOOL_SURFACE_SECTION_IDS = [
2
+ "v3-entry-tools",
3
+ "source-exploration",
4
+ "version-comparison-symbol-tracking",
5
+ "mapping-symbols",
6
+ "nbt-utilities",
7
+ "mod-analysis",
8
+ "validation",
9
+ "registry-diagnostics"
10
+ ];
11
+ const SECTION_ROWS = {
12
+ "v3-entry-tools": {
13
+ en: [
14
+ "| `inspect-minecraft` | Inspect versions, artifacts, classes, files, source text, and workspace-aware lookup flows |",
15
+ "| `analyze-symbol` | Handle symbol existence checks, namespace mapping, lifecycle tracing, workspace symbol resolution, and API overviews |",
16
+ "| `compare-minecraft` | Compare version pairs, class diffs, registry diffs, and migration-oriented summaries |",
17
+ "| `analyze-mod` | Summarize mod metadata, decompile and search mod code, inspect class source, and preview or apply remaps |",
18
+ "| `validate-project` | Summarize workspaces and run direct Mixin or Access Widener validation |",
19
+ "| `manage-cache` | List, verify, and preview or apply cache cleanup and rebuild operations |"
20
+ ],
21
+ ja: [
22
+ "| `inspect-minecraft` | バージョン、アーティファクト、クラス、ファイル、ソース本文、ワークスペース文脈の調査フローをまとめて扱う |",
23
+ "| `analyze-symbol` | シンボル存在確認、名前空間変換、ライフサイクル追跡、ワークスペースシンボル解決、API 概要をまとめて扱う |",
24
+ "| `compare-minecraft` | バージョン差分、クラス差分、レジストリ差分、移行向け概要を比較する |",
25
+ "| `analyze-mod` | Mod メタデータの要約、Mod コードのデコンパイル / 検索、クラスソース確認、リマップのプレビュー / 実行を扱う |",
26
+ "| `validate-project` | ワークスペース要約と、Mixin / Access Widener の直接検証を行う |",
27
+ "| `manage-cache` | キャッシュの一覧、検証、クリーンアップ / 再構築のプレビュー / 実行を行う |"
28
+ ]
29
+ },
30
+ "source-exploration": {
31
+ en: [
32
+ "| `list-versions` | List available Minecraft versions from Mojang metadata and local cache |",
33
+ "| `resolve-artifact` | Resolve source artifacts from versions, JAR paths, or Maven coordinates |",
34
+ "| `find-class` | Find simple or fully-qualified class names inside an artifact |",
35
+ "| `get-class-source` | Read class source from an artifact or resolve the backing artifact on demand |",
36
+ "| `get-class-members` | List constructors, fields, and methods from bytecode |",
37
+ "| `search-class-source` | Search indexed class source by symbol, text, or path |",
38
+ "| `get-artifact-file` | Read a full source file with a byte limit |",
39
+ "| `list-artifact-files` | List indexed source file paths with cursor pagination |",
40
+ "| `index-artifact` | Rebuild indexed metadata for an existing artifact |"
41
+ ],
42
+ ja: [
43
+ "| `list-versions` | Mojang メタデータとローカルキャッシュから利用可能な Minecraft バージョンを一覧表示する |",
44
+ "| `resolve-artifact` | バージョン、JAR パス、Maven 座標からソースアーティファクトを解決する |",
45
+ "| `find-class` | アーティファクト内で簡易名または完全修飾クラス名を探す |",
46
+ "| `get-class-source` | アーティファクトからクラスソースを読み取り、必要に応じて背後のアーティファクトを解決する |",
47
+ "| `get-class-members` | バイトコードからコンストラクタ、フィールド、メソッドを一覧化する |",
48
+ "| `search-class-source` | インデックス化されたクラスソースをシンボル、テキスト、パスで検索する |",
49
+ "| `get-artifact-file` | バイト上限付きでソースファイル全体を読み取る |",
50
+ "| `list-artifact-files` | インデックス化されたソースファイルパスをカーソルページネーション付きで一覧表示する |",
51
+ "| `index-artifact` | 既存アーティファクトのインデックスメタデータを再構築する |"
52
+ ]
53
+ },
54
+ "version-comparison-symbol-tracking": {
55
+ en: [
56
+ "| `trace-symbol-lifecycle` | Trace when `Class.method` exists across Minecraft versions |",
57
+ "| `diff-class-signatures` | Compare one class across two versions and return member deltas |",
58
+ "| `compare-versions` | Compare class and registry changes between two versions |"
59
+ ],
60
+ ja: [
61
+ "| `trace-symbol-lifecycle` | `Class.method` が Minecraft のどのバージョンで存在するかを追跡する |",
62
+ "| `diff-class-signatures` | 2 つのバージョン間で 1 つのクラスを比較し、メンバー差分を返す |",
63
+ "| `compare-versions` | 2 つのバージョン間でクラスとレジストリの変更を比較する |"
64
+ ]
65
+ },
66
+ "mapping-symbols": {
67
+ en: [
68
+ "| `find-mapping` | Look up mapping candidates for class, field, or method symbols |",
69
+ "| `resolve-method-mapping-exact` | Resolve one method mapping with strict owner, name, and descriptor matching |",
70
+ "| `get-class-api-matrix` | Show one class API across `obfuscated`, `mojang`, `intermediary`, and `yarn` |",
71
+ "| `resolve-workspace-symbol` | Resolve compile-visible symbol names from a Gradle workspace |",
72
+ "| `check-symbol-exists` | Check whether a class, field, or method exists in a namespace |"
73
+ ],
74
+ ja: [
75
+ "| `find-mapping` | クラス、フィールド、メソッドのシンボルに対するマッピング候補を調べる |",
76
+ "| `resolve-method-mapping-exact` | owner、name、descriptor の厳密一致で 1 つのメソッドマッピングを解決する |",
77
+ "| `get-class-api-matrix` | 1 つのクラス API を `obfuscated`、`mojang`、`intermediary`、`yarn` で見比べる |",
78
+ "| `resolve-workspace-symbol` | Gradle ワークスペースからコンパイル時に見えるシンボル名を解決する |",
79
+ "| `check-symbol-exists` | 名前空間内でクラス、フィールド、メソッドが存在するかを確認する |"
80
+ ]
81
+ },
82
+ "nbt-utilities": {
83
+ en: [
84
+ "| `nbt-to-json` | Decode Java Edition NBT binary payloads into typed JSON |",
85
+ "| `nbt-apply-json-patch` | Apply RFC 6902 patches to typed NBT JSON |",
86
+ "| `json-to-nbt` | Encode typed JSON back to Java Edition NBT binary |"
87
+ ],
88
+ ja: [
89
+ "| `nbt-to-json` | Java Edition の NBT バイナリを型付き JSON にデコードする |",
90
+ "| `nbt-apply-json-patch` | 型付き NBT JSON に RFC 6902 パッチを適用する |",
91
+ "| `json-to-nbt` | 型付き JSON を Java Edition の NBT バイナリへ再エンコードする |"
92
+ ]
93
+ },
94
+ "mod-analysis": {
95
+ en: [
96
+ "| `analyze-mod-jar` | Extract mod metadata, dependencies, entrypoints, and mixin config info from a JAR |",
97
+ "| `decompile-mod-jar` | Decompile a mod JAR and optionally return one class source |",
98
+ "| `get-mod-class-source` | Read one class source from the decompiled mod cache |",
99
+ "| `search-mod-source` | Search decompiled mod source by class, method, field, or content |",
100
+ "| `remap-mod-jar` | Remap a Fabric or Quilt mod JAR to `yarn` or `mojang` names |"
101
+ ],
102
+ ja: [
103
+ "| `analyze-mod-jar` | JAR から Mod メタデータ、依存関係、エントリポイント、Mixin 設定情報を抽出する |",
104
+ "| `decompile-mod-jar` | Mod JAR をデコンパイルし、必要に応じて 1 つのクラスソースを返す |",
105
+ "| `get-mod-class-source` | デコンパイル済み Mod キャッシュから 1 つのクラスソースを読み取る |",
106
+ "| `search-mod-source` | デコンパイル済み Mod ソースを class、method、field、content で検索する |",
107
+ "| `remap-mod-jar` | Fabric または Quilt の Mod JAR を `yarn` または `mojang` 名へリマップする |"
108
+ ]
109
+ },
110
+ "validation": {
111
+ en: [
112
+ "| `validate-mixin` | Validate Mixin source against a target Minecraft version |",
113
+ "| `validate-access-widener` | Validate Access Widener content against a target Minecraft version |"
114
+ ],
115
+ ja: [
116
+ "| `validate-mixin` | 対象 Minecraft バージョンに対して Mixin ソースを検証する |",
117
+ "| `validate-access-widener` | 対象 Minecraft バージョンに対して Access Widener の内容を検証する |"
118
+ ]
119
+ },
120
+ "registry-diagnostics": {
121
+ en: [
122
+ "| `get-registry-data` | Read generated registry snapshots and optionally include entry data |",
123
+ "| `get-runtime-metrics` | Inspect runtime metrics and latency snapshots |"
124
+ ],
125
+ ja: [
126
+ "| `get-registry-data` | 生成済みレジストリスナップショットを読み取り、必要に応じてエントリデータも含める |",
127
+ "| `get-runtime-metrics` | ランタイムメトリクスとレイテンシスナップショットを確認する |"
128
+ ]
129
+ }
130
+ };
131
+ export function renderToolSurfaceSection(locale, sectionId) {
132
+ const header = locale === "en" ? "| Tool | Purpose |" : "| ツール | 役割 |";
133
+ const divider = "| --- | --- |";
134
+ const rows = SECTION_ROWS[sectionId][locale];
135
+ return [header, divider, ...rows].join("\n");
136
+ }
137
+ //# sourceMappingURL=tool-contract-manifest.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhisang/minecraft-modding-mcp",
3
- "version": "3.0.0",
3
+ "version": "3.1.1",
4
4
  "description": "MCP server with utilities for Minecraft modding workflows",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",