类:StdioServerParameters

java.lang.Object
com.google.adk.tools.mcp.StdioServerParameters

public abstract class StdioServerParameters extends Object
用于建立 MCP stdio 连接的参数。
  • 嵌套类概述

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    “Builder for”是一个用于描述某种构建工具或框架的术语。它通常表示该工具/框架用于帮助开发者或系统管理员快速、高效地创建或构建特定类型的应用程序、系统或组件。例如:“Builder for Web Applications”(用于构建Web应用程序的工具)或“Builder for Cloud Services”(用于构建云服务的工具)。 StdioServerParameters.
  • 构造函数概述

    Constructors
    Constructor
    Description
     
  • 方法概述

    Modifier and Type
    Method
    Description
    abstract @Nullable com.google.common.collect.ImmutableList<String>
    该命令的可选参数。
    用于创建一个新的构建器(builder)。 StdioServerParameters.
    abstract String
    用于执行 stdio 服务器的命令。
    abstract @Nullable com.google.common.collect.ImmutableMap<String,String>
    env()
    可选的环境变量。
    io.modelcontextprotocol.client.transport.ServerParameters
    将其转换为…… ServerParameters `instance.`

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造函数详细信息

    • StdioServerParameters

      public StdioServerParameters()
  • 方法详细信息(Method Details)

    • command

      public abstract String command()
      用于执行 stdio 服务器的命令。
    • args

      public abstract @Nullable com.google.common.collect.ImmutableList<String> args()
      该命令的可选参数。
    • env

      public abstract @Nullable com.google.common.collect.ImmutableMap<String,String> env()
      可选的环境变量。
    • builder

      public static StdioServerParameters.Builder builder()
      用于创建一个新的构建器(builder)。 StdioServerParameters.
    • toServerParameters

      public io.modelcontextprotocol.client.transport.ServerParameters toServerParameters()
      将其转换为…… ServerParameters `instance.`