Seiro MCP Docs

Seiro MCP server and visionOS tools

View the Project on GitHub karad/seiro-mcp

Quickstart

This repository ships the visionOS build MCP server. Follow these steps to finish cargo checkcargo test --allcargo fmt -- --checkcargo build --release within ~30 minutes on a fresh machine and call the three tools (validate_sandbox_policy / build_visionos_app / fetch_build_output) from an MCP client.

Prerequisites

Installation

is your DevToolsSecurity status is disabled, run sudo DevToolsSecurity -enable command.

$ DevToolsSecurity -status
Developer mode is currently disabled.

$ sudo DevToolsSecurity -enable

1. Clone this repository

$ git clone git@github.com:karad/seiro-mcp.git

2. Fetch dependencies

cargo fetch

3. Prepare config.toml

(see docs/config.md for details)

Switching configs with MCP_CONFIG_PATH

Run the build and checks

Recommended (runs the minimum local quality gate):

cargo run -p xtask -- preflight

Manual alternative:

cargo fetch
cargo check
cargo test --all -- --nocapture
cargo fmt -- --check
cargo clippy -- -D warnings
cargo build --release

Additional repository checks:

cargo run -p xtask -- langscan
cargo run -p xtask -- docs-langscan
cargo run -p xtask -- check-docs-links
cargo run -p xtask -- loc-baseline
cargo run -p xtask -- loc-guard
cargo run -p xtask -- api-baseline

If any step fails, fix and rerun.

Using from Codex CLI

Add an entry like the following to Codex CLI config (~/.codex/config.toml) to call the visionOS tools:

[mcp_servers.seiro_mcp]
command = "/<this-repo-path>/target/release/seiro-mcp"
args = ["--transport=stdio"]
env.MCP_CONFIG_PATH = "/<this-repo-path>/config.toml"
env.MCP_SHARED_TOKEN = "change-me-please"
working_directory = "/<this-repo-path>"

How It Works

1. Launch the server via an MCP client

2. Validate sandbox policy before building

mcp call validate_sandbox_policy '{
    "project_path": "/Users/<user>/codex/workspaces/vision-app",
    "required_sdks": ["visionOS", "visionOS Simulator"],
    "xcode_path": "/Applications/Xcode.app/Contents/Developer"
}'

3. Start a build with build_visionos_app

mcp call build_visionos_app '{
    "project_path": "/Users/<user>/codex/workspaces/VisionApp/VisionApp.xcodeproj",
    "scheme": "VisionApp",
    "destination": "platform=visionOS Simulator,name=Apple Vision Pro",
    "configuration": "Debug",
    "extra_args": ["-quiet"],
    "env_overrides": {"MOCK_XCODEBUILD_BEHAVIOR": "success"}
}'

4. Download artifacts with fetch_build_output

mcp call fetch_build_output '{
    "job_id": "<UUID returned by build_visionos_app>",
    "include_logs": true
}'

Startup modes and auth tips

Troubleshooting

Symptom Resolution
CONFIG_MISSING_FIELD auth [auth].token is missing. Set a 16+ character value.
path_not_allowed Add the project’s parent directory to visionos.allowed_paths, then restart the server.
sdk_missing Install visionOS / Simulator SDK from Xcode > Settings > Platforms.
scheme_not_allowed Add the scheme to visionos.allowed_schemes and restart the server.
timeout Increase max_build_minutes or reduce project size/clean build.
artifact_expired Call fetch_build_output sooner or raise artifact_ttl_secs.

Logs and telemetry