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
Copy file name to clipboardExpand all lines: model-context-protocol/mcp-annotations/mcp-annotations-client/src/main/java/org/springframework/ai/mcp/samples/client/McpClientApplication.java
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -63,22 +63,22 @@ public CommandLineRunner predefinedQuestions(OpenAiChatModel openAiChatModel,
Copy file name to clipboardExpand all lines: model-context-protocol/mcp-annotations/mcp-annotations-client/src/main/java/org/springframework/ai/mcp/samples/client/McpClientHandlers.java
Copy file name to clipboardExpand all lines: model-context-protocol/mcp-annotations/mcp-annotations-client/src/main/java/org/springframework/ai/mcp/samples/client/customizers/AnnotationSyncClientCustomizer.java
Copy file name to clipboardExpand all lines: model-context-protocol/sampling/README.md
+48-38Lines changed: 48 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,11 +14,19 @@ The MCP Sampling examples showcase:
14
14
15
15
## Projects
16
16
17
-
This directory contains two main projects:
17
+
This directory contains several projects demonstrating MCP Sampling:
18
18
19
-
1.**[mcp-weather-webmvc-server](./mcp-weather-webmvc-server)**: An MCP server that provides weather information and uses MCP Sampling to generate creative content
19
+
### Main Projects
20
+
1.**[mcp-sampling-server](./mcp-sampling-server)**: An MCP server that provides weather information and uses MCP Sampling to generate creative content
20
21
2.**[mcp-sampling-client](./mcp-sampling-client)**: An MCP client that handles sampling requests and routes them to different LLM providers
21
22
23
+
### Annotation-based Examples
24
+
25
+
Showcase the same MCP Sampling functionality as the main sampling examples but use the annotation-based approach for simplified development - find more in the **[README](./annotations/README.md)**
26
+
27
+
3.**[annotations/mcp-sampling-server-annotations](./annotations/mcp-sampling-server-annotations)**: Server implementation using Spring AI's annotation-based approach
28
+
4.**[annotations/mcp-sampling-client-annotations](./annotations/mcp-sampling-client-annotations)**: Client implementation using Spring AI's annotation-based approach
29
+
22
30
## What is MCP Sampling?
23
31
24
32
MCP Sampling is a powerful capability of the Model Context Protocol that allows:
@@ -74,38 +82,38 @@ The MCP Weather Server implements the server-side of MCP Sampling:
0 commit comments