AnthropicMCPServerURLDefinition

class AnthropicMCPServerURLDefinition(val name: String, val url: String, val authorizationToken: String? = null, val toolConfiguration: AnthropicToolConfiguration? = null)(source)

Represents an MCP server URL definition for Anthropic client integration. This class defines the properties needed for connecting to and configuring an MCP server.

Constructors

Link copied to clipboard
constructor(name: String, url: String, authorizationToken: String? = null, toolConfiguration: AnthropicToolConfiguration? = null)

Properties

Link copied to clipboard
@SerialName(value = "authorization_token")
val authorizationToken: String? = null

Optional authorization token for authentication with the MCP server.

Link copied to clipboard

The name or identifier of the MCP server.

Link copied to clipboard
@SerialName(value = "tool_configuration")
val toolConfiguration: AnthropicToolConfiguration? = null

Optional configuration for tool usage on the MCP server.

Link copied to clipboard

The type of mcp server definition, which is always set to "url".

Link copied to clipboard
val url: String

The URL endpoint of the MCP server.