You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0d0b2b6
Browse filesBrowse the repository at this point in the historyBrowse files
fix(cli,mcp): UTF-8 stderr, a stdout guard, and OSW_CRED_FILEPATH paths (#196)
* fix(config): expand a leading ~ in OSW_CRED_FILEPATH
- expand in _resolve_cred_file as well: load() checks the path before
Settings is built, so the field validator alone runs too late
- a relative path stays accepted, unlike state_dir
- name the variable when no home directory can be determined
- closes#194
* fix(mcp): encode the osw-mcp startup report as UTF-8
- move the mechanism to osw.service.streams.force_utf8, shared by both
adapters without osw.mcp importing osw.cli
- reconfigure stderr only: the SDK re-wraps stdout as UTF-8 itself
- add a test that a log record during a tool call leaves stdout empty
- closes#193, closes#192
* fix(mcp): resolve a relative OSW_CRED_FILEPATH at startup
- the MCP client chooses the working directory, so store the full path
- load() checks existence on the resolved path and rejects a missing one
- the rejection names the relative value it was resolved from
- the CLI keeps a relative value
- closes#197
Copy file name to clipboardExpand all lines: docs/tools/configuration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,7 @@ set wins:
103
103
| `OSW_DOMAIN` | `OSL_DOMAIN` | Instance to connect to. A bare host (`wiki.example.org`) or a full URL (`https://wiki.example.org/w/`); the host is taken from either, and a value no host can be read from (`https://`, `/w/index.php`) is rejected at startup |
| `OSW_CRED_FILEPATH` | `OSW_MCP_CRED_FILEPATH`, `OSL_CRED_FILEPATH` | YAML credential file, keyed by iri (falls back to `accounts.pwd.yaml` in the working directory, CLI only) |
106
+
| `OSW_CRED_FILEPATH` | `OSW_MCP_CRED_FILEPATH`, `OSL_CRED_FILEPATH` | YAML credential file, keyed by iri (falls back to `accounts.pwd.yaml` in the working directory, CLI only). A leading `~` is expanded. A relative path is accepted; the MCP server resolves it at startup against the working directory its client chose, and the source report shows the full path |
107
107
| `OSW_ENV_FILE` | `OSW_MCP_ENV_FILE` | `.env` file to load |
108
108
| `OSW_READ_ONLY` | `OSW_MCP_READ_ONLY` | `true` refuses every write |
109
109
| `OSW_SPARQL_ENDPOINT` | | Endpoint for `sparql` queries |
0 commit comments