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
{{ message }}
This repository was archived by the owner on Feb 14, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: mcp-docs/src/main/antora/modules/ROOT/pages/overview.adoc
+43-94Lines changed: 43 additions & 94 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,101 +1,80 @@
1
1
= Java & Spring MCP
2
2
3
-
Set of tools to provide Java SDK and Spring Framework integration for the link:https://modelcontextprotocol.org/docs/concepts/architecture[Model Context Protocol].
4
-
It enables Java applications to interact with AI models and tools through a standardized interface, supporting both synchronous and asynchronous communication patterns.
3
+
Java SDK and Spring Framework integration for the link:https://modelcontextprotocol.org/docs/concepts/architecture[Model Context Protocol], enabling standardized interaction with AI models and tools through both synchronous and asynchronous communication.
5
4
6
5
image::spring-ai-mcp-architecture.png[Spring AI MCP Architecture,600]
7
6
8
-
== Projects
9
-
10
-
There are two main projects in this repository:
7
+
== Core Components
11
8
12
9
=== xref:mcp.adoc[MCP Java SDK]
10
+
Core implementation of the Model Context Protocol specification, providing:
13
11
14
-
Java implementation of the Model Context Protocol specification. It includes:
15
-
16
-
* Synchronous and asynchronous xref:mcp.adoc#mcp-client[MCP Client] and xref:mcp.adoc#mcp-server[MCP Server] implementations
17
-
* Standard MCP operations support:
18
-
** Tool discovery and execution
19
-
** Resource management with URI templates
20
-
** Prompt handling and management
21
-
** Structured logging
22
-
** Request and notification handling
23
-
* Multiple transport implementations:
24
-
** Core transports:
25
-
*** Stdio-based transport for process-based communication
26
-
*** Java HttpClient-based SSE transport for HTTP streaming
27
-
** Spring-based transports:
28
-
*** WebFlux SSE transport for reactive HTTP streaming
29
-
*** WebMVC SSE transport for servlet-based HTTP streaming
30
-
31
-
==== WebFlux SSE Transport
32
-
The link:https://github.com/spring-projects-experimental/spring-ai-mcp/tree/main/mcp-transport/mcp-webflux-sse-transport[mcp-webflux-sse-transport] project provides WebFlux-based implementation for the SSE client and server transports, enabling reactive HTTP streaming with Spring WebFlux.
33
-
34
-
==== WebMvc SSE Transport
35
-
The link:https://github.com/spring-projects-experimental/spring-ai-mcp/tree/main/mcp-transport/mcp-webmvc-sse-transport[mcp-webmvc-sse-transport] project provides WebMvc-based implementation for the SSE server transport. The core module's HttpClientSseClientTransport can be used for client-side communication.
12
+
* Synchronous and asynchronous xref:mcp.adoc#mcp-client[Client] and xref:mcp.adoc#mcp-server[Server] implementations
13
+
* Tool discovery and execution
14
+
* Resource management with URI templates
15
+
* Prompt handling and management
16
+
* Structured logging
17
+
* Request and Notification handling
36
18
37
-
=== xref:spring-mcp.adoc[Spring AI MCP]
19
+
=== MCP Transports
20
+
21
+
* *Core Transports*
22
+
** Stdio-based (`StdioClientTransport`, `StdioServerTransport`) for process-based communication
23
+
** Java HttpClient-based SSE client (`HttpClientSseClientTransport`) for HTTP streaming
38
24
39
-
The Spring integration module provides Spring-specific functionality:
25
+
* *Optional SSE Transports*
26
+
** link:https://github.com/spring-projects-experimental/spring-ai-mcp/tree/main/mcp-transport/mcp-webflux-sse-transport[WebFlux SSE Transport] - Reactive HTTP streaming with Spring WebFlux (Client & Server)
This is a milestone release, not available on Maven Central.
146
-
Add the Spring milestone repository to your build:
147
-
+
148
-
[source,groovy]
149
-
----
150
104
repositories {
151
105
maven { url 'https://repo.spring.io/milestone' }
152
106
}
@@ -155,16 +109,13 @@ repositories {
155
109
156
110
== Examples
157
111
158
-
Explore these MCP examples in the link:https://github.com/spring-projects/spring-ai-examples/tree/main/model-context-protocol[spring-ai-examples/model-context-protocol] repository:
159
-
160
-
* link:https://github.com/spring-projects/spring-ai-examples/tree/main/model-context-protocol/sqlite/simple[SQLite Simple] - Demonstrates LLM integration with a database
161
-
* link:https://github.com/spring-projects/spring-ai-examples/tree/main/model-context-protocol/sqlite/chatbot[SQLite Chatbot] - Interactive chatbot with SQLite database interaction
162
-
* link:https://github.com/spring-projects/spring-ai-examples/tree/main/model-context-protocol/filesystem[Filesystem] - Enables LLM interaction with local filesystem folders and files
163
-
* link:https://github.com/spring-projects/spring-ai-examples/tree/main/model-context-protocol/brave[Brave] - Enables natural language interactions with Brave Search
164
-
* link:https://github.com/habuma/spring-ai-examples/tree/main/spring-ai-mcp[Theme Park API Example] - Shows how to create an MCP server and client with Spring AI, exposing Theme Park API tools
165
-
* link:https://github.com/spring-projects/spring-ai-examples/tree/main/model-context-protocol/mcp-webflux-server[WebFlux SSE Client + WebFlux SSE Server sample] - Showcases how to create and use MCP WebFlux servers and clients with different capabilities
166
-
* link:https://github.com/spring-projects/spring-ai-examples/tree/main/model-context-protocol/mcp-webmvc-server[Http SSE Client + WebMvc SSE Server sample] - Showcases how to create and use MCP WebMvc servers and HttpClient clients with different capabilities
* link:https://github.com/spring-projects/spring-ai-examples/tree/main/model-context-protocol/filesystem[Filesystem] - LLM interaction with local files
115
+
* link:https://github.com/spring-projects/spring-ai-examples/tree/main/model-context-protocol/brave[Brave] - Natural language Brave Search integration
116
+
* link:https://github.com/habuma/spring-ai-examples/tree/main/spring-ai-mcp[Theme Park API] - MCP server/client with Theme Park API tools
* link:https://github.com/spring-projects/spring-ai-examples/tree/main/model-context-protocol/mcp-webmvc-server[WebMvc SSE] - WebMvc server with HttpClient implementation
168
119
169
120
== Documentation
170
121
@@ -173,15 +124,13 @@ Explore these MCP examples in the link:https://github.com/spring-projects/spring
0 commit comments