Skip to content

Commit 9ff2096

Browse files
author
CodeWhale Bot
committed
fix(config): retain the MCP dispatcher storage key
Preserve mcp.server_definitions as the established literal JSON-text key consumed and persisted by the stdio dispatcher. Unknown nested TOML writes remain rejected before mutation. Validation: all 3 real CLI MCP proxy integration tests pass, including spawned tools/resources and missing-child reporting. npm test: 66 wrapper, 9 SDK, 446 web passed; check:web passed with 0 errors and 2 existing warnings. Formatting and diff checks passed. The previous full sweep stopped at this regression and will restart on the corrected head.
1 parent 7b914ad commit 9ff2096

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

crates/config/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3202,7 +3202,9 @@ impl ConfigToml {
32023202
.get_or_insert_with(HookSinksToml::default)
32033203
.unix_socket_path = Some(PathBuf::from(value));
32043204
}
3205-
_ if key.contains('.') => {
3205+
// The MCP stdio dispatcher persists this established literal key
3206+
// as JSON text; it is not a nested TOML setting.
3207+
_ if key.contains('.') && key != "mcp.server_definitions" => {
32063208
let (table, field) = key.rsplit_once('.').expect("dotted key");
32073209
bail!(
32083210
"`config set` does not support nested key `{key}`; edit `{field}` in the [{table}] table of config.toml instead (use a TOML value of the documented type). No value was changed."

0 commit comments

Comments
 (0)