Skip to content

Tidy _mcpc JSON output: stateless field, drop log size#261

Merged
jancurn merged 4 commits into
mainfrom
claude/serene-ride-VYS7E
Jun 4, 2026
Merged

Tidy _mcpc JSON output: stateless field, drop log size#261
jancurn merged 4 commits into
mainfrom
claude/serene-ride-VYS7E

Conversation

@jancurn

@jancurn jancurn commented Jun 4, 2026

Copy link
Copy Markdown
Member

Tidies the (unreleased) _mcpc block in the --json output — session info, mcpc connect, and the session list — after feedback that the shape was awkward.

  • Replace the statefulness string (values stateful / stateless) with a stateless field: true when stateless, false when stateful, null when not yet determined. The internal enum (now connectionMode) and the human-readable (stateful) / (stateless) suffix are unchanged.
  • Drop logSize from the output — it was a point-in-time snapshot that goes stale as the bridge keeps writing. logPath stays, and the logs command gives a fresh value.

Both fields are unreleased, so there is no breaking change.

https://claude.ai/code/session_018sp5rqgbDLoXoSFF4VfYpq

claude added 2 commits June 4, 2026 11:47
…ogSize → logSizeBytes

The `--json` output of `mcpc @<session>`, `mcpc connect`, and the session
list emitted `statefulness: "stateful"|"stateless"`. Replace it with a
boolean `stateful` (omitted when not yet determined) — more idiomatic and
jq-friendly. The internal three-state enum and the human-readable
`(stateful)`/`(stateless)` suffix are unchanged.

Also rename the `_mcpc.logSize` JSON field to `_mcpc.logSizeBytes` to make
the unit explicit. Both fields are unreleased, so no breaking change.

https://claude.ai/code/session_018sp5rqgbDLoXoSFF4VfYpq
The emitted log size was a point-in-time snapshot that goes stale as the
bridge keeps writing, and was derivable by stat-ing the already-emitted
`logPath` (or via `mcpc @<session> logs`). Stop emitting it; `logPath`
stays. Nothing stored it internally, so the now-unused stat() call and
its import are removed too.

https://claude.ai/code/session_018sp5rqgbDLoXoSFF4VfYpq
@jancurn jancurn changed the title Replace statefulness enum with stateful boolean in JSON output Tidy _mcpc JSON output: boolean stateful, drop log size Jun 4, 2026
claude added 2 commits June 4, 2026 12:48
…false/null

Internal: rename the `SessionStatefulness` enum to `ConnectionMode` (and the
`statefulness` fields / `deriveStatefulness()` accordingly). The enum values
(`stateful`/`stateless`/`unknown`) and the human-readable `(stateful)`/
`(stateless)` suffix are unchanged.

JSON: the `_mcpc.stateful` field is now always present as `true` (stateful),
`false` (stateless), or `null` (not yet determined), rather than omitted when
unknown — a stable schema for consumers.

Both fields are unreleased, so no breaking change.

https://claude.ai/code/session_018sp5rqgbDLoXoSFF4VfYpq
The `_mcpc.stateless` field is now `true` for stateless connections, `false`
for stateful ones, and `null` when the mode isn't yet known. The internal
`connectionMode` enum and the human-readable `(stateful)`/`(stateless)`
suffix are unchanged. Unreleased, so no breaking change.

https://claude.ai/code/session_018sp5rqgbDLoXoSFF4VfYpq
@jancurn jancurn changed the title Tidy _mcpc JSON output: boolean stateful, drop log size Tidy _mcpc JSON output: stateless field, drop log size Jun 4, 2026
@jancurn jancurn merged commit b3bc791 into main Jun 4, 2026
6 checks passed
@jancurn jancurn deleted the claude/serene-ride-VYS7E branch June 4, 2026 13:03
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.

3 participants