Skip to content

plan: expose SDK MCP connector enrollment - #1688

Merged
samuv merged 2 commits into
mainfrom
plan/sdk-mcp-workspace-enrollment
Sep 18, 2026
Merged

samuv merged 2 commits into
mainfrom
plan/sdk-mcp-workspace-enrollment

Conversation

@samuv

@samuv samuv commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Define the exact TypeScript SDK surface for session-scoped MCP connector inventory and whole-bundle workspace enrollment.
  • Record typed state, correlation, malformed-response, cancellation, ephemeral URL, and documentation behavior before implementation.

Development stage

  • Plan / Interface — Bounded/Architectural behavioral and exact-interface contract; no implementation
  • Implementation — based on an approved, merged Plan / Interface PR
  • Combined — compact one-task Bounded/Architectural exception; no separate plan PR,
    and the in-PR plan declares **Expected tasks:** 1, a non-placeholder
    **Combined rationale:**, and no runtime/public/operator/persistence/trust-boundary
    interface change (None — rationale; workflow-only meta-changes may review process
    docs/skills here)
  • Spike / Routine — acceptance-plan spine exempt; Spike evidence does not ship as-is

Contract linkage

  • Work classification: Architectural
  • Classification rationale: adds durable public TypeScript SDK methods, projections, and workflow-state vocabularies
  • Decision record: ADR 0304
  • Human waiver of spine: Yes — the directing user approved this exact contract and authorized the implementation PR to stack above this open PR without waiting for merge; neither PR is authorized to merge here
  • Acceptance plan: docs/acceptance/sdk-mcp-workspace-enrollment.md
  • Human decisions resolved and recorded: Yes
  • Plan / Interface PR: plan: expose SDK MCP connector enrollment #1688
  • Approved commit baseline: pending merge; the stacked implementation uses this PR's exact committed contract under the recorded sequencing waiver
  • Combined/exemption rationale: N/A — delivery remains Split

Interface conformance

  • Review four direct Session methods, SDK-owned readonly inventory/enrollment projections, typed unknown handling, strict correlation and URL validation, and application-owned presentation/polling policy. No protobuf, Go API, tool, CLI/config, event, or persistence change is proposed.

Issue relationship

Relates to #1467

Type of change

  • Behavioral/interface plan
  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation/process
  • Other (describe):

Test plan

Baseline checks

  • Acceptance-plan checker
  • Linting (task lint)
  • Offline test suite (task test)
  • Offline demo (go run ./cmd/mecademo)
  • Markdown changed: docs generation/link checks (task docs)
  • User docs/user-facing behavior changed: site build (task site:build)
  • Guarded engine API affected: compatibility check (task api:check)
  • Intentional engine API change: task api:update + engine/CHANGELOG.md
  • Landed plan: strict acceptance trace (task ac-trace-strict)
  • Final implementation review: /panel-review

Changes

File Change
docs/acceptance/sdk-mcp-workspace-enrollment.md Exact public SDK contract and acceptance proofs
docs/acceptance/README.md Plan index entry

User-facing change

None in this PR; it defines the contract for the stacked implementation.

Special notes for reviewers

Connector inventory is intentionally not failure history. failed is observable on the immediate workspace-enrollment control result; a later inventory read reports not_started after terminal cleanup, matching the existing protocol.

Co-Authored-By: Codex <[email protected]>

Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: Codex <[email protected]>

Signed-off-by: Samuele Verzi <[email protected]>
@samuv samuv changed the title plan/sdk mcp workspace enrollment plan: expose SDK MCP connector enrollment Sep 17, 2026
@samuv samuv self-assigned this Sep 17, 2026
@samuv
samuv added this pull request to stack #1691 September 17, 2026 21:09

@jhrozek jhrozek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! Nothing surprising.

Did you find anything odd about the interface when wrapping it? I think it's still early enough that if we want we can just change the APIs and you're the first consumer

@samuv

samuv commented Sep 18, 2026

Copy link
Copy Markdown
Contributor Author

This looks good! Nothing surprising.

Did you find anything odd about the interface when wrapping it? I think it's still early enough that if we want we can just change the APIs and you're the first consumer

I didn’t notice anything weird, and the implementation seems pretty straightforward. I’ll let you know if I notice anything during the initial implementation

@samuv
samuv merged commit 39aecc9 into main Sep 18, 2026
30 checks passed
@samuv
samuv deleted the plan/sdk-mcp-workspace-enrollment branch September 18, 2026 08:20
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Sep 21, 2026
2 tasks
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.

2 participants