Class: Google::Apis::AgentregistryV1alpha::McpServer

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/agentregistry_v1alpha/classes.rb,
lib/google/apis/agentregistry_v1alpha/representations.rb,
lib/google/apis/agentregistry_v1alpha/representations.rb

Overview

Represents an MCP (Model Context Protocol) Server.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ McpServer

Returns a new instance of McpServer.



1010
1011
1012
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1010

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#attributesHash<String,Hash<String,Object>>

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. Corresponds to the JSON property attributes

Returns:

  • (Hash<String,Hash<String,Object>>)


967
968
969
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 967

def attributes
  @attributes
end

#create_timeString

Output only. Create time. Corresponds to the JSON property createTime

Returns:

  • (String)


972
973
974
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 972

def create_time
  @create_time
end

#descriptionString

Output only. The description of the MCP Server. Corresponds to the JSON property description

Returns:

  • (String)


977
978
979
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 977

def description
  @description
end

#display_nameString

Output only. The display name of the MCP Server. Corresponds to the JSON property displayName

Returns:

  • (String)


982
983
984
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 982

def display_name
  @display_name
end

#interfacesArray<Google::Apis::AgentregistryV1alpha::Interface>

Output only. The connection details for the MCP Server. Corresponds to the JSON property interfaces



987
988
989
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 987

def interfaces
  @interfaces
end

#mcp_server_idString

Output only. A stable, globally unique identifier for MCP Servers. Corresponds to the JSON property mcpServerId

Returns:

  • (String)


992
993
994
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 992

def mcp_server_id
  @mcp_server_id
end

#nameString

Identifier. The resource name of the MCP Server. Format: projects/project/ locations/location/mcpServers/mcp_server`. Corresponds to the JSON propertyname`

Returns:

  • (String)


998
999
1000
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 998

def name
  @name
end

#toolsArray<Google::Apis::AgentregistryV1alpha::Tool>

Output only. Tools provided by the MCP Server. Corresponds to the JSON property tools



1003
1004
1005
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1003

def tools
  @tools
end

#update_timeString

Output only. Update time. Corresponds to the JSON property updateTime

Returns:

  • (String)


1008
1009
1010
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1008

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1015

def update!(**args)
  @attributes = args[:attributes] if args.key?(:attributes)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @interfaces = args[:interfaces] if args.key?(:interfaces)
  @mcp_server_id = args[:mcp_server_id] if args.key?(:mcp_server_id)
  @name = args[:name] if args.key?(:name)
  @tools = args[:tools] if args.key?(:tools)
  @update_time = args[:update_time] if args.key?(:update_time)
end