ModelContextProtocolClient
by InnoBridge
A Spring Boot client application demonstrating different transport methods (WebFlux SSE, Stdio) for communicating with a ModelContextProtocol server. It showcases how to interact with the server using various protocols.
Last updated: N/A
What is ModelContextProtocolClient?
The ModelContextProtocolClient is a Spring Boot application that acts as a client for a ModelContextProtocol server. It demonstrates different transport methods for communication, including WebFlux SSE and Stdio.
How to use ModelContextProtocolClient?
To use the client, you need to set up the environment variables for API keys, clone the ModelContextProtocolServer repository, configure Docker, and then build and run both the server and the client using Maven commands within their respective Docker containers. The client offers endpoints for interacting with various tools, such as a calculator, weather service, and Brave Search.
Key features of ModelContextProtocolClient
Demonstrates WebFlux SSE transport
Demonstrates Stdio transport
Supports Brave Search API integration
Configurable transport methods
Provides example endpoints for various tools
Use cases of ModelContextProtocolClient
Testing different communication protocols with a server
Integrating with a ModelContextProtocol server
Demonstrating client-server interaction using Spring Boot
Experimenting with WebFlux and Stdio for data transport
Using Brave Search API within a Spring Boot application
FAQ from ModelContextProtocolClient
What is the purpose of this client?
What is the purpose of this client?
To demonstrate different transport methods for communicating with a ModelContextProtocol server.
What transport methods are supported?
What transport methods are supported?
WebFlux SSE and Stdio are the primary transport methods supported.
Do I need API keys to use all features?
Do I need API keys to use all features?
Yes, you need API keys for Brave Search and Weather API if you want to use those features.
How do I configure the transport method?
How do I configure the transport method?
The application supports multiple transport configurations, including WebFlux SSE, Stdio, BraveSearch Transport, and Weather API. WebFlux SSE is the default.
Where can I find the server application?
Where can I find the server application?
The server application is available at https://github.com/InnoBridge/ModelContextProtocolServer