McpServer

public final class McpServer

A MCPServer is a server that can be called by the model to perform actions.

Types

Link copied to clipboard
public final class Builder

A builder for McpServer.

Link copied to clipboard
public final class Headers

Optional: Fields for authentication headers, timeouts, etc., if needed.

Functions

Link copied to clipboard
public final Map<String, JsonValue> _additionalProperties()
Link copied to clipboard
public final JsonField<List<AllowedTools>> _allowedTools()

Returns the raw JSON value of allowedTools.

Link copied to clipboard
public final JsonField<Tool.McpServer.Headers> _headers()

Returns the raw JSON value of headers.

Link copied to clipboard
public final JsonField<String> _name()

Returns the raw JSON value of name.

Link copied to clipboard
public final JsonValue _type()

Expected to always return the following:

Link copied to clipboard
public final JsonField<String> _url()

Returns the raw JSON value of url.

Link copied to clipboard

The allowed tools.

Link copied to clipboard
public final static Tool.McpServer.Builder builder()

Returns a mutable builder for constructing an instance of McpServer.

Link copied to clipboard
public Boolean equals(Object other)
Link copied to clipboard
public Integer hashCode()
Link copied to clipboard

Optional: Fields for authentication headers, timeouts, etc., if needed.

Link copied to clipboard
public final Boolean isValid()
Link copied to clipboard
public final Optional<String> name()

The name of the MCPServer.

Link copied to clipboard
Link copied to clipboard
public String toString()
Link copied to clipboard
public final Optional<String> url()

The full URL for the MCPServer endpoint. Example: "https://api.example.com/mcp"

Link copied to clipboard
public final Tool.McpServer validate()