modelcontextprotocol / modelcontextprotocol/java-sdk
Support Unix Domain Sockets as local-only transport
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 3.7k
- Forks
- 1.1k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 9
Description
It would be very helpful to use unix domain sockets (supported in Java 17) for localhost MCP Client <-> MCP Server communication.
Currently, stdio transport is used for testing, debugging, and deployment of MCP servers.
Unix domain sockets (UDS) would provide a localhost-only alternative to stdio.
I've provided an implementation in pr #439, along with test code. I'm open to refactoring, for naming consistency additional extensibility, etc.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review pull request #439 and its accompanying test code, then compare the proposed Unix domain socket transport with the existing stdio transport used by the MCP client and server. Done means localhost client-server communication works over Java 17 Unix domain sockets and the provided tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100