Documentation Configuration
On this page

Configuration

Every setting here is operator-controlled and read from the environment at startup. None of it is reachable from caller input or model output — that separation is the point, not an implementation detail.

Configuration is validated at startup and fails closed. A feature enabled without its backing store does not degrade quietly; the server refuses to start and tells you which variable is missing. Treat a startup failure as the design working.

Authentication#

VariableRequiredNotes
SQUAD_MCP_AUDIENCEyesThe resource-server token audience (accepts a comma-separated list of exact-match aliases of the same resource app). No default — an audience-less server would accept tokens minted for anything.
SQUAD_MCP_ALLOWED_CLIENTSper-userJSON map of every accepted audience to its non-empty allowed client ID list (enforces azp/appid). Required in per-user mode.
SQUAD_MCP_ALLOWED_ISSUERS—Comma-separated issuer allow-list.
SQUAD_MCP_ALLOWED_TENANTS—Comma-separated tenant allow-list.
SQUAD_MCP_ALLOWED_ORIGINS—Strict allow-list. A literal * is rejected at startup.

Model backend#

VariableDefaultNotes
SQUAD_MCP_MODEL_ENDPOINT—Must also appear in the allow-list below, or startup fails.
SQUAD_MCP_ALLOWED_MODEL_ENDPOINTS—The endpoints this server may ever call. Exfiltration defence.
SQUAD_MCP_MODEL_DEPLOYMENT—The Azure OpenAI deployment name.
SQUAD_MCP_MODEL_API_VERSION2024-10-21
SQUAD_MCP_MODEL_APIchat-completionschat-completions or responses. Fails fast on incompatible capability combinations.
SQUAD_MCP_MODEL_CHAT_PROFILE—Optional chat profile selector for model capability preflight.
SQUAD_MCP_MODEL_MAX_OUTPUT_TOKENS—Optional per-call output token cap.
SQUAD_MCP_MODEL_REASONING_EFFORT—Optional reasoning effort level for reasoning-capable deployments.
SQUAD_MCP_MODEL_VERBOSITY—Optional verbosity control where supported by the model API.
SQUAD_MCP_PRICE_CACHED_INPUT_PER_MTOK—Optional cached-input USD rate per million tokens for cost accounting.
SQUAD_MCP_PRICE_CACHE_WRITE_PER_MTOK—Optional cache-write USD rate per million tokens for cost accounting.
SQUAD_MCP_TENANT_CONCURRENCYbuilt-inPer-tenant concurrent run cap.
SQUAD_MCP_TENANT_COST_CEILING_USDbuilt-inPer-tenant spend ceiling. Set this before real users.
SQUAD_MCP_SESSION_IDLE_MSbuilt-inIdle session eviction.

The async pipeline#

VariableDefaultNotes
SQUAD_MCP_REMOTE_PIPELINE_ENABLEDfalseOff by default. The default remote surface is the advisory tools.
SQUAD_MCP_RUN_STATE_BACKENDfilefile (single replica) or table (Azure Table, cross-replica CAS).
SQUAD_MCP_RUN_STATE_DIR—Required for the file backend.
SQUAD_MCP_STORAGE_ACCOUNT—Required for the table backend, renders, memory, and overflow.
SQUAD_MCP_RUN_TABLE_NAMEsquadruns
SQUAD_MCP_WORKER_ENABLEDfalseBackground worker for runs over ~4 minutes. Requires the table backend.
SQUAD_MCP_RUN_ENCRYPTION_KEY_B64—Base64 key. When set, per-stage artifacts, the Council Verdict, and caller request/context are AES-256-GCM encrypted at rest.
SQUAD_MCP_ADVISORY_AUTOPILOT_ENABLEDfalseLets advisory-only runs proceed unattended. Narrows the gate; never removes it for impactful roles.

SQUAD_MCP_ADVISORY_AUTOPILOT_ENABLED is not a gate override. It is scoped to runs whose roles land no impactful action. A run that touches a backlog executor, a deployer, an IaC author, or Azure diagnostics still holds for an operator regardless of this setting.

Squad memory#

The server writes the same .copilot-tracking/squad/ tree the squad produces locally — research notes, plans, verdicts, the run ledger — so a remote run leaves the same durable trail as a local one, and history can be read back automatically on the next run instead of being retyped into the prompt.

VariableDefaultNotes
SQUAD_MCP_ENABLE_MEMORYfalseMaster switch for the memory broker tools.
SQUAD_MCP_MEMORY_BACKENDtabletable, file, or graph.
SQUAD_MCP_MEMORY_TABLE_NAMEsquadmemory
SQUAD_MCP_MEMORY_DIR—Required for the file backend.
SQUAD_MCP_MEMORY_GRAPH_DRIVE_ID—Required for graph: the SharePoint or OneDrive document library.
SQUAD_MCP_MEMORY_GRAPH_ROOT_PATH—Folder path within that library.
SQUAD_MCP_MEMORY_GRAPH_ENCRYPTfalseField-level encryption before content leaves for Graph.
SQUAD_MCP_MEMORY_AUTO_ENABLEDfalseWrite memory automatically as a run progresses, rather than on an explicit tool call.
SQUAD_MCP_MEMORY_DEFAULT_PROJECTdefaultLower-kebab-case; it is a store partition segment.
SQUAD_MCP_ENABLE_ARTIFACTSfalsePersist the squad ledger — team.md, routing.md, state.json, and the append-only logs. Requires memory.

Several destinations at once#

SQUAD_MCP_MEMORY_TARGETS takes a JSON array of named destinations, and SQUAD_MCP_MEMORY_DEFAULT_TARGET names the one used when the caller does not choose. Target names are lower-kebab-case because they are the caller-facing selector. This is how one deployment serves, say, an engineering SharePoint library and a separate customer-facing one without the caller being able to reach across.

Overflow to blob#

Table entities have a size ceiling, so a large artifact would otherwise fail the write. With SQUAD_MCP_MEMORY_OVERFLOW_ENABLED, anything past SQUAD_MCP_MEMORY_OVERFLOW_THRESHOLD_BYTES (default 32 KiB) spills into SQUAD_MCP_MEMORY_OVERFLOW_CONTAINER with a pointer left in the entity.

Deterministic render#

VariableDefaultNotes
SQUAD_MCP_ENABLE_RENDER_PPTXfalseEnables squad_render_pptx.
SQUAD_MCP_RENDER_PYTHON_PATH—Required when enabled — the in-image python-pptx interpreter.
SQUAD_MCP_RENDER_SCRIPTS_DIR—Required when enabled.
SQUAD_MCP_RENDER_BLOB_CONTAINERrenders
SQUAD_MCP_RENDER_SAS_TTL_MINUTES60User-delegation SAS lifetime. The SAS is never logged.
SQUAD_MCP_RENDER_BRAND_TEMPLATE_PATH—Optional branded .pptx template.

Business tools#

VariableDefaultNotes
SQUAD_MCP_ENABLE_BUSINESS_TOOLSfalseEnables squad_business_plan and squad_backlog. Requires a model endpoint.

Copilot SDK stage executor#

Opt-in backend that drives tool-enabled advisory and upstream 0.22.0 stages through a disposable Linux sandbox running copilot --headless (see host/sandbox/README.md). Requires SQUAD_MCP_ENABLE_ARTIFACTS=true, SQUAD_MCP_ENABLE_MEMORY=true, and SQUAD_MCP_MEMORY_AUTO_ENABLED=true.

VariableDefaultNotes
SQUAD_MCP_STAGE_EXECUTORbuiltinbuiltin (Azure OpenAI) or copilot (GitHub Copilot SDK sandbox).
SQUAD_MCP_COPILOT_CLI_URL—Endpoint of the headless Copilot runtime (web and worker must each have a distinct runtime owner).
SQUAD_MCP_COPILOT_CONNECTION_TOKEN—Required 32+ character shared secret authenticating server-to-sandbox RPC.
SQUAD_MCP_COPILOT_GITHUB_TOKEN—Shared GitHub token for non-per-user testing only (alternatives: SQUAD_MCP_COPILOT_GITHUB_TOKEN_FILE, SQUAD_MCP_COPILOT_GITHUB_TOKEN_COMMAND, selected via SQUAD_MCP_COPILOT_GITHUB_TOKEN_SOURCE). Ignored in per-user mode.
SQUAD_MCP_COPILOT_IDENTITY_REVERIFY_MS600000Background entitlement re-verification interval for shared identity mode.
SQUAD_MCP_UPSTREAM_RUNTIME_ENABLEDtrueUses the bundled byte-exact microsoft/hve-squad@0.22.0 upstream coordinator after explicit Init.
SQUAD_MCP_COPILOT_ROUTINGoffoff or economy; also proposes ranked/economy routing at upstream Init without overriding user choice.
SQUAD_MCP_COPILOT_MODEL—Optional fixed model when native routing is off.
SQUAD_MCP_COPILOT_TOOLS—Optional explicit built-in sandbox tool list.
SQUAD_MCP_COPILOT_ALLOW_SHELLtrueSet false to disable bash in the sandbox.
SQUAD_MCP_COPILOT_SUBAGENTStrueSet false to disable parallel pinned sub-agent fan-out via task.
SQUAD_MCP_COPILOT_ALLOWED_HOSTS—Optional public HTTPS host allow-list (pair with COPILOT_BROWSER_ALLOWED_HOSTS on the sandbox container for squad-browser).
SQUAD_MCP_COPILOT_SANDBOX_WORKSPACE/workspaceVirtual project mount root inside the sandbox.
SQUAD_MCP_COPILOT_SESSION_STATE_DIRtemp dirDurable directory (e.g. ACA AzureFile mount) for Copilot session logs and checkpoints.

Per-user GitHub identity#

Opt-in mode that binds each signed-in Entra user (tid, oid) to their own GitHub Copilot licence and private storage partition (see Cowork & Per-User and docs/reference/per-user-github.md). Requires SQUAD_MCP_STAGE_EXECUTOR=copilot, durable pipeline + worker, table/file memory (Graph disabled), and a single allowed Entra tenant.

VariableDefaultNotes
SQUAD_MCP_PER_USER_GITHUB_ENABLEDfalseMaster switch. Exposes squad_github_status, squad_github_connect, and squad_github_disconnect.
SQUAD_MCP_PUBLIC_BASE_URL—Public HTTPS origin (no path) used for Entra and GitHub OAuth callbacks.
SQUAD_MCP_GITHUB_CLIENT_ID—GitHub App (preferred) or OAuth App client ID.
SQUAD_MCP_GITHUB_CLIENT_SECRET—Client secret (store in Key Vault; never commit).
SQUAD_MCP_GITHUB_WEB_URLhttps://github.comGitHub web base URL.
SQUAD_MCP_GITHUB_API_URLhttps://api.github.comGitHub API base URL.
SQUAD_MCP_LINK_ENTRA_CLIENT_ID—Confidential Web Entra client ID for the browser ownership check.
SQUAD_MCP_LINK_ENTRA_CLIENT_SECRET—Browser Entra client secret (store in Key Vault).
SQUAD_MCP_LINK_ENTRA_TENANT_ID—Single tenant-specific authority (must match the sole entry in SQUAD_MCP_ALLOWED_TENANTS; never common or organizations).
SQUAD_MCP_GITHUB_LINK_KEY_B64—Independent 32-byte base64 key encrypting GitHub grants and flows (must differ from SQUAD_MCP_RUN_ENCRYPTION_KEY_B64).
SQUAD_MCP_GITHUB_LINK_KEY_IDcurrentActive key ID; pair with SQUAD_MCP_GITHUB_LINK_OLD_KEYS during rotation.
SQUAD_MCP_GITHUB_LINK_STOREtabletable (uses SQUAD_MCP_GITHUB_LINK_TABLE and SQUAD_MCP_GITHUB_LINK_FLOW_TABLE) or file (uses SQUAD_MCP_GITHUB_LINK_DIR).

This list is the shape of the surface, not the deployment procedure. Exact parameter wiring, Key Vault references, and the Bicep parameters live in host/RUNBOOK.md.

Search documentation

Search the English documentation. Press Esc to close.

Loading search…