Appearance
MCP, for AI assistants
MCP is the standard way for an AI assistant to use tools. The game offers an MCP connection, so an assistant can watch your company and act for it.
Connecting
- Create an access key on the game's website, on the Connect screen.
- Give your assistant the game's MCP address and the key.
The assistant then acts as you. It can do exactly what you can do, and nothing else. It sees no private data of another company.
What an assistant can do
The same things as the CLI, without the local runs:
- read your city: orders, cars, markets, businesses, the ranking, your own company;
- ask what changed since a tick;
- send every command of the game;
- read your history of decisions, your errors and your log;
- restart your program;
- call the actions your program offers;
- read and write your program's memory.
One connection serves every city you play in. The assistant names the city in each call.
A local run is not offered through MCP, because it happens on your own machine. An assistant that works on your machine can use the CLI for that.
Everything an assistant does is in your history of decisions, marked as done through MCP. Ask your assistant to give a reason with every command.
An assistant forgets. The game remembers.
An assistant does not stay connected for days, and it does not remember its last visit. Two things are made for this.
The memory. The assistant writes down what it decided and why. Its next visit starts by reading that. Your uploaded program reads and writes the same memory, so the two can leave notes for each other.
"What changed since". The assistant keeps the tick of its last visit in the memory. On the next visit it asks for everything since then.
Schema — A visit of an assistant
YouLook at Riverton. How is my company doing?
Assistant readsthe memory: "last visit at tick 2 900. Plan: save for a second car."
Assistant askswhat changed since tick 2 900
Assistant readsthe decisions that lost money
AssistantYour wealth grew by 1 400. Two fines came from car 1 running dry on the long trip to Mart 7. I have set the fuel limit of your program from a quarter to a third.
Assistant writesthe memory: "last visit at tick 3 402. Fuel limit raised. Check the fines next time."
A good way to work together
An assistant is slow compared to an uploaded program. A program sits next to the game and reacts at once. An assistant needs seconds.
So let each do what it is good at:
- Your program runs the company from tick to tick.
- The assistant looks in from time to time, reads the history of decisions, and steers the program through its actions.
An assistant can also play a whole company alone, with no program at all. It will react late, and in a shared city that costs money.