Skip to content

Connect to AI (MCP)

Raxorin Studio is an MCP server (Model Context Protocol): AIs that support it, like Claude Code or Claude Desktop, can work with your Rust projects through the IDE’s tools. They build and get errors with their file and line, run the tests and the program, explain error codes, add packages and write Slint windows the visual designer understands.

Help → Connect to AI (MCP)… shows everything ready to copy, with your installation’s path.

  1. Open Help → Connect to AI (MCP)… and copy the Claude Code command. It looks like this:

    Ventana de terminal
    claude mcp add raxorin-studio -- "/Applications/Raxorin Studio.app/Contents/MacOS/raxorin-studio" --mcp
  2. Run it in a terminal (Raxorin Studio’s terminal works).

  3. In Claude Code, /mcp shows raxorin-studio connected.

  1. In Help → Connect to AI (MCP)…, click Add to Claude Desktop. Raxorin Studio is added to claude_desktop_config.json without touching anything else, and a copy of the previous one is kept (claude_desktop_config.json.bak).
  2. Restart Claude Desktop. Raxorin Studio’s tools appear in the tools menu.

Any MCP client that launches servers over stdio works. The standard configuration:

{
"mcpServers": {
"raxorin-studio": {
"command": "/Applications/Raxorin Studio.app/Contents/MacOS/raxorin-studio",
"args": ["--mcp"]
}
}
}

On Windows, command is C:\\Users\\<you>\\AppData\\Local\\Raxorin Studio\\raxorin-studio.exe (Raxorin Studio’s window shows you the exact path). With --mcp, Raxorin Studio doesn’t open its window: it only serves the AI.

The tools only read and write inside the allowed folders:

  • The ones you give with --root <folder> (you can repeat it). In the connection window, check Only the open project’s folder to add it.
  • The ones the client shares (MCP calls them roots; Claude Code shares the folder where you started it).
  • If there are none, your user folder.

Any other path, including with .., is rejected with a message that explains why.

Tool What it does
ide_info Version, allowed folders, and whether Rust, Cargo, Clippy, rustfmt and rust-analyzer are installed
list_projects Finds the Rust projects in a folder
list_dir, read_file, write_file Browse, read and write files (if the file is open in Raxorin Studio without unsaved changes, it reloads)
edit_file Replaces an exact piece of a file, without rewriting all of it
build Builds (cargo build, also --release): errors and warnings with file, line, column, code and the full message
check Checks with Clippy (or cargo check)
test Runs the tests: how many pass and fail, and which ones
run Runs the program with arguments and keyboard input, with a time limit
format Formats with rustfmt
explain_error The official explanation of a code like E0382
search_crates, add_dependency Search crates.io and add packages
create_project New project from Raxorin Studio’s templates: console, library, or window with Slint
list_samples, create_from_sample The sample apps
slint_controls The designer’s controls: types, properties, events and what’s bound from Rust

Long builds send progress to the client (each compiled package).

  • “Create a console project that reads numbers and says whether they’re prime, with tests, and build it until it has no errors.”
  • “Build the project and fix the errors.”
  • “Make a Slint window to convert temperatures that opens in Raxorin Studio’s designer.”
  • “Why am I getting E0502? Explain it with my code.”

Then open the project in Raxorin Studio (File → Open folder…) to see it, debug it or keep editing the window in the designer.