 StdioMcpClient
StdioMcpClient
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.StdioMcpClient"Examples
Chat Completion with Google Gemini and an Stdio 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.StdioMcpClient
        command: ["docker", "run", "--rm", "-i", "mcp/time"]
Properties
command *Requiredarray
 SubType string
The MCP client command, as a list of command parts.
environment object
 SubType string
Environment variables
