Skip to content

Commit 951a66e

Browse files
committed
docs: correct why the CLI may infer an instance
- --instance is optional, so it is not what makes inference acceptable - the CLI resolves per invocation and reports the instance it resolved - state the --instance condition as OSW_DOMAIN unset, not .env-specific
1 parent 84b69e9 commit 951a66e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎docs/cli-and-mcp.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ Commands are grouped by subject:
7373

7474
Global options apply to every command:
7575

76-
- `--instance IRI` picks the instance. Optional: it is only required when the
77-
`.env` sets no `OSW_DOMAIN` and the credential file it names holds more than
76+
- `--instance IRI` picks the instance. Optional: it is only required when
77+
`OSW_DOMAIN` is not set and the configured credential file holds more than
7878
one iri.
7979
- `--json` / `-j` writes machine-readable JSON to stdout and keeps osw's own
8080
progress output on stderr, so it pipes cleanly into `jq`.

‎src/osw/mcp/server.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ def _build_server() -> tuple[MCPServer, Context]:
107107
statically pinned to one OSL instance for its whole lifetime, and which one
108108
that is has to be readable from the configuration rather than inferred.
109109
Deliberately stricter than :func:`config.get_active_domain`, which the CLI
110-
uses: there the instance is visible on the command line at every
111-
invocation, and ``--instance`` can override it per command.
110+
uses: there the instance is resolved per invocation and reported at
111+
startup, and ``--instance`` can override it per command.
112112
"""
113113
# Before get_settings(), so a misconfiguration that makes loading raise
114114
# still reports which files were read. stderr, so it lands in the MCP

0 commit comments

Comments
 (0)