# Cloud API Registry v1 API - Class McpServer (1.0.0-beta01)

    public sealed class McpServer : IMessage<McpServer>, IEquatable<McpServer>, IDeepCloneable<McpServer>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud API Registry v1 API class McpServer.

Represents an MCP Server. MCP Servers act as endpoints that expose a
collection of tools that can be invoked by agents.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> McpServer

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[McpServer](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiRegistry.V1/latest/Google.Cloud.ApiRegistry.V1.McpServer), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[McpServer](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiRegistry.V1/latest/Google.Cloud.ApiRegistry.V1.McpServer), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[McpServer](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiRegistry.V1/latest/Google.Cloud.ApiRegistry.V1.McpServer), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.ApiRegistry.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiRegistry.V1/latest/Google.Cloud.ApiRegistry.V1)

## Assembly

Google.Cloud.ApiRegistry.V1.dll

## Constructors

### McpServer()

    public McpServer()

### McpServer(McpServer)

    public McpServer(McpServer other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiRegistry.V1/latest/Google.Cloud.ApiRegistry.V1.McpServer` |

## Properties

### Capabilities

    public Struct Capabilities { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` |   |

### Description

    public string Description { get; set; }

Optional. A human-readable description of the MCP Server's functionality.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DisplayName

    public string DisplayName { get; set; }

Optional. A human readable name for the MCP server.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### McpServerName

    public McpServerName McpServerName { get; set; }

[McpServerName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiRegistry.V1/latest/Google.Cloud.ApiRegistry.V1.McpServerName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiRegistry.V1/latest/Google.Cloud.ApiRegistry.V1.McpServer#Google_Cloud_ApiRegistry_V1_McpServer_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiRegistry.V1/latest/Google.Cloud.ApiRegistry.V1.McpServerName` |   |

### Name

    public string Name { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### State

    public State State { get; set; }

Output only. The state of the MCP Server.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiRegistry.V1/latest/Google.Cloud.ApiRegistry.V1.State` |   |

### Urls

    public RepeatedField<string> Urls { get; }

The base URL of the MCP server. Example: \[geolocation.googleapis.com/mcp\].

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |