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.



794
795
796
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 794

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>>)


751
752
753
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 751

def attributes
  @attributes
end

#create_timeString

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

Returns:

  • (String)


756
757
758
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 756

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


761
762
763
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 761

def description
  @description
end

#display_nameString

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

Returns:

  • (String)


766
767
768
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 766

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



771
772
773
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 771

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)


776
777
778
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 776

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)


782
783
784
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 782

def name
  @name
end

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

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



787
788
789
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 787

def tools
  @tools
end

#update_timeString

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

Returns:

  • (String)


792
793
794
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 792

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



799
800
801
802
803
804
805
806
807
808
809
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 799

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