Package com.google.genai.types
Class McpServer
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.McpServer
A MCPServer is a server that can be called by the model to perform actions. It is a server that
implements the MCP protocol. Next ID: 5. This data type is not supported in Vertex AI.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic McpServer.Builderbuilder()Instantiates a builder for McpServer.static McpServerDeserializes a JSON string to a McpServer object.name()The name of the MCPServer.abstract Optional<StreamableHttpTransport>A transport that can stream HTTP requests and responses.abstract McpServer.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
McpServer
public McpServer()
-
-
Method Details
-
name
The name of the MCPServer. -
streamableHttpTransport
A transport that can stream HTTP requests and responses. -
builder
Instantiates a builder for McpServer. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a McpServer object.
-