Skip to main content

run

Function run 

Source
pub async fn run(
    directory: &Path,
    cli_profile: Option<&str>,
    profiles_dir: Option<&Path>,
) -> Result<(), CliError>
Expand description

Proxy stdio JSON-RPC to the developer MCP HTTP endpoint.

Unlike most subcommands, mcp does not require a project.toml — MCP clients launch this binary from their own working directory, not from a deploy project root. The active profile is resolved from --profile / MZ_DEPLOY_PROFILE (passed in via cli_profile), falling back to the .mzprofile file in directory if one happens to exist.