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 class McpServer.Builder

      Builder for McpServer.

    • Constructor Summary

      Constructors 
      Constructor Description
      McpServer()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.Builder builder() Instantiates a builder for McpServer.
      abstract McpServer.Builder toBuilder() Creates a builder with the same values as this instance.
      static McpServer fromJson(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