Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 929 Bytes

File metadata and controls

26 lines (19 loc) · 929 Bytes

Session Defaults

By default, XcodeBuildMCP uses a session-aware mode. The client sets shared defaults once (simulator, device, project/workspace, scheme, etc.) and all tools reuse them. This reduces schema size and repeated payloads.

How it works

  • Call session_set_defaults once at the start of a workflow.
  • Tools reuse those defaults automatically.
  • Use session_show_defaults to inspect current values.
  • Use session_clear_defaults to clear values when switching contexts.

See the session-management tools in TOOLS.md.

Opting out

If you prefer explicit parameters on every tool call, set:

"env": {
  "XCODEBUILDMCP_DISABLE_SESSION_DEFAULTS": "true"
}

This restores the legacy schemas with per-call parameters while still honoring any defaults you choose to set.

Related docs