forked from vhaudiquet/rhema-claw
feat(claw): the daemon wires MCP into its agents
The claw's side of §10: one bridge per process, established at first agent build and never re-read — the claw is single-instance and its servers are stateful across calls, so a mid-process rewire would orphan running sessions' socket paths. The global `mcp.yaml` is the claw's config scope (no profiles here); the off switch is `disabled_mcp_servers` beside the rest of claw.yaml, and both agent construction sites — chat turns and `coding_agent` jobs — layer the wiring on: the init file and socket and token into `shell_env`, the post-filter lines into the prompt's `mcp` section, the persisted set into the config. A frontend without wiring changes nothing, so the daemon without `mcp.yaml` behaves exactly as before. The test configs gain the new field; the fd-limit discoveries from the workspace run are already handled by the harness runs above.
This commit is contained in:
1 parent
d5328667e4
commit
99ecceacb5
8 files changed
+115
No files matched your search
@@ -81,6 +81,7 @@ fn config(dir: &tempfile::TempDir) -> ClawConfig {
|
||||
tools_bin: None,
|
||||
transcript: None,
|
||||
ingest_token: None,
|
||||
disabled_mcp_servers: std::collections::BTreeSet::new(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user