You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The core module has been refactored to remove unnecessary abstraction
between the SSE transport and the STDIO transport.
- Tests have been improved and no longer complain about multiple
subscriptions to single-subscriber Sink.
- SSE transport layer is now assuming non-blocking execution and no longer
makes thread hops when not needed.
- Decouple ObjectMapper and error handling from AbstractMcpTransport
and remove later.
Additional improvements:
- Rename transport classes to better reflect client-side role (*ServerTransport -> *ClientTransport)
- Introduce fluent builder pattern for client configuration
- Simplify DefaultMcpSession by removing ObjectMapper dependency
- Move unmarshal responsibility to transport layer
- Update documentation and diagrams to reflect new architecture
- Clean up test implementations
Copy file name to clipboardExpand all lines: README.md
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,33 +1,31 @@
1
1
# Spring AI MCP
2
2
3
-
Java SDK for the Model Context Protocol (MCP), providing seamless integration between Java and Spring applications and MCP-compliant AI models and tools.
3
+
Java SDK for the Model Context Protocol (MCP), providing seamless integration between Java and Spring applications and MCP-compliant AI resources and tools.
4
4
5
5
## Overview
6
6
7
-
Spring AI MCP is an experimental project that provides Java and Spring Framework integration for the [Model Context Protocol](https://modelcontextprotocol.org/docs/concepts/architecture). It enables Spring applications to interact with AI models and tools through a standardized interface, supporting both synchronous and asynchronous communication patterns.
7
+
Spring AI MCP is an experimental project that provides Java and Spring Framework integration for the [Model Context Protocol](https://modelcontextprotocol.org/docs/concepts/architecture). It enables Java applications to interact with AI models and tools through a standardized interface, supporting both synchronous and asynchronous communication patterns.
The core module provides a Java implementation of the Model Context Protocol specification. It includes:
18
18
- Synchronous and asynchronous client implementations
19
-
- Standard MCP operations support (tool discovery, resource management, prompt handling)
20
-
- Stdio-based server transport
21
-
-Reactive programming support using Project Reactor
19
+
- Standard MCP operations support (tool discovery, resource management, prompt handling). Support for request and notificaiotn handling.
20
+
-[Stdio](https://spec.modelcontextprotocol.io/specification/basic/transports/#stdio) and [SSE](https://spec.modelcontextprotocol.io/specification/basic/transports/#http-with-sse)transport implementations.
Detailed UML class diagrams showing the relationships between components can be found in [docs/class-diagrams.puml](docs/class-diagrams.puml). The diagrams include:
42
-
- Core Components: Shows the main interfaces, classes, and their relationships
43
-
- Message Flow: Illustrates the message and resource type hierarchies
44
-
45
38
## Usage
46
39
47
40
### Transport Layer Options
48
41
49
42
The SDK provides two transport implementations:
50
43
51
-
#### StdioServerTransport
44
+
#### StdioClientTransport
52
45
Standard I/O based transport for process-based communication with MCP servers:
Copy file name to clipboardExpand all lines: spring-ai-mcp-core/docs/CLIENT.SSE.TRANSPORT.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Overview
4
4
5
-
The `SseServerTransport` class implements the Model Context Protocol (MCP) HTTP with SSE transport specification, providing a bidirectional communication channel between clients and servers. This implementation is part of the Spring AI MCP Core library and follows the [MCP HTTP with SSE Transport Specification](https://spec.modelcontextprotocol.io/specification/basic/transports/#http-with-sse).
5
+
The `SseClientTransport` class implements the Model Context Protocol (MCP) HTTP with SSE transport specification, providing a bidirectional communication channel between clients and servers. This implementation is part of the Spring AI MCP Core library and follows the [MCP HTTP with SSE Transport Specification](https://spec.modelcontextprotocol.io/specification/basic/transports/#http-with-sse).
Copy file name to clipboardExpand all lines: spring-ai-mcp-core/docs/CLIENT.STDIO.TRANSPORT.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# StdioServerTransport
1
+
# StdioClientTransport
2
2
3
-
The `StdioServerTransport` class implements the [MCP Stdio Transport](https://spec.modelcontextprotocol.io/specification/basic/transports/#stdio) specification, providing communication with MCP servers over standard input/output streams.
3
+
The `StdioClientTransport` class implements the [MCP Stdio Transport](https://spec.modelcontextprotocol.io/specification/basic/transports/#stdio) specification, providing communication with MCP servers over standard input/output streams.
0 commit comments