NAME
Google::Cloud::Apiregistry::V1::Resources - Compiled Protocol Buffers messages for google/cloud/apiregistry/v1/resources.proto
SYNOPSIS
use Google::Cloud::Apiregistry::V1::Resources;
my $msg = Google::Cloud::Apiregistry::V1::Resources::McpServer->new({
name => $name,
display_name => $display_name,
description => $description,
urls => $urls,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Apiregistry::V1::Resources::McpServer->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/apiregistry/v1/resources.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Apiregistry::V1::Resources::McpServer
Represents an MCP Server. MCP Servers act as endpoints that expose a collection of tools that can be invoked by agents.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. 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
$msg->display_name()/$msg->display_name($value)Type:
StringOptional. A human readable name for the MCP server.
$msg->description()/$msg->description($value)Type:
StringOptional. A human-readable description of the MCP Server's functionality.
$msg->urls()/$msg->urls($value)Type:
StringThe base URL of the MCP server. Example: [geolocation.googleapis.com/mcp].
$msg->capabilities()/$msg->capabilities($value)Type:
Message(Google::Protobuf::Struct::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.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Apiregistry::V1::State)Output only. The state of the MCP Server.
Google::Cloud::Apiregistry::V1::Resources::McpTool
Message describing McpTool object
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The resource name of the McpTool. Format: `projects/{project}/locations/{location}/mcpServers/{mcp_server}/mcpTools/{mcp_tool}`. Example: projects/12345/locations/us-central1/mcpServers/google:bigquery.googleapis.com:mcp/mcpTools/insert_job for 1p projects/12345/locations/us-central1/mcpServers/apphub:starbucks/mcpTools/order_pizza for 2p
$msg->display_name()/$msg->display_name($value)Type:
StringOptional. A human-readable name for the tool, suitable for display.
$msg->description()/$msg->description($value)Type:
StringA human-readable description of the tool's functionality.
$msg->mcp_server_urls()/$msg->mcp_server_urls($value)Type:
StringAutomatically populated reference to MCP Server. Helpful when multiple tools are requested across different MCP Servers.
$msg->input_schema()/$msg->input_schema($value)Type:
Message(Google::Protobuf::Struct::Struct)A JSON Schema object defining the expected parameters for invoking the tool.
$msg->output_schema()/$msg->output_schema($value)Type:
Message(Google::Protobuf::Struct::Struct)Optional. A JSON Schema object defining the expected structure of the tool's output.
$msg->annotations()/$msg->annotations($value)Type:
Message(Google::Protobuf::Struct::Struct)Optional key-value object that allows developers to provide additional information regarding tool properties, behavior, and usage best practices. Annotations or tags to facilitate semantic search across tools ("semantic tags") are not in the MVP scope. When implemented, the first set of supported annotations will likely be the standard, predefined annotations from the open-source MCP spec. These include: - title: A human-readable title for the tool, useful for UI display. - readOnlyHint: If true, indicates the tool does not modify its environment. - destructiveHint: If true, the tool may perform destructive updates (only meaningful when readOnlyHint is false). - idempotentHint: If true, calling the tool repeatedly with the same arguments has no additional effect (only meaningful when readOnlyHint is false). - openWorldHint: If true, the tool may interact with an "open world" of external entities.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Apiregistry::V1::Resources::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.