Seiro MCP server and visionOS tools
validate_sandbox_policy, build_visionos_app, fetch_build_output) require macOS + Xcode 16 with visionOS SDK installed.This repository treats the MCP surface as a contract:
code values are stable and are considered part of the public API.code, remediation, retryable, sandbox_statecode, or replacing a code with another one.code / retryable / sandbox_state / remediation).specs/**/contracts/*.json.tests/integration/refactor_contracts.rs and fixtures under tests/fixtures/).cargo run -p xtask -- api-baseline specs/009-oss-release-prep/contracts/api-baseline.txt
Review the diff and update docs/contracts when intentional.
rmcp crate v0.8.5; compatible with Model Context Protocol as of 2024Q2.rmcp::transport::{stdio,tcp}. Default is stdio; --transport=tcp listens on server.host / server.port.npx @modelcontextprotocol/inspector)
MCP_SHARED_TOKEN=<token> MCP_CONFIG_PATH=$PWD/config.toml \
npx @modelcontextprotocol/inspector target/release/seiro-mcp -- --transport=stdio
MCP_SHARED_TOKEN=<token> MCP_CONFIG_PATH=$PWD/config.toml \
npx @modelcontextprotocol/inspector mcp connect tcp://127.0.0.1:8787 -- \
target/release/seiro-mcp --transport=tcp --config=$PWD/config.toml
MCP_CONFIG_PATH via CLI env to run with any config file.~/.codex/config.toml (use absolute paths; no env expansion):
[mcp_servers.visionos]
command = "/<this-repo-path>/target/release/seiro-mcp"
args = ["--transport=stdio"]
env.MCP_CONFIG_PATH = "/<this-repo-path>/config.toml"
env.MCP_SHARED_TOKEN = "<token>"
working_directory = "/<this-repo-path>"
mcp list shows the visionOS tools. Build the release binary first.args = ["--transport=tcp"] and align server.host / server.port.target/release/seiro-mcp from cargo build --release; visionOS tools respond via Inspector (stdio/tcp).command points to the binary (absolute path) and env.MCP_CONFIG_PATH / env.MCP_SHARED_TOKEN are set; tools register successfully.src/server/config/mod.rs, blocking client startup.cargo run directly exits immediately because no MCP client is attached (MCP_CLIENT_REQUIRED exit 44). Always launch via an MCP client.validate_sandbox_policy returns sdk_missing; visionOS tools are unavailable on Linux.