Skip to content

Update full connector for released Java 26.1 support - #3

Open
chrisb-prime wants to merge 1 commit into
mainfrom
chrisb-prime-full-java-26-1-update
Open

chrisb-prime wants to merge 1 commit into
mainfrom
chrisb-prime-full-java-26-1-update

Conversation

@chrisb-prime

Copy link
Copy Markdown
Owner

Changes:

Full remaining connector update for chrisb-prime/minecraft-mcp-server only. This PR is not a deployment and must not be automatically merged.

  • Pin released Mineflayer 4.39.0 and minecraft-data 3.119.0, with minecraft-protocol 1.68.0 in the lockfile; require Node >=22 and use the released runtime's supported Java version.
  • Add inventory-cursor-status and explicit recover-inventory-cursor, authoritative full inventory snapshots, crafting-grid/result diagnostics, exact placement confirmation, and one bounded reread only for an unchanged pre-click snapshot. No blind consuming retries or rollback claims.
  • Verify ordinary unit-input Java 26.1 2x2 crafting against every input/output click and the actual server recipe preview; confirm exact accessible output before reporting success.
  • Expose armor plus main/offhand in status.equipment, explicitly a local-model snapshot with serverConfirmed: false.
  • Add read-only villager-trades with actual adjusted prices, stock/uses and authoritative profession provenance (merchant_title or captured registry). No numeric-ID-8 hardcoding, products-based profession inference or purchases.
  • Add stonecutter-recipes and stonecut using server-synced recipes, native menu order and exact requested output counts, including yields. Reject uncertainty before further spending.
  • Preserve earlier chest/hopper/furnace, planting, placement, equipment, survival and navigation features already merged into the fork. Document live coverage and the existing navigation limitation.

Reconciliation and scope

Refreshed the fork's actual default branch, main at 1abf63c296606b2bd1186fcf278eaf395b991092, in a new isolated publishing worktree. It already contains baseline PR #1 (db72d0fc, including 880c4f7) and teammate/storage PR #2 (1abf63c). These are not republished.

Imported Git objects read-only from the authoritative local candidate a75e2f2101a0fad2e6f8fc1f4e7a117a5b4fefea. Compared every baseline difference: c6911e1 and fork main differed only in README's existing fully qualified upstream-PR clarification. Applied only the eight subsequent commits, in order, using git cherry-pick --no-commit 343b906 085d5a3 de9497f 52ccd5a 927e0da 2afe2dd 36e60c5 a75e2f2, then committed the reconciled result. No conflicts or directory overwrite. Publishing commit: 24854f7cc8b256635c6658e3108b855d2a2a1189, head chrisb-prime-full-java-26-1-update.

All runtime code, tests, manifests and lockfile are identical to the tested candidate. Only README differs: preserved fork clarification plus accurate navigation/live-coverage notes. Existing storage/furnace/placement/interaction/navigation implementations are unchanged from fork main. Baseline history remains an ancestor.

No primary-checkout, active runtime, rollback, configuration, reload or gameplay changes. No force-push. The survival-interaction-drop branch remains unchanged at 880c4f7a871afaf96db07b6bb25fcdca2636d626; yuniko-software/minecraft-mcp-server#275 is separate and was not edited. No Agent merge or auto-merge requested.

Validation performed on the reconciled publishing checkout

All tests were offline AVA/tsx/Sinon tests with fake clients/native plugin injection; no live connector was started and no Minecraft MCP calls were made.

Exact command Result
npm ci --ignore-scripts --no-audit --no-fund Passed; installed locked dependencies in this checkout only
npm test -- tests/cursor-tools.test.ts tests/inventory-crafting.test.ts tests/stonecutter-tools.test.ts tests/villager-tools.test.ts tests/crafting-tools.test.ts tests/teammate-tools.test.ts Passed: 99 tests
npm test -- --tap Passed: 305 tests, 0 failures; full offline regression justified by dependency/runtime reconciliation
npx --offline tsc --noEmit Passed
npm run lint Passed
npm run build Passed; publishing checkout only
npm ls mineflayer minecraft-data minecraft-protocol Passed: 4.39.0 / 3.119.0 / 1.68.0
git diff --check Passed
git diff --cached --check Passed before commit
git diff origin/main...HEAD --check Passed after commit
git diff --name-status a75e2f2 HEAD README only; runtime/tests/dependencies match candidate
git merge-base HEAD origin/main 1abf63c296606b2bd1186fcf278eaf395b991092

Separately reported approved live coverage (not rerun here)

The sole approved gameplay session reported these results on the verified craft-grid connector; they are evidence for the preserved implementation, not new live validation of this publishing checkout:

  • Stick crafting amounts 1, 8 and 27 succeeded with exact material deltas; final 256 sticks (4x64) and empty authoritative cursor/grid/result. All four copper armor pieces were reflected in status.
  • Chest inspection: 54 slots, 42 empty, 12 occupied entries, including nine reserved oak logs and one spare plank. No transfer in the current smoke; historical chest transfers were live-used.
  • Furnace inspection: input/output null, coal 29. Smoker: potatoes 25, baked potatoes 39, fuel null; left alone.
  • Stonecutter inspection rejected a distant target, then returned serverSynced: true: cobblestone slab yield 2/stair 1/wall 1 and 11 stone recipes with slab yield 2/others 1. No cutting in current smoke. Earlier 52ccd5a live 1+63 andesite -> polished andesite conversions confirmed exact counts and empty cursor; that algorithm is preserved.
  • Villager mason 51: serverConfirmed: true, profession: minecraft:mason, job: mason, professionSource: merchant_title from canonical server translation; numeric metadata mapping explicitly unknown. Level 1, clay 10 -> emerald 1 and emerald 1 -> bricks 10, each with 16 available uses. purchased: false; owned window closed. No trades purchased.
  • Final reported state: bread 6 plus stone axe 1, empty cursor/grid/result, health/food 20.

Remaining limitations

Navigation is not expanded or fixed: door centering/manual-forward workaround after a five-second path timeout remains a known live limitation.

Offline-only coverage: the new 2x2 engine's 32 logs -> 128 planks and diagonal shears, explicit occupied-server-cursor recovery, negative/concurrent/full-capacity/timeout cases, full furnace batches/retrieval/multiyields/families and hopper automation. No additional world materials were consumed to fill coverage. Recipe/failure-mode coverage is not claimed universally; partial effects remain explicit and are not rolled back.


Reconcile only 343b906..a75e2f2 updates onto fork main 1abf63c. Preserve merged survival/storage baseline and fork README clarification. Runtime and tests match a75e2f2101a0fad2e6f8fc1f4e7a117a5b4fefea; document existing navigation and live-coverage limits.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant