Skip to content

WIP: Add Unix socket transport - #204

Open
paaloeye wants to merge 2 commits into
modelcontextprotocol:mainfrom
paaloeye:feat/unix-socket-transport
Open

paaloeye wants to merge 2 commits into
modelcontextprotocol:mainfrom
paaloeye:feat/unix-socket-transport

Conversation

@paaloeye

Copy link
Copy Markdown
Contributor

TBC

Motivation and Context

Unix socket transport

How Has This Been Tested?

Work in progress

Breaking Changes

None

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

paaloeye and others added 2 commits February 25, 2026 07:05
…ions

Mark continuation state flags as nonisolated(unsafe) to resolve data race
warnings when capturing task-isolated variables in MainActor closures.

Fixes compilation warnings under Swift 6.3 strict concurrency checking.
Tested on Apple Swift 6.3 / XCode 26.4 beta 2 (17E5170d)

Issue: modelcontextprotocol#203
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- implemented client and server Unix socket transport
- server supports three socket cleanup strategies:
    - failIfExists,
    _ removeExisting
    - reuseIfPossible
- server uses SwiftNIO + POSIX socket APIs
- WIP: client uses POSIX socket API
- platform-specific socket path limits
- WIP: MCPServer needs minor changes to handle new clients

🤖 Generated with [Claude Code](https://claude.ai/code)

Issue: modelcontextprotocol#144
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-Off-By: Paal Øye-Strømme <paal.o.eye@gmail.com>
@paaloeye paaloeye changed the title Add Unix socket transport WIP: Add Unix socket transport Feb 25, 2026
@yehorsobko-mac

Copy link
Copy Markdown
Contributor

@paaloeye Hi, could you please tell when are you planning to finish the feature?

@paaloeye

paaloeye commented Mar 4, 2026

Copy link
Copy Markdown
Contributor Author

@yehorsobko-mac hopefully by EoW; I'm running it with real traffic now. I also have some fixes locally which I'll sync soonish. I'd love some initial feedback tho (in any). Cheers!

ianegordon added a commit to ianegordon/swift-sdk that referenced this pull request Sep 12, 2026
Issue titles are now bare 'Upstream PR#<n>'; the merge/investigate/decline
label carries the decision, so the title does not duplicate it. Two places
named the old convention and are updated.

The investigate count was also stale: it said twelve, which was true at
triage on 2026-09-10. Four were declined since (modelcontextprotocol#280, modelcontextprotocol#226, modelcontextprotocol#118, modelcontextprotocol#204) and
two were promoted and merged (modelcontextprotocol#266 as entries 9/9a, modelcontextprotocol#275 as 10/10a/10b),
leaving six — modelcontextprotocol#178, modelcontextprotocol#213, modelcontextprotocol#216, modelcontextprotocol#257, modelcontextprotocol#258, modelcontextprotocol#259 — now listed by number
rather than by count, so the sentence cannot drift again.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Eb9yGSXH1TVkg5Afsu9phk
@jeanmatthieu jeanmatthieu added the pending-close awaiting author confirmation for final closure label Dec 5, 2026
@jeanmatthieu

Copy link
Copy Markdown
Contributor

Hi @paaloeye, thank you for starting work on a Unix domain socket transport!

Because this PR has been inactive as a WIP since March and targets pre-1.0 main, it now conflicts with the finalized 1.0.0 Transport protocol in rel/1.0.0 (#372, specifically #413: send(_:options:), async receive(), nonisolated logger, and the new connection lifecycle contract).

Could you please close this PR while we wrap up 1.0.0? We've added the pending-close label in the meantime. If you'd still like to contribute a Unix domain socket transport once 1.0.0 ships, a short design issue or a fresh PR against 1.0.0 would be very welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-close awaiting author confirmation for final closure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants