Reference documentation and code samples for the Cloud API Registry V1BETA API class Google::Cloud::ApiRegistry::V1beta::McpServer.
Represents an MCP Server. MCP Servers act as endpoints that expose a collection of tools that can be invoked by agents.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#capabilities
def capabilities() -> ::Google::Protobuf::Struct
Returns
- (::Google::Protobuf::Struct) — The capabilities that a server may support. Known capabilities defined in https://modelcontextprotocol.io/specification/2025-06-18/schema#servercapabilities and additional capabilities defined by the servers.
#capabilities=
def capabilities=(value) -> ::Google::Protobuf::Struct
Parameter
- value (::Google::Protobuf::Struct) — The capabilities that a server may support. Known capabilities defined in https://modelcontextprotocol.io/specification/2025-06-18/schema#servercapabilities and additional capabilities defined by the servers.
Returns
- (::Google::Protobuf::Struct) — The capabilities that a server may support. Known capabilities defined in https://modelcontextprotocol.io/specification/2025-06-18/schema#servercapabilities and additional capabilities defined by the servers.
#description
def description() -> ::String
Returns
- (::String) — Optional. A human-readable description of the MCP Server's functionality.
#description=
def description=(value) -> ::String
Parameter
- value (::String) — Optional. A human-readable description of the MCP Server's functionality.
Returns
- (::String) — Optional. A human-readable description of the MCP Server's functionality.
#display_name
def display_name() -> ::String
Returns
- (::String) — Optional. A human readable name for the MCP server.
#display_name=
def display_name=(value) -> ::String
Parameter
- value (::String) — Optional. A human readable name for the MCP server.
Returns
- (::String) — Optional. A human readable name for the MCP server.
#name
def name() -> ::String
Returns
-
(::String) — Identifier. The resource name of the MCP Server.
Format:
projects/{project}/locations/{location}/mcpServers/{mcp_server}. Example: projects/12345/locations/us-central1/mcpServers/google:bigquery.googleapis.com:mcp for 1p projects/12345/locations/us-central1/mcpServers/apphub:starbucks for 2p
#name=
def name=(value) -> ::String
Parameter
-
value (::String) — Identifier. The resource name of the MCP Server.
Format:
projects/{project}/locations/{location}/mcpServers/{mcp_server}. Example: projects/12345/locations/us-central1/mcpServers/google:bigquery.googleapis.com:mcp for 1p projects/12345/locations/us-central1/mcpServers/apphub:starbucks for 2p
Returns
-
(::String) — Identifier. The resource name of the MCP Server.
Format:
projects/{project}/locations/{location}/mcpServers/{mcp_server}. Example: projects/12345/locations/us-central1/mcpServers/google:bigquery.googleapis.com:mcp for 1p projects/12345/locations/us-central1/mcpServers/apphub:starbucks for 2p
#state
def state() -> ::Google::Cloud::ApiRegistry::V1beta::State
Returns
- (::Google::Cloud::ApiRegistry::V1beta::State) — Output only. The state of the MCP Server.
#urls
def urls() -> ::Array<::String>
Returns
- (::Array<::String>) — The base URL of the MCP server. Example: [geolocation.googleapis.com/mcp].
#urls=
def urls=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — The base URL of the MCP server. Example: [geolocation.googleapis.com/mcp].
Returns
- (::Array<::String>) — The base URL of the MCP server. Example: [geolocation.googleapis.com/mcp].