Skip to content

Conversation

@hamzausmani
Copy link
Collaborator

MCP Client Example showcasing awsdocs mcp

MCP Client Example
@hamzausmani hamzausmani marked this pull request as ready for review December 11, 2025 10:06
@@ -0,0 +1,26 @@
FROM --platform=linux/arm64 amazoncorretto:21-alpine
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use Spring's built-in containerization support instead (bootBuildImage)?

* MCP Client that connects to MCP Server over stdio using JSON-RPC.
*/
@Component
public class McpStdioClient {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't Spring AI already have an MCP Client that does this?

* Spring AI Tools that wrap MCP server calls for AWS Documentation.
*/
@Component
public class AwsDocsMcpTools {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With an MCP client, this this proxy needed? Can't we just expose the chatClient directly to the MCP client?

@jamesward
Copy link
Collaborator

I think I get what this example is trying to show with connecting an agent to an MCP server that is only distributed w/ STDIO support. But since the AWS docs MCP server is also available as a remote MCP server, it might make more sense to pick one that isn't available remotely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants