Setup tab AI

The settings of the MCP server of Usine: an AI assistant such as Claude connects to it to build and change your patches. See How to use the MCP server in Usine to connect your assistant.

If the tab shows not available in this version, your Usine edition does not include the AI features. The tab is hidden in a stand-alone application and when Usine is started with the command line option -nomcp.

MCP

enable MCP

Starts the MCP server. The setting is saved: the server starts with Usine from then on.

MCP port

Port of the server, 3100 by default. Change it only when another program uses this port, and give the same port to the assistant (option --port of the install script).

open MCP to the network

Off by default: only the programs of this computer reach the server. Turn it on when the assistant runs on another computer, and open the port in the firewall of this computer. The assistants of the other computers must then send the MCP token below; the programs of this computer that connect through localhost or 127.0.0.1 need none. A tunnel or a proxy that runs on this computer (ssh -R, ngrok...) brings its clients through localhost, so that they need no token either: do not open one to the port of the server.

An assistant that has the token and reaches the port controls Usine: it can load, save and clear your patches, run scripts that read and write files, read the log of Usine, and click and type anything in the windows of Usine as you can. Turn this option on only on a network you trust, and give the token only to the assistants you use.

MCP token

The password that an assistant of another computer sends to the server while open MCP to the network is on: Usine creates one when you turn the network access on and none exists. Give it to the bridge of that computer: option --token <token> of the install script, or the environment variable USINE_MCP_TOKEN; a client that connects without the bridge sends the header Authorization: Bearer <token>, or adds ?token=<token> to the address of the server. The spaces around a token typed or pasted here are removed. A client of this computer that uses another address than localhost or 127.0.0.1 (the network address of the computer, WSL2, a virtual machine, a container) sends it too. Without the right token the server refuses the client (error 401) and warns once in the trace panel for each address. Changing the token restarts the server while the network access is on: the connected assistants reconnect, and those of the other computers need the new token. The token is shown here and saved in clear in the setup file of Usine; a setup that is not saved when Usine quits (save setup on quit off in the expert tab, the command line option -dontsavesetup, an override setup) must hold the line MCP token= itself, or a new token is made at each start.

new MCP token

Creates a new MCP token in place of the current one, which then no longer works: give the new token to the assistants of the other computers. A token given by an additional or override setup cannot be replaced here.

trace MCP messages

Shows each request of the assistant and each answer of Usine in the trace panel, cut to 512 characters. They are always written in the log file of Usine.

show MCP activity

On by default: while the assistant works, the information panel at the top right of the main window names what it does, such as MCP: create module osc-main. The line goes away a few seconds after its last action, and never covers another indication of the panel (the progress of a load, the quantize, the pre-listen). Turn it off to keep the panel for Usine alone.

version 7.0.250921

Edit All Pages