Package com.google.genai.types
Class McpServer
-
- All Implemented Interfaces:
public abstract class McpServer extends JsonSerializable
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 Modifier and Type Class Description public abstract classMcpServer.BuilderBuilder for McpServer.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description McpServer()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>name()The name of the MCPServer. abstract Optional<StreamableHttpTransport>streamableHttpTransport()A transport that can stream HTTP requests and responses. static McpServer.Builderbuilder()Instantiates a builder for McpServer. abstract McpServer.BuildertoBuilder()Creates a builder with the same values as this instance. static McpServerfromJson(String jsonString)Deserializes a JSON string to a McpServer object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
streamableHttpTransport
abstract Optional<StreamableHttpTransport> streamableHttpTransport()
A transport that can stream HTTP requests and responses.
-
builder
static McpServer.Builder builder()
Instantiates a builder for McpServer.
-
toBuilder
abstract McpServer.Builder toBuilder()
Creates a builder with the same values as this instance.
-
-
-
-