fix(app): MCP discovery never blocks a turn; secrets masked as lines are written; TTS child gets no MCP secrets
- Discovery runs outside the MCP tool cache's lock (one at a time), so a turn reading the cached tools never waits for a slow server; a new conversation refreshes in the background. - The log hub masks secrets before a line is kept or written, so a key replaced or removed later stays hidden on the screen, in copies, files and exports, also after a restart. - The worker takes JARVIS_MCP_ENV out of its environment at start, before MeloTTS runs, and hands it to the brain. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -257,10 +257,13 @@ which carry Discord's own time.
|
||||
registered chat channel asks, so they stay off until M7 brings screen viewing with its own
|
||||
permissions. The jarvis settings' `mcps` are connected on a thread of their own when the brain
|
||||
starts, so a slow server does not hold up the voice; their tools are offered once discovered.
|
||||
Discovery starts the servers, so it runs outside the tool cache's lock: a turn reading the cached
|
||||
tools never waits for a slow server, and a new conversation refreshes the MCP tools in the
|
||||
background (the turn uses the tools already cached; one refresh at a time).
|
||||
The app passes the servers' environment values (secrets) in `JARVIS_MCP_ENV`, JSON `{server:
|
||||
{NAME: value}}`, never in the settings file; the brain removes that variable from its own
|
||||
environment, so no child process inherits it, and adds each server's values to that server's
|
||||
environment only. Each server's outcome is printed without debug logging (category `llm`):
|
||||
{NAME: value}}`, never in the settings file; the worker removes that variable from its
|
||||
environment at start, before any child process (MeloTTS) runs, hands it to the brain, and the
|
||||
brain adds each server's values to that server's environment only. Each server's outcome is printed without debug logging (category `llm`):
|
||||
`MCP server <name>: <n> tool(s)`, or `Warning: MCP server <name> failed: <reason>`.
|
||||
- `prepare` tells the brain that `user` is saying a call whose partial transcript is `text` (the app
|
||||
sends it while the speaker is still talking, `app/src/conversation.spec.md`). The brain runs the
|
||||
|
||||
Reference in New Issue
Block a user