MCP config
Print an MCP client configuration for the selected host context.
op_sys_command_mcp_configOn this page
Use this capability
op-sys --output json tools call op_sys_command_mcp_config \ --arguments '{}'Request template: replace placeholder identities and supply complete contract-specific objects before use. Required arguments are shown; optional arguments are listed below. MCP requests assume an initialized connection.
Named CLI command: op-sys mcp config. Use --help for command-specific flag syntax; the CLI/SDK/MCP examples share arguments; HTTP uses the documented route and body.
Parameters
Arguments are a JSON object. The published schema does not permit unknown top-level fields. Some retained CLI JSON flags are strings containing JSON; follow the declared type.
actorstringOptionalActor recorded on writes and audit entries.
Schema default:
"operator"clientstringOptionalSchema default:
"claude"Allowed: "claude", "claude-desktop", "claude-code", "generic"
mcp_commandstringOptionalSchema default:
"op-sys"server_namestringOptionalSchema default:
"op-sys"
Complete input JSON Schema
{ "additionalProperties": false, "properties": { "actor": { "default": "operator", "description": "Actor recorded on writes and audit entries.", "type": "string" }, "client": { "default": "claude", "enum": [ "claude", "claude-desktop", "claude-code", "generic" ], "type": "string" }, "mcp_command": { "default": "op-sys", "type": "string" }, "server_name": { "default": "op-sys", "type": "string" } }, "required": [], "type": "object"}Behavior & authority
MCP uses the runtime host’s state and configured credentials. It is not a separately authenticated remote multi-user service.
Rules shared by mcp configuration operations
- Use tools/list for current input schemas and tools/call for execution. Protocol version is 2025-11-25.
- Paths and environment-variable references refer to the server host. MCP configuration does not enroll a ledger or start an agent.
- Application failures set isError; inspect structured error reason/code. Resources, prompts, cancellation and progress are not implemented.
Response
Returns the command’s structured payload. The runtime output manual documents the payload families; no standalone response JSON Schema is published for this operation.
CLI tools/call result: payload.tool.result. Response envelopes across CLI, SDK and MCP ↗
The runtime does not publish a standalone response JSON Schema for this operation. Use the response description and linked output manual; the downloadable input schema is not a response contract.
Errors & retries
This operation uses the shared runtime error contract; no exhaustive operation-specific reason list is published.
For an uncertain write, preserve the original request and retry identity. On conflict, inspect current state before deciding what to change.