feat: add unregistered application registration MCP transport

Merged
SI
5d ago
+1457-2

Problem and result

Adds an unregistered direct-SDK JSON MCP composition for proposed application registration. It retains the original request through authentication, bounded body reading and actual SDK dispatch. Admission and per-call identity observations must match; a per-invocation storage guard checks the fresh domain actor/workspace and termination before storage entry. Once storage starts, lost delivery remains an unknown outcome, with no rollback or automatic retry.

Media admission parses case-insensitive types, quoted parameters and Accept quality/exclusions. Only validated media tokens are canonicalized on the original request for pinned SDK compatibility. Request ownership includes early rejection, bounded cleanup, terminal reader protection and explicit observation of actual domain completion after transport termination.

Validation

128 controlled tests pass locally: 67 transport/lifecycle cases plus 61 existing cases, using actual SDK/verifier/domain code and synthetic credential/storage leaves. Scoped TypeScript, ESLint, Prettier and whitespace checks pass. Exact-head independent Spec and Standards reviews each report zero findings. Media regressions and timeout/read-guidance fixes were demonstrated red before green. Earlier poison-containment runs remain historical evidence; they were not rerun or relabeled as 128-test runs.

Exact successor: 2606c9104dff3731f59d56d00bba121d2a8e47ba, tree 3fbe014dadcae8dc99221549c0932ea18f75badf. Fresh Node 22 dedicated CI passes all 128 tests with confirmed cleanup. All required checks (test, format, lint) and additional compatibility, strict-type and SQL bridge jobs pass. Actual Unit checkout is synthetic merge 3effbdc8, whose tree equals the reviewed head. Dedicated proposal CI, not ordinary Unit, owns this excluded suite. All 13 original inline findings received a fix or reasoned no-change disposition; fresh exact-head Cubic review reports zero new issues; CodeRabbit skipped review.

Boundaries

Eleven existing authorized paths only; no route, allowlist, shared auth/domain, SQL, descriptor/golden, production factory or runtime activation changes. Accepted Sites base remains composed. Source-only internal constants and proposed policy remain inactive. Current /mcp onboarding is unchanged. Equality observations are not atomic revocation or proof of domain-hidden credential-only drift.

Exact-head Context review passed (seal 5d2e7eca), and the coordinator accepted the bounded source. Final composition and merge remain coordinator-owned. No provider execution, real credentials or client/native acceptance is claimed.