Skip to content

pa_lab: read-only stdio mode for .mcp.json (console_status) - #528

Merged
dayfine merged 1 commit into
agentsfrom
agents-mcp-live
Nov 15, 2026
Merged

dayfine merged 1 commit into
agentsfrom
agents-mcp-live

Conversation

@dayfine

@dayfine dayfine commented Nov 15, 2026

Copy link
Copy Markdown
Owner

Base: agents. Independent of #518; the diff shows only this change.

The main session had no way to call the lab server: it only ran as an HTTP daemon with a token, and lab-B's app does not write Lab/state.json yet, so console://B/state is always unavailable. This adds python -m pa_lab serve-stdio --profile-dir <lab-B>, read-only by construction: the console resources plus one tool, console_status, which reports what checkin.sh does (app pid and deployment, Lab/state, last run lines, last press, keepawake, newest failure frame and screenshot, log tail). Inbox-writing tools (shot, describe_program, game_open) and control tools are neither listed nor callable; serve --read-only gives the same set over HTTP. The dispatch skill's Lane tick now says to read console state through the tool when loaded, checkin.sh otherwise.

Tested with the lab/server unittest suite (new test_status_readonly) and smoke_readonly.py against the live lab-B profile, which returned the running app and STOPPED state and left Lab/inbox untouched.

serve-stdio runs LabMcp(read_only=True): the console://B resources and one tool,
console_status, which reports what checkin.sh does from lab-B's profile folder.
Inbox-writing and control tools are neither listed nor callable; serve --read-only
gives the same set over HTTP. Adds a smoke script, tests, and a dispatch skill line
for reading console state through the tool in the lane tick.
@dayfine
dayfine marked this pull request as ready for review November 15, 2026 08:19
@dayfine
dayfine merged commit 49a1098 into agents Nov 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant