modelcontextprotocol / modelcontextprotocol/java-sdk

Support Unix Domain Sockets as local-only transport

Open
#415 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement waiting for triage
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.