ef792ec3b9
The MCP tools are generated from the CLI's clap definition (cli_tools.rs): mods_search is horizon-launcher mods search, with the same arguments, and a call runs that command with --json. So the mod browser, modpacks, hosted servers, settings, game arguments, data collection, desktop entry and the benchmark are all reachable, and new CLI commands become tools by themselves. Destructive ones need confirm: true and carry destructiveHint. The session keeps play, server (with server_command/log/stop), account_list and account_sign_in in-process, renamed after the CLI (launch_client is play; play takes join for an invite code). New CLI commands: settings [KEY VALUE] (selected version, folders, install-new-versions, opening animation) and agent-config, the MCP config for Claude Code, Codex, Cursor and any client. play takes --world and --creative. Under No AI, mcp and agent-config are hidden and refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
293 B
Rust
15 lines
293 B
Rust
//! The launcher's core, shared by the GUI, the CLI and the MCP server.
|
|
pub mod account;
|
|
pub mod agents;
|
|
pub mod backend;
|
|
pub mod browser;
|
|
pub mod desktop;
|
|
pub mod heads;
|
|
pub mod modpacks;
|
|
pub mod mojang;
|
|
pub mod servers;
|
|
pub mod signed;
|
|
pub mod sources;
|
|
pub mod tailscale;
|
|
pub mod telemetry;
|