Skip to content

Conversation

bsorrentino
Copy link

It is a InMemoryTrasport implementation (inspired by one implemented in mcp-swift sdk)

Motivation and Context

Make simpler test processing and also push developer to use MCP standard also for simple implementation

How Has This Been Tested?

Currently only by unit test

Breaking Changes

No breaking change

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

google-labs-jules bot and others added 5 commits August 18, 2025 18:17
This commit introduces a new Maven module, `mcp-inmemory-transport`, which provides an in-memory transport implementation for the Model Context Protocol (MCP).

The primary goal of this new module is to facilitate testing of MCP clients and servers without requiring a full network setup. It uses Project Reactor's `Sinks` to simulate the bidirectional communication between a client and a server.

The implementation includes:
- `InMemoryTransport`: A container for the shared communication sinks.
- `InMemoryClientTransport`: An implementation of `McpClientTransport`.
- `InMemoryServerTransportProvider`: An implementation of `McpServerTransportProvider`.
- `InMemoryTransportTest`: A test class that verifies the end-to-end communication using the new in-memory transport.
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