CF-MCP-Client is a Spring chatbot application that can be deployed to Cloud Foundry and consume platform AI services. It's built with Spring AI and leverages the Model Context Protocol (MCP) and memGPT to provide advanced capabilities:
- Java 21 or higher
- Maven 3.8+
- Access to a Cloud Foundry Foundation with the GenAI tile or other LLM services
- Developer access to your Cloud Foundry environment
- Build the application package:
mvn clean package- Push the application to Cloud Foundry:
cf push- Create a service instance that provides chat LLM capabilities:
cf create-service genai [plan-name] chat-llm- Bind the service to your application:
cf bind-service ai-tool-chat chat-llm- Restart your application to apply the binding:
cf restart ai-tool-chatNow your chatbot will use the LLM to respond to chat requests.
