Reference documentation and code samples for the Google Cloud Agent Registry V1 Client class McpServer.
Represents an MCP (Model Context Protocol) Server.
Generated from protobuf message google.cloud.agentregistry.v1.McpServer
Namespace
Google \ Cloud \ AgentRegistry \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Identifier. The resource name of the MCP Server. Format: |
↳ mcp_server_id |
string
Output only. A stable, globally unique identifier for MCP Servers. |
↳ display_name |
string
Output only. The display name of the MCP Server. |
↳ description |
string
Output only. The description of the MCP Server. |
↳ interfaces |
array<PBInterface>
Output only. The connection details for the MCP Server. |
↳ tools |
array<McpServer\Tool>
Output only. Tools provided by the MCP Server. |
↳ create_time |
Google\Protobuf\Timestamp
Output only. Create time. |
↳ update_time |
Google\Protobuf\Timestamp
Output only. Update time. |
↳ attributes |
array|Google\Protobuf\Internal\MapField
Output only. Attributes of the MCP Server. Valid values: * * |
getName
Identifier. The resource name of the MCP Server.
Format: projects/{project}/locations/{location}/mcpServers/{mcp_server}.
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Identifier. The resource name of the MCP Server.
Format: projects/{project}/locations/{location}/mcpServers/{mcp_server}.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMcpServerId
Output only. A stable, globally unique identifier for MCP Servers.
| Returns | |
|---|---|
| Type | Description |
string |
|
setMcpServerId
Output only. A stable, globally unique identifier for MCP Servers.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDisplayName
Output only. The display name of the MCP Server.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDisplayName
Output only. The display name of the MCP Server.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDescription
Output only. The description of the MCP Server.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDescription
Output only. The description of the MCP Server.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getInterfaces
Output only. The connection details for the MCP Server.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<PBInterface> |
|
setInterfaces
Output only. The connection details for the MCP Server.
| Parameter | |
|---|---|
| Name | Description |
var |
array<PBInterface>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTools
Output only. Tools provided by the MCP Server.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<McpServer\Tool> |
|
setTools
Output only. Tools provided by the MCP Server.
| Parameter | |
|---|---|
| Name | Description |
var |
array<McpServer\Tool>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCreateTime
Output only. Create time.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasCreateTime
clearCreateTime
setCreateTime
Output only. Create time.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUpdateTime
Output only. Update time.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Update time.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAttributes
Output only. Attributes of the MCP Server.
Valid values:
agentregistry.googleapis.com/system/RuntimeIdentity: {"principal": "principal://..."} - the runtime identity associated with the MCP Server.agentregistry.googleapis.com/system/RuntimeReference: {"uri": "//..."}- the URI of the underlying resource hosting the MCP Server, for example, the GKE Deployment.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\MapField |
|
setAttributes
Output only. Attributes of the MCP Server.
Valid values:
agentregistry.googleapis.com/system/RuntimeIdentity: {"principal": "principal://..."} - the runtime identity associated with the MCP Server.agentregistry.googleapis.com/system/RuntimeReference: {"uri": "//..."}- the URI of the underlying resource hosting the MCP Server, for example, the GKE Deployment.
| Parameter | |
|---|---|
| Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
| Returns | |
|---|---|
| Type | Description |
$this |
|