Skip to content

Commit 1d80984

Browse files
authored
Merge pull request #49 from Accenture/docs/scope-stdio-mcp-subprocess
docs: the Scope allows a subprocess for stdio MCP; the Node twin runs the loop contract
2 parents f3463a6 + b6d9825 commit 1d80984

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
under `transcript:{conversation}`, a Lua compare-and-set, a connection from the `llm.transcript.redis.*` keys). Every
3838
write sets the record's time to live to the turn's `ttl` (default `7d`), and a run the model ends takes `retention`
3939
(default `0`, which deletes the record). A new shared vector file, `tests/vectors/llm-loop-vectors.json` (66 cases),
40-
pins the contract for the Node twin; the cases run on the memory store, a Redis fake, and a live Redis when
40+
is shared byte for byte with the Node twin, which runs it too (mercury-nodejs #115); the cases run on the memory store, a Redis fake, and a live Redis when
4141
`LLM_TRANSCRIPT_REDIS_URL` names one. **Upgrade note:** a request without `tools` behaves as before. `tools`,
4242
`conversation`, `turn`, `results`, `ttl` and `retention` are now fields of the loop contract: on `llm.chat` they need
4343
`tools`, and on `llm.stream` any of them is a 400. A loop turn needs `llm.transcript.store`; the sample configuration
@@ -62,6 +62,11 @@
6262
configuration keys are unchanged; the sdist ships the new folder.
6363
**Upgrade note:** start it as `mercury-serve extensions/llm-helper/llm_helper.py` (or
6464
`python extensions/llm-helper/llm_helper.py`); a script or a deployment that names the old path changes it.
65+
3. **The Scope allows one subprocess: an MCP server reached over stdio (2026-11-03).** A function still runs in the
66+
pack's own process. The pack may run a stdio MCP server as its child process, which is the reason the MCP clients of
67+
the engines' agent loop (RFC-0011) live in the language packs and not in the engines. Nothing starts one yet: the stdio
68+
MCP binding is a later step. The README's Scope also says the LLM helper is an application on the package, whose
69+
`llm.chat` is a stateless chat or a loop turn with a configured transcript store. **Upgrade note:** none.
6570

6671
## Version 4.12.21, 10/7/2026
6772

‎README.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,16 @@ workers, RPC and drop-n-forget — nothing more), and the minimalist foundation
213213
keeping Python fast to prototype with while the composable core guarantees the
214214
architecture.
215215

216+
A function always runs in this process, never in a subprocess or an embedded interpreter.
217+
The one subprocess the pack may start is an **MCP server reached over stdio**: the pack runs it
218+
as a child process and talks to it over its standard input and output. That is why the MCP
219+
clients of the engines' agent loop (RFC-0011) live in the language packs: no engine starts a
220+
child process. The stdio MCP binding itself is still to come.
221+
222+
The LLM helper in `extensions/llm-helper/` is an application on this package, not part of it.
223+
Its `llm.chat` is configurable: a stateless chat, or one turn of a multi-turn tool-use loop whose
224+
transcript lives in the store the helper is configured with.
225+
216226
## Development
217227

218228
```bash

‎extensions/llm-helper/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ model advises within it.
1515
`llm.chat` is also the model turn of the engines' agent loop (`llm.run`): see The loop contract.
1616

1717
The Node.js twin ([mercury-nodejs `extensions/llm-helper`](https://github.com/Accenture/mercury-nodejs/tree/main/extensions/llm-helper))
18-
speaks the same contract. Both run the shared `llm-helper-vectors.json`, so they cannot drift apart; the twin's loop
19-
contract, on the shared `llm-loop-vectors.json`, is still to come.
18+
speaks the same contract, the loop contract included (mercury-nodejs #115). Both run the shared
19+
`llm-helper-vectors.json` and `llm-loop-vectors.json`, so they cannot drift apart.
2020

2121
## Run it
2222

0 commit comments

Comments
 (0)