What is auto-mcp-client?
The auto-mcp-client is a Java project based on Spring AI that encapsulates the mcp-client service, enabling web agents to interact with the MCP Server through stdio and HTTP SSE (Server-Sent Events). It implements an automated connection management mechanism, including automatic initialization, health checks, timeout closures, and connection reuse.
How to use auto-mcp-client?
To use the auto-mcp-client, ensure you have Java 17 or higher installed, configure the necessary settings in the bootstrap.yml file, and run the project using Maven or Gradle. You can then interact with the MCP Server through various protocols.
Key features of auto-mcp-client?
- Multi-protocol support for communication with MCP Server via stdio and HTTP SSE.
- Automatic connection initialization upon project startup.
- Regular health checks to ensure connection availability.
- Automatic timeout closure to free resources when connections are idle.
- Connection reuse within timeout limits to enhance performance.
- Environment isolation for multiple agents using the same MCP Server.
Use cases of auto-mcp-client?
- Automating data analysis tasks by querying the MCP Server.
- Generating visualizations based on data retrieved from the server.
- Facilitating real-time communication between web agents and the MCP Server.
FAQ from auto-mcp-client?
- What Java version is required to run auto-mcp-client?
Java 17 or higher is required.
- Can I use my own API key with the auto-mcp-client?
Yes, you can configure your own API key in the settings.
- Is there support for different models?
Yes, the project supports switching between different private OpenAI models.