host: the MCP server room with the tool attach #76
Loading…
Reference in a new issue
No description provided.
Delete branch "room-attach"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
spec-bb1.39, the host's half of
attach: the host serves an MCP serverroom(the go-sdk, streamable HTTP, stateless, JSON responses) on the pod's loopback with a random secret, and gives it to the agent in session/new when the agent declaresmcpCapabilities.http(goose and claudeacp do; without it nothing is given and the host logs that).attach(path, caption)reads a regular file of the working directory (os.OpenRoot:.., absolute paths outside and links out are refused, readable reasons), up to 64 MiB, and callsHostService.Send; the server's own reason for a refusal is the tool's error text.Tried: the tests drive the real server with the SDK's client, and a helper agent through the host end to end;
TestRealGooseAttachesAFileThroughTheRoom(gated like the other real ones) ran the real goose on Kimi: it calledroom: attach, asked leave as "room: attach · chart.png" (title; goose's tool nameroom__attachis in the preceding tool_call's_meta.goose.toolCall.toolName), and the file reached the fake server with name, media type and caption.-raceandGOMAXPROCS=1 -count=5pass.Not in this PR: the host answering the room's own permission requests (next, as specs-18 decided), the other tools. No changelog entry and no release before roomcity-b8's side of
Sendlands: until then the tool answers with the server's Unimplemented.room, with the tool attachmikluko referenced this pull request2026-11-16 09:45:45 +00:00
5942d1a34f96823fa884