Skip to content

chore: pin swift-sdk to fork branch shipping numberValue#29

Merged
gsdali merged 1 commit into
mainfrom
chore/swift-sdk-fork-pin
May 10, 2026
Merged

chore: pin swift-sdk to fork branch shipping numberValue#29
gsdali merged 1 commit into
mainfrom
chore/swift-sdk-fork-pin

Conversation

@gsdali
Copy link
Copy Markdown
Owner

@gsdali gsdali commented May 10, 2026

Summary

Eats our own dog food on modelcontextprotocol/swift-sdk#226 (closes upstream #225). The fork branch (gsdali/swift-sdk#add-value-numbervalue) ships Value.numberValue — exactly the helper our Server.swift dispatch wanted.

  • Package.swift — dep flips from modelcontextprotocol/swift-sdk from: "0.11.0" to gsdali/swift-sdk branch: "add-value-numbervalue" with a comment noting the pin is temporary and reverts to the upstream tag floor once #226 merges.
  • Server.swift — drops the local extension Value { var asDouble } back-port (added in v1.3) and switches all 19 dispatch sites (translate / rotate / mirror / pattern / circular / select_topology / find_correspondences scalar + array reads) from .asDouble to .numberValue. Identical semantics; we just stop maintaining a private copy.

No release tag for this — main is intentionally on a fork pin until upstream merges. The moment upstream lands we revert Package.swift to from: "0.11.0" and tag a release.

Test plan

  • swift build clean
  • swift test — 25/25
  • swift package resolve pulls the fork branch (gsdali/swift-sdk @ add-value-numbervalue (62ac56f))

🤖 Generated with Claude Code

Eats our own dog food on modelcontextprotocol/swift-sdk#226 (closes
upstream issue #225). The fork branch
(gsdali/swift-sdk#add-value-numbervalue) ships Value.numberValue —
exactly the helper our Server.swift dispatch wanted.

Package.swift: dep flips from
  modelcontextprotocol/swift-sdk from: "0.11.0"
to
  gsdali/swift-sdk branch: "add-value-numbervalue"
with a comment noting the pin is temporary and reverts to the
upstream tag floor once swift-sdk#226 merges.

Server.swift: drops the local `extension Value { var asDouble }`
back-port (was added in OCCTMCP v1.3) and switches all 19 dispatch
sites — translate / rotate / mirror / pattern / circular /
select_topology / find_correspondences scalar + array reads — from
.asDouble to .numberValue. Identical semantics; we just stop
maintaining a private copy of the helper.

No release tag — main is intentionally on a fork pin until upstream
merges. Cohort downstream consumers building OCCTMCP from main pull
the fork transparently; the moment upstream lands we revert
Package.swift to `from: "0.11.0"` and tag a release.

25/25 tests still pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@gsdali gsdali merged commit 2c83cfd into main May 10, 2026
@gsdali gsdali deleted the chore/swift-sdk-fork-pin branch May 10, 2026 00:11
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