Seiro MCP Docs

Seiro MCP spatial computing server and visionOS build tools

View the Project on GitHub karad/seiro-mcp

Runbook: Start/Stop the MCP Server

Purpose and scope

Preparation

  1. Dependency + build chain:
    cargo run -p xtask -- preflight
    
  2. Codex MCP registration:
    seiro-mcp config mcp
    

    Paste the output into ~/.codex/config.toml.

  3. Project config from the target project root:
    seiro-mcp config project
    

    This creates seiro-mcp.toml.

Environment variables

Optional launch override

Optional test/mocking helpers

These are intended for local development and tests; do not rely on them for production.

How to launch

Common options

Inspector

npx @modelcontextprotocol/inspector seiro-mcp

If you are developing from source, replace seiro-mcp with target/release/seiro-mcp.

Codex CLI example

[mcp_servers.seiro_mcp]
command = "/Users/<user>/.cargo/bin/seiro-mcp"

Use seiro-mcp config mcp to print this snippet with the actual binary path.

TCP status

TCP is not part of the currently supported local workflow. If TCP is reintroduced later, it should be designed as a separate remote/server mode with localhost defaults, connection-level authentication, exposure guidance, and Inspector-specific validation steps.

Stop flow and exit codes

Troubleshooting

Symptom / code Resolution
Config file missing Run seiro-mcp config project in the project root, or set MCP_CONFIG_PATH to an absolute seiro-mcp.toml path.
MCP_CLIENT_REQUIRED (44) You ran cargo run directly. Launch via Inspector / Codex as a child process.
seiro-mcp: command not found Confirm cargo install seiro-mcp --locked completed, then run seiro-mcp config mcp.
sdk_missing Check details.diagnostics from validate_sandbox_policy, optionally run inspect_xcode_sdks, then install/fix SDK settings and retry.
build_failed and manual root-cause analysis is slow Call inspect_build_diagnostics with the returned job_id to get typecheck-based file/line diagnostics before retrying.
destination_ambiguous Re-run build_visionos_app with the returned details.suggested_destination or choose one entry from details.available_destinations.
Missing project_path / unknown scheme Run inspect_xcode_schemes first. If request omits project_path, it resolves via current-directory .xcodeproj discovery, then seiro-mcp.toml visionos.default_project_path.
artifact_expired Call fetch_build_output within TTL; raise visionos.artifact_ttl_secs if needed and document the retrieval flow.
seiro-mcp --help or skill install --dry-run hangs only in an integrated terminal Retry from Terminal.app first. On macOS we observed integrated-terminal launches blocked in AppleSystemPolicy evaluation before Rust main, while the same binary completed normally from Terminal.app.

Logs and telemetry

Manual verification

  1. Run the build chain above.
  2. In Inspector mode, confirm mcp list shows the visionOS tools.
  3. Restart Codex CLI and confirm mcp describe seiro_mcp shows the visionOS tools, including inspect_xcode_sdks.
  4. In the visionOS mock flow, run inspect_xcode_schemes (optional preflight) -> validate_sandbox_policy -> inspect_xcode_sdks (optional) -> build_visionos_app -> inspect_build_diagnostics (on failure) -> fetch_build_output (on success, optionally set MOCK_XCODEBUILD_BEHAVIOR).

Updating installed local skill definitions

When the bundled skill in this repository is updated, refresh local installed copies:

seiro-mcp skill remove seiro-mcp-visionos-build-operator
seiro-mcp skill install

The canonical public skill source is .agents/skills/seiro-mcp-visionos-build-operator/. seiro-mcp skill install defaults to seiro-mcp-visionos-build-operator; explicit skill-name installation remains supported for compatibility. If you prefer Codex skill-installer, use the GitHub path that maps to that directory:

This GitHub install path only adds the Codex skill. It does not install the Seiro MCP server binary and it does not configure the MCP client connection.