HttpMcpClient
This plugin is currently in beta. While it is considered safe for use, please be aware that its API could change in ways that are not compatible with earlier versions in future releases, or it might become unsupported.
Model Context Protocol (MCP) HTTP client tool
yaml
type: "io.kestra.plugin.langchain4j.tool.HttpMcpClient"
Chat Completion with Google Gemini and an HTTP MCP Client tool
yaml
id: chat_completion_with_tools
namespace: company.team
inputs:
- id: prompt
type: STRING
tasks:
- id: chat_completion_with_tools
type: io.kestra.core.plugin.langchain4j.ChatCompletion
provider:
type: io.kestra.plugin.langchain4j.provider.GoogleGemini
apiKey: "{{secret('GOOGLE_API_KEY')}}"
modelName: gemini-2.0-flash
messages:
- type: SYSTEM
content: You are a helpful assistant, answer concisely, avoid overly casual language or unnecessary verbosity.
- type: USER
content: "{{inputs.prompt}}
tools:
- type: io.kestra.plugin.langchain4j.tool.HttpMcpClient
sseUrl: http://localhost:8080
SSE URL to the MCP server
Format
duration
Connection timeout