Put foreman-server-1.0.0.jar in plugins/ (with FastAsyncWorldEdit for the world tools) and start the server.
The log shows the MCP address, http://127.0.0.1:25599/mcp by default.
Join with the client mod and press Y, or connect another MCP client with the token Foreman made in
plugins/Foreman/mcp-token.txt (from the server's folder):
For players on other machines, set mcp.host: 0.0.0.0. Each player with foreman.client gets their own token
through the mod. The MCP server speaks plain HTTP: beyond a network you trust, put it behind TLS (a reverse proxy)
or a VPN.
mcp:# Bind to localhost unless the AI client runs on another machine. The server speaks plain HTTP: beyond this# machine, put it behind TLS (a reverse proxy) or a VPN.host:127.0.0.1port:25599# Clients send "Authorization: Bearer <token>". Empty: the token in mcp-token.txt (this folder), made at the first# start. Players with foreman.client also get their own through the mod (tokens.yml), accepted besides this one.token:""# The URL the mod gives its AI. Default: http://<host>:<port>/mcp, with the server's IP when host is 0.0.0.0.# Set it when players reach the server through another address.public-url:""# World used when a tool call names none. Empty: the world of the first online player.default-world:""limits:max-edit-blocks:1000000max-read-blocks:20000max-render-blocks:800000# Assets for the textured renders (look, model previews). The client jar is downloaded from Mojang into cache/# unless client-jar is set; packs are the server's resource packs (zips or folders), later ones winning.resources:client-jar:""packs:[]