Repository navigation
Configuration
Type: Reference · Audience: Operators editing MCOS runtime configuration · Version: v0.11.0-alpha.2
New in v0.11.0-alpha.2 —
mcpGateway.tlsEnabled/tlsListenPort/tlsCertThumbprint. Three new optional fields enable HTTPS dual-bind on the MCP gateway. DefaulttlsEnabled=falsekeeps existing installs HTTP-only. See TLS & HTTPS for the operator-side enable flow.
All runtime behaviour is controlled by a single JSON file: mcos.config.json. The file lives in the per-host MCOS instance directory, resolved at startup by FileBackedConfigurationService. Every field has a safe default — a blank or missing file is self-healed on load.
Warning:
POST /api/configreplaces the entire document. Sending a partial object such as{ "instanceName": "foo" }silently wipes every other top-level key includingactiveProfile,mcpGateway,pools, andclients. Always follow the GET-mutate-POST pattern shown in this page.
| Path | Notes |
|---|---|
%ProgramData%\Master Control Orchestration Server\mcos.config.json |
Primary config file on a standard MSI install |
| Runtime state and logs | %PUBLIC%\Documents\Master Control Orchestration Server\logs\ |
FileBackedConfigurationService resolves the instance directory at startup. The exact path is logged in runtime/events.jsonl on first launch.
%%{init: {'theme':'dark', 'themeVariables': {'primaryColor': '#031018', 'primaryTextColor': '#E6FCFF', 'primaryBorderColor': '#00f6ff', 'lineColor': '#5A00E8', 'secondaryColor': '#031827', 'tertiaryColor': '#0a1018'}}}%%
flowchart TB
classDef core fill:#031018,stroke:#00F6FF,color:#E6FCFF,stroke-width:2px;
classDef store fill:#0a0a1a,stroke:#5a00e8,color:#d4c4ff;
classDef pool fill:#031a14,stroke:#1cf2c1,color:#a8efe0;
classDef bad fill:#1a0a18,stroke:#ff00d9,color:#ffd1f3;
Boot([Service start]):::core
Locate["FileBackedConfigurationService\nresolve instance directory"]:::core
Exists{"mcos.config.json\nexists?"}:::core
Read["Read JSON from disk"]:::store
ParseOK{"Parse succeeded?"}:::core
Defaults["buildDefaultConfiguration()\nall safe defaults"]:::pool
ProfileOK{"activeProfile\npresent and valid?"}:::core
ReseedProfile["Re-seed activeProfile identity\ndetectLocalEnvironment()\nwarning to events.jsonl"]:::bad
EndpointsOK{"baseline catalog\nendpoints present?"}:::core
ReseedEndpoints["Re-seed missing\nbaseline endpoints\nwarning to events.jsonl"]:::bad
Ready([Configuration ready\nRuntime starts]):::pool
Boot --> Locate
Locate --> Exists
Exists -->|no| Defaults
Exists -->|yes| Read
Read --> ParseOK
ParseOK -->|no| Defaults
ParseOK -->|yes| ProfileOK
Defaults --> ProfileOK
ProfileOK -->|missing or invalid| ReseedProfile
ProfileOK -->|ok| EndpointsOK
ReseedProfile --> EndpointsOK
EndpointsOK -->|missing| ReseedEndpoints
EndpointsOK -->|ok| Ready
ReseedEndpoints --> Ready
Self-heal behaviour (active since v0.9.x): if the on-disk config has been wiped or partially corrupted, FileBackedConfigurationService re-seeds the activeProfile identity block from detectLocalEnvironment() and any missing baseline-catalog endpoints before handing the config to the runtime. The service starts cleanly rather than failing. A warn-severity event is written to runtime/events.jsonl for each re-seeded field.
| Key | Type | Default | Notes |
|---|---|---|---|
instanceName |
string | "Master Control Orchestration Server" |
Human label shown in dashboard header and WinUI Shell |
activeProfile |
object | Auto-detected | Host identity and advertised IP — see below |
mcpGateway |
object | See below | MCP gateway substrate config |
listener |
object | See below | Admin HTTP listener config |
httpListenerPort |
int | 7300 |
Admin surface port (shorthand; also reflected in listener) |
telemetry |
object | See below | Telemetry collection and persistence settings |
governance |
object | See below | Forsetti governance and CLU config |
discovery |
object | See below | DNS-SD and UDP beacon settings |
lan |
object | See below | LAN trust and auth posture |
pools |
array | [] |
Managed endpoint pool definitions — managed via /api/pools
|
mcpServers |
array | [] |
MCP server registration catalog |
subAgents |
array | [] |
Sub-agent registration catalog |
clients |
array | [] |
LAN client records — managed via /api/clients
|
Auto-populated on first run from detectLocalEnvironment(). Two fields are commonly tuned by operators.
"activeProfile": {
"environmentName": "PC-GAMING-R7-58 - Windows 11 Pro (build 26200)",
"macAddress": "9C:6B:00:13:77:83",
"preferredBindAddress": "",
"seededEndpoints": []
}| Field | When to change |
|---|---|
preferredBindAddress |
Set to a specific LAN IPv4 (e.g. 192.168.1.7) when the host is multi-homed and the auto-detected address surfaces an IPv6 ULA in discovery documents. DNS-SD records, /.well-known/mcos.json, and /api/discovery all advertise this value as the primary source. |
environmentName |
Human-readable host description shown in the dashboard environment narrative. |
seededEndpoints[].host |
If preferredBindAddress changes, update each seeded endpoint's host field to match. The runtime does not re-seed these on a config write. |
Controls the MCP gateway binding. As of v0.11.0-alpha.1 the runtime always constructs NativeHttpSysGatewayAdapter — the type field is retained for backwards-compatible deserialization only.
"mcpGateway": {
"type": "native",
"listenPort": 8080,
"mcpPath": "/mcp"
}| Field | Default | Notes |
|---|---|---|
type |
"native" |
Kept for back-compat deserialization only. Runtime always uses the native HTTP.sys adapter regardless of this value. |
listenPort |
8080 |
Port HTTP.sys binds for MCP traffic. AI clients connect here. |
mcpPath |
"/mcp" |
URL path for MCP requests. Almost never changes. |
Note: Older config files may still contain
"type": "mcpjungle"or legacy fields likebinaryPath,databasePath, andmode. These deserialize without error and are silently ignored at runtime. They can be removed on the next GET-mutate-POST cycle.
Admin HTTP listener — operator UI and all /api/* routes.
"listener": {
"bindAddress": "0.0.0.0",
"port": 7300
}| Field | Default | Notes |
|---|---|---|
bindAddress |
"0.0.0.0" |
Set to a specific IP to restrict the admin surface to one NIC |
port |
7300 |
Admin API and dashboard port |
"telemetry": {
"enabled": true,
"persistenceThreshold": "warn"
}| Field | Default | Notes |
|---|---|---|
enabled |
true |
Master switch for telemetry collection |
persistenceThreshold |
"warn" |
Severity at or above which events persist to disk. Values: debug, info, warn, error. Set in v0.10.21. |
The two persistence files per component are each capped at ~50 MB live + ~50 MB rotated (.1.jsonl). See Telemetry-and-Activity for the full persistence schema.
"governance": {
"forsetti": true,
"clu": true,
"bundlePlatform": "windows"
}| Field | Default | Notes |
|---|---|---|
forsetti |
true |
Enables Forsetti governance enforcement. Must not be disabled. |
clu |
true |
Enables CLU (Controlled Language Understanding) policy layer. Must not be disabled. |
bundlePlatform |
"windows" |
Platform tag used when generating governance bundles for clients |
"discovery": {
"beaconEnabled": true,
"beaconPort": 7301,
"mdnsEnabled": true
}| Field | Default | Notes |
|---|---|---|
beaconEnabled |
true |
Enables UDP JSON beacon broadcast on beaconPort
|
beaconPort |
7301 |
UDP port for the beacon. Must be open in the Windows Firewall (Private/Domain). |
mdnsEnabled |
true |
Enables DNS-SD registration via DnsServiceRegister
|
"lan": {
"trust": "lan",
"auth": "none"
}| Field | Default | Notes |
|---|---|---|
trust |
"lan" |
Trust posture advertised in DNS-SD TXT and discovery documents |
auth |
"none" |
Auth posture. Must remain "none" — app-layer auth is deferred to the retail build. |
These arrays are managed through their respective API routes rather than direct file edits. The runtime writes back to mcos.config.json after each mutating API call so state survives restarts.
| Array | Managed via | Reference |
|---|---|---|
pools[] |
POST /api/pools and family |
Worker-Pools |
clients[] |
POST /api/clients and family |
LAN-Clients |
mcpServers[] |
POST /api/runtime/mcp-servers |
API-Reference |
subAgents[] |
POST /api/runtime/sub-agents |
Sub-Agents |
This is the only safe way to update configuration via the API. Any other approach risks wiping omitted top-level keys.
%%{init: {'theme':'dark', 'themeVariables': {'primaryColor': '#031018', 'primaryTextColor': '#E6FCFF', 'primaryBorderColor': '#00f6ff', 'lineColor': '#5A00E8', 'secondaryColor': '#031827', 'tertiaryColor': '#0a1018'}}}%%
flowchart LR
classDef core fill:#031018,stroke:#00F6FF,color:#E6FCFF,stroke-width:2px;
classDef pool fill:#031a14,stroke:#1cf2c1,color:#a8efe0;
classDef bad fill:#1a0a18,stroke:#ff00d9,color:#ffd1f3;
GET["1. GET /api/config\nFull document in memory"]:::core
Mutate["2. Mutate only needed fields\nin the in-memory object"]:::core
POST["3. POST /api/config\nFull document back"]:::core
Verify["4. GET /api/config\nVerify the change landed"]:::pool
Partial["POST partial doc\n{instanceName: foo}"]:::bad
Wipe["Wipes all other top-level keys\nincluding activeProfile, pools, clients"]:::bad
GET --> Mutate
Mutate --> POST
POST --> Verify
Partial -->|wrong approach| Wipe
# 1. Read the full current document
$cfg = Invoke-RestMethod http://localhost:7300/api/config
# 2. Mutate only what you need
$cfg.instanceName = 'mcos-eng-lab-1'
$cfg.activeProfile.preferredBindAddress = '192.168.1.7'
# 3. POST the entire document back
Invoke-RestMethod -Method POST -Uri http://localhost:7300/api/config `
-Body ($cfg | ConvertTo-Json -Depth 14 -Compress) `
-ContentType 'application/json'
# 4. Verify the change landed
Invoke-RestMethod http://localhost:7300/api/config | Select-Object instanceName$cfg = Invoke-RestMethod http://localhost:7300/api/config
$new = '192.168.1.7'
$cfg.activeProfile.preferredBindAddress = $new
# Update any seeded endpoint hosts that carried the old IP
foreach ($ep in $cfg.activeProfile.seededEndpoints) {
if ($ep.host -ne 'localhost' -and $ep.host -ne '127.0.0.1') {
$ep.host = $new
}
}
Invoke-RestMethod -Method POST -Uri http://localhost:7300/api/config `
-Body ($cfg | ConvertTo-Json -Depth 14 -Compress) `
-ContentType 'application/json'
# Confirm discovery documents reflect the new IP
Invoke-RestMethod http://localhost:7300/api/discovery |
Select-Object -ExpandProperty gateway | Select-Object mcpUrlWhen a POST body to a supported route contains unknown top-level keys, the response includes an additive droppedKeys array. The update proceeds for recognized fields — this is informational only.
{
"succeeded": true,
"droppedKeys": ["legacyField", "deprecatedOption"]
}Routes that emit droppedKeys: POST /api/config, POST /api/clients, POST /api/pools, POST /api/telemetry/heartbeat, POST /api/clients/{id}/privileges, POST /api/runtime/mcp-servers, POST /api/runtime/sub-agents, POST /api/runtime/subagent-groups.
If you see unexpected keys in droppedKeys after a config POST, your config file may contain fields from an older MCOS version. They can be removed on the next GET-mutate-POST cycle.
| Scope of change | Method | Service restart needed? |
|---|---|---|
instanceName, activeProfile.*
|
GET-mutate-POST | No — hot-applied |
listener.port, httpListenerPort
|
GET-mutate-POST | Yes — port rebind |
mcpGateway.listenPort, mcpGateway.mcpPath
|
GET-mutate-POST | Yes — HTTP.sys re-registration |
discovery.beaconEnabled, discovery.beaconPort
|
GET-mutate-POST | No — beacon restarts in-process |
telemetry.*, governance.*
|
GET-mutate-POST | No — hot-applied |
pools[] entries |
POST /api/pools route |
No — live |
clients[] entries |
/api/clients routes |
No — live |
| Direct file edit of any field | Edit mcos.config.json then restart |
Yes |
# Restart after changes that require it
Restart-Service MasterControlOrchestrationServermcos.config.json is the single source of truth for all runtime configuration including pool definitions and client records. Back it up before upgrades or major changes:
$src = "$env:ProgramData\Master Control Orchestration Server\mcos.config.json"
$dest = "$env:USERPROFILE\Desktop\mcos-backup-$(Get-Date -Format 'yyyyMMdd-HHmmss').json"
Copy-Item $src $dest
Write-Host "Saved to: $dest"To restore: copy the backup back into place and restart the service. For a fuller backup that includes runtime state, logs, and governance content, see Maintenance.
{
"instanceName": "mcos-eng-lab-1",
"activeProfile": {
"environmentName": "PC-GAMING-R7-58 - Windows 11 Pro (build 26200)",
"macAddress": "9C:6B:00:13:77:83",
"preferredBindAddress": "192.168.1.7",
"seededEndpoints": []
},
"mcpGateway": {
"type": "native",
"listenPort": 8080,
"mcpPath": "/mcp"
},
"listener": {
"bindAddress": "0.0.0.0",
"port": 7300
},
"httpListenerPort": 7300,
"telemetry": {
"enabled": true,
"persistenceThreshold": "warn"
},
"governance": {
"forsetti": true,
"clu": true,
"bundlePlatform": "windows"
},
"discovery": {
"beaconEnabled": true,
"beaconPort": 7301,
"mdnsEnabled": true
},
"lan": {
"trust": "lan",
"auth": "none"
},
"pools": [],
"mcpServers": [],
"subAgents": [],
"clients": []
}Worker-Pools · LAN-Clients · LAN-Discovery · Gateway · Windows-Firewall-LAN-Mode · Quick-Start · Maintenance · API-Reference
Source for this wiki is maintained under docs/wiki/ in the Master-Control-Orchestration-Server repository.
Setup
Connect Clients
Operate
- Daily Operations
- Dashboard
- Telemetry and Activity
- Gateway
- Worker Pools
- Sub-Agents
- Governance
- CLU Governance
- Privileges
Maintain
Troubleshoot
Reference