Reference documentation and code samples for the Google Cloud Api Registry V1beta Client class McpServer.
Represents an MCP Server. MCP Servers act as endpoints that expose a collection of tools that can be invoked by agents.
Generated from protobuf message google.cloud.apiregistry.v1beta.McpServer
Namespace
Google \ Cloud \ ApiRegistry \ V1betaMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
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
↳ display_name
string
Optional. A human readable name for the MCP server.
↳ description
string
Optional. A human-readable description of the MCP Server's functionality.
↳ urls
string[]
The base URL of the MCP server. Example: [geolocation.googleapis.com/mcp].
↳ capabilities
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.
↳ state
int
Output only. The state of the MCP Server.
getName
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
string
setName
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
var
string
$this
getDisplayName
Optional. A human readable name for the MCP server.
string
setDisplayName
Optional. A human readable name for the MCP server.
var
string
$this
getDescription
Optional. A human-readable description of the MCP Server's functionality.
string
setDescription
Optional. A human-readable description of the MCP Server's functionality.
var
string
$this
getUrls
The base URL of the MCP server. Example: [geolocation.googleapis.com/mcp].
setUrls
The base URL of the MCP server. Example: [geolocation.googleapis.com/mcp].
var
string[]
$this
getCapabilities
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.
hasCapabilities
clearCapabilities
setCapabilities
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.
$this
getState
Output only. The state of the MCP Server.
setState
Output only. The state of the MCP Server.
$this

