Repository navigation
feat(sdk): expose MCP workspace enrollment - #1690
Conversation
Co-Authored-By: Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Signed-off-by: Samuele Verzi <[email protected]> Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Signed-off-by: Samuele Verzi <[email protected]> Co-Authored-By: Codex <[email protected]>
jhrozek
left a comment
There was a problem hiding this comment.
Approving with one non-blocking follow-up: please consider sanitizing malformed-success decoding errors in the SDK’s shared HTTP transport.
The enrollment projection correctly returns generic, cause-free validation errors. However, JSON/protobuf decoding can fail before that projection runs, and the HTTP transport preserves the decoder exception as ProtocolError.cause . Native JSON errors can include excerpts of the response body, potentially
exposing sensitive response content to application error logging.
This is existing SDK transport behavior, not a demonstrated defect in the server’s enrollment API. The offline reproduction showed a URL prefix in a parser cause; it did not demonstrate full credential disclosure or automatic logging.
A shared SDK decoding policy could retain safe metadata such as HTTP status and transport while omitting raw decoder causes. Please evaluate that as a follow-up, preserving existing server-error, cancellation, and transport-failure semantics.
yeah, we have an initial implementation here #1686 I will follow up with this ancestry after I merge that |
Stage
Implementation
Stacked on Plan / Interface PR #1688 under the directing user's explicit waiver to begin implementation before that plan merges.
f3d1c48b5e96e481e5c86f5ecdf1211adb7eb322What changed
Unknown.All acceptance criteria AC1.1 through AC3.5 are complete. Targeted strict trace resolves all 10 criteria with zero failures.
Verification
task sdk:format,task sdk:lint,task sdk:typecheck,task sdk:test(54 files, 296 tests),task sdk:build, andtask sdk:api:check: passtask lint: passCGO_ENABLED=0 task docs: pass (432 documents, 3,934 references, no broken links or anchors)task site:build: passgo run ./cmd/mecademo: passPANEL: ship_blockers=0 important=0 advisory=2 reviewer_failures=0Two local whole-repository exceptions are unrelated to this diff:
task testcannot bind four fixed-redirectmcp/oauthlogintests because an existing operator-owned development server occupies127.0.0.1:18473. Every other root race package, all module race suites, all standalone proofs, and the remaining OAuth login race tests pass.task ac-trace-strictreports a pre-existing missing proof in the landedoperator-defined-llm-providersplan. That proof is already absent at the approved baseline. This plan's targeted strict trace passes.Closes #1467