AI Integrations
HostShift is CLI-first. AI integrations call the deterministic Go binary instead of reimplementing migration behavior.
MCP Server
Section titled “MCP Server”Run the stdio MCP server:
hostshift mcp stdioValidate the MCP tool surface and Claude Desktop config example:
hostshift mcp doctor --jsonThe server exposes safe planning tools:
hostshift_doctorhostshift_discoverhostshift_planhostshift_explainhostshift_reviewhostshift_prepare_dry_runhostshift_sync_dry_runhostshift_verify_dry_runhostshift_cutover_dry_runhostshift_statushostshift_resume_dry_runhostshift_profile_migratehostshift_policy_sourcehostshift_capabilitieshostshift_rollback
No MCP tool exposes --apply. Target mutations still require a human-operated CLI command.
The server also exposes one MCP prompt:
hostshift_migration_operator: loads the HostShift source-safety rules, preferred dry-run workflow, and operator approval boundary into the client.
The server exposes local MCP resources:
hostshift://source-safetyhostshift://migration-workflowhostshift://capabilities
Use hostshift_explain when an AI client needs a concise migration brief. Use hostshift_review when it needs structured findings, workload-aware recommendations, suggested YAML snippets, an operator checklist, and an AI safety brief. Use hostshift_capabilities when it needs the supported platform, workload, check, source fact, and package capability catalog before proposing a migration plan. hostshift_status reads saved state, while hostshift_resume_dry_run validates the saved plan fingerprint and reports completed, pending, failed, and uncertain steps without changing state. Use hostshift_profile_migrate for local v1-to-v2 profile conversion and hostshift_policy_source when the AI client needs the source immutability contract as structured data. These commands run without remote mutation.
Claude Desktop
Section titled “Claude Desktop”Start from integrations/claude/claude_desktop_config.example.json:
{ "mcpServers": { "hostshift": { "command": "/usr/local/bin/hostshift", "args": ["mcp", "stdio"] } }}Adjust command to the installed hostshift binary path.
Check the example before copying it:
hostshift mcp doctor --claude-config integrations/claude/claude_desktop_config.example.json --jsonThe Codex plugin under plugins/hostshift provides the migrate-server skill. It is an operator layer around the same CLI and safety model.
Safety Boundary
Section titled “Safety Boundary”AI clients may inspect plans and run source read-only discovery through HostShift. They must not bypass HostShift by running arbitrary SSH commands.
If an AI client suggests an apply command, run hostshift_review, hostshift_explain, hostshift plan, or the matching dry-run first and review blockers, actions, streams, and rollback metadata manually.