Skip to main content

mcp_servers

Creates, updates, deletes, gets or lists a mcp_servers resource.

Overview

Namemcp_servers
TypeResource
Idgoogle.agentregistry.mcp_servers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The resource name of the MCP Server. Format: projects/{project}/locations/{location}/mcpServers/{mcp_server}.
attributesobjectOutput 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.
createTimestring (google-datetime)Output only. Create time.
descriptionstringOutput only. The description of the MCP Server.
displayNamestringOutput only. The display name of the MCP Server.
interfacesarrayOutput only. The connection details for the MCP Server.
mcpServerIdstringOutput only. A stable, globally unique identifier for MCP Servers.
toolsarrayOutput only. Tools provided by the MCP Server.
updateTimestring (google-datetime)Output only. Update time.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, mcpServersIdGets details of a single McpServer.
listselectprojectsId, locationsIdfilter, pageToken, orderBy, pageSizeLists McpServers in a given project and location.
searchexecprojectsId, locationsIdSearches McpServers in a given project and location.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
mcpServersIdstring
projectsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets details of a single McpServer.

SELECT
name,
attributes,
createTime,
description,
displayName,
interfaces,
mcpServerId,
tools,
updateTime
FROM google.agentregistry.mcp_servers
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND mcpServersId = '{{ mcpServersId }}' -- required
;

Lifecycle Methods

Searches McpServers in a given project and location.

EXEC google.agentregistry.mcp_servers.search
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"pageToken": "{{ pageToken }}",
"searchString": "{{ searchString }}",
"pageSize": {{ pageSize }}
}'
;