RepoMicrosoftMicrosoftpublished Nov 2, 2026seen 3w

microsoft/amplifier-acp-minecraft

Python

Open original ↗

Captured source

source ↗

microsoft/amplifier-acp-minecraft

Description: Independent ACP agents as Minecraft players, with scoped game tools, conversation routing, and bounded work

Language: JavaScript

License: MIT

Stars: 0

Forks: 0

Open issues: 0

Created: 2026-11-02T22:03:49Z

Pushed: 2026-11-06T07:02:42Z

Default branch: main

Fork: no

Archived: no

README:

Minecraft ACP adapter

Part of Amplifier Constellation.

Connect independent ACP agents to Minecraft as ordinary players. Each player has its own process, inventory, credentials, working session and task limits. Minecraft owns the shared world and public conversation. Mineflayer provides the player's body; the adapter gives its agent scoped Minecraft tools through HTTP MCP supplied during standard ACP session setup.

The agent can use Constellation, Codex, or another ACP implementation that supports HTTP MCP. No model SDK, shared agent memory, custom Minecraft mod, or Agent Instance management API is required. Optional integrations are described below.

Set up a player

Requirements: Node 22+, Python 3.12+, a Minecraft Java Edition server compatible with Mineflayer, and a separately authenticated ACP agent. The included game fixtures target Java Edition 1.21.1. The Minecraft client, server and game assets are obtained separately; this repository does not distribute them.

git clone https://github.com/microsoft/amplifier-acp-minecraft.git
cd amplifier-acp-minecraft
npm ci --ignore-scripts

Copy config.example.json and endpoint.example.json to a private installation directory as config.json and endpoint.json. Set the server address, a unique player name, an unused control port and a long random control token. Set the endpoint command to an ACP executable and its working directory. Keep installation directories private (0700) and configuration files owner-readable only (0600).

The example's offline authentication is for an isolated test server whose access you control. Offline names do not verify identity. For an authenticated server, configure Mineflayer's Microsoft authentication and licensed player accounts. Human players also need their normal Java Edition account.

Start the body and controller in separate terminals:

node body.cjs /private/your-player/config.json
python3 adapter.py --home /private/your-player

Repeat with a separate directory, player name and port for every agent. The ops/minecraft-body@.service and ops/minecraft-agent@.service files are optional Linux user-service templates. Adjust their application and Node paths to the installation before enabling them; %h refers to the service user's home.

The body listens on loopback. Its MCP and control requests require a bearer token, and browser origins are rejected. A remote ACP agent needs a trusted route back to the MCP endpoint, such as an SSH tunnel and an mcp_url override. A loopback address is interpreted on the machine where the connecting process runs.

Planner turns and the default observe tool use a recent working view: current world facts and conversation, the last five progress reports, and the last five exact action receipts. Repeated historical observations and duplicate event payloads are omitted with explicit counts/markers. Task identity, authority, deadlines, consumed turns and uncertainty remain unchanged. work_report and work_note return the same recent task view after saving full evidence. Use observe(detail="full") to inspect older retained details when needed. Owner-local /state and durable evidence remain full; /observation is the authenticated recent view. This is a presentation projection, not evidence that omitted actions succeeded, messages were handled, or responsibilities ended.

Newer servers and crossplay

The default body uses Java protocol 1.21.1. It can also join Paper 26.3 through ViaVersion and ViaBackwards, with the body still configured as version: "1.21.1". This does not give the body native knowledge of newer blocks or recipes; translated blocks may have older appearances and newer mechanics need separate validation. Human clients can use the server's native version. Geyser and Floodgate can provide Bedrock connections and account linking outside this adapter.

For this translated connection the adapter leaves only the unused recipe-book UI packet opaque. Inventory, entities, blocks and action results remain decoded and verified. Inventory clicks wait for a matching server ping response to drain late inventory updates before the next operation. Container transfers accept only the exact empty ViaBackwards bookkeeping component for ordinary supplies, preserve it in clicks, and continue refusing actual custom or enchanted items.

Crafting, container and survival regressions can run against a disposable level-name=container-fixture world. Pass its --properties and --node, plus --port when connecting through a version proxy. Crafting and survival require an explicit --log; containers require --out. Never point these fixtures at a shared world: they create blocks, creatures and inventory for their checks.

Optional player screenshots

[Enable on-demand screenshots](docs/screenshots.md) to let an agent capture its Minecraft view, save it in its own workspace and explicitly share the image through an ACP client such as Slack. Rendering stays in this adapter; image inspection and attachment stay in the agent runtime and client.

Talk and work together

With legacy routing, join through Minecraft's Multiplayer screen and address a configured player, for example BuilderOne, help design a bridge. Group prefixes such as Team, address all configured agents. After a direct address, that human's follow-ups continue to the same player for ten minutes. Addressing a different player transfers conversational focus. Other chat remains observable context without automatically starting a model turn.

Explicit requests from configured peers can start bounded turns. The defaults allow four peer requests per hour within forty minutes of human activity. tell(player, text, intent) makes the recipient explicit. intent=request asks for action; update and ack add visible FYI/ACK markers and remain context without waking the recipient in legacy routing. With Instance attention enabled, the host evaluates fresh public messages instead. This is a public chat convention, not a hidden coordination channel or an ACP extension....

Excerpt shown — open the source for the full document.