Class MCPServer
java.lang.Object
com.google.genai.gaos.models.interactions.MCPServer
MCPServer
A MCPServer is a server that can be called by the model to perform actions.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe allowed tools.static MCPServer.Builderbuilder()booleaninthashCode()headers()Optional: Fields for authentication headers, timeouts, etc., if needed.name()The name of the MCPServer.toString()type()url()The full URL for the MCPServer endpoint.withAllowedTools(List<AllowedTools> allowedTools) The allowed tools.withHeaders(Map<String, String> headers) Optional: Fields for authentication headers, timeouts, etc., if needed.The name of the MCPServer.The full URL for the MCPServer endpoint.
-
Constructor Details
-
MCPServer
-
MCPServer
public MCPServer()
-
-
Method Details
-
allowedTools
The allowed tools. -
headers
Optional: Fields for authentication headers, timeouts, etc., if needed. -
name
The name of the MCPServer. -
type
-
url
The full URL for the MCPServer endpoint. Example: "https://api.example.com/mcp" -
builder
-
withAllowedTools
The allowed tools. -
withHeaders
Optional: Fields for authentication headers, timeouts, etc., if needed. -
withName
The name of the MCPServer. -
withUrl
The full URL for the MCPServer endpoint. Example: "https://api.example.com/mcp" -
equals
-
hashCode
public int hashCode() -
toString
-