Class: AWSCDK::DevOpsAgent::CfnAssociation::MCPServerConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DevOpsAgent::CfnAssociation::MCPServerConfigurationProperty
- Defined in:
- dev_ops_agent/cfn_association.rb
Overview
Configuration for MCP (Model Context Protocol) server integration.
Defines the server name, endpoint URL, available tools, optional description, and webhook update settings for custom MCP servers.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of the MCP server.
-
#enable_webhook_updates ⇒ Boolean, ...
readonly
When set to true, enables the Agent Space to create and update webhooks for receiving notifications and events from the service.
-
#endpoint ⇒ String?
readonly
MCP server endpoint URL.
-
#name ⇒ String?
readonly
The name of the MCP server.
-
#tools ⇒ Array<String>
readonly
List of MCP tools that can be used with the association.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(tools:, description: nil, enable_webhook_updates: nil, endpoint: nil, name: nil) ⇒ MCPServerConfigurationProperty
constructor
A new instance of MCPServerConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(tools:, description: nil, enable_webhook_updates: nil, endpoint: nil, name: nil) ⇒ MCPServerConfigurationProperty
Returns a new instance of MCPServerConfigurationProperty.
988 989 990 991 992 993 994 995 996 997 998 999 |
# File 'dev_ops_agent/cfn_association.rb', line 988 def initialize(tools:, description: nil, enable_webhook_updates: nil, endpoint: nil, name: nil) @tools = tools Jsii::Type.check_type(@tools, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tools") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @enable_webhook_updates = enable_webhook_updates Jsii::Type.check_type(@enable_webhook_updates, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enableWebhookUpdates") unless @enable_webhook_updates.nil? @endpoint = endpoint Jsii::Type.check_type(@endpoint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endpoint") unless @endpoint.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
The description of the MCP server.
1010 1011 1012 |
# File 'dev_ops_agent/cfn_association.rb', line 1010 def description @description end |
#enable_webhook_updates ⇒ Boolean, ... (readonly)
When set to true, enables the Agent Space to create and update webhooks for receiving notifications and events from the service.
1015 1016 1017 |
# File 'dev_ops_agent/cfn_association.rb', line 1015 def enable_webhook_updates @enable_webhook_updates end |
#endpoint ⇒ String? (readonly)
MCP server endpoint URL.
1020 1021 1022 |
# File 'dev_ops_agent/cfn_association.rb', line 1020 def endpoint @endpoint end |
#name ⇒ String? (readonly)
The name of the MCP server.
1025 1026 1027 |
# File 'dev_ops_agent/cfn_association.rb', line 1025 def name @name end |
#tools ⇒ Array<String> (readonly)
List of MCP tools that can be used with the association.
1005 1006 1007 |
# File 'dev_ops_agent/cfn_association.rb', line 1005 def tools @tools end |
Class Method Details
.jsii_properties ⇒ Object
1027 1028 1029 1030 1031 1032 1033 1034 1035 |
# File 'dev_ops_agent/cfn_association.rb', line 1027 def self.jsii_properties { :tools => "tools", :description => "description", :enable_webhook_updates => "enableWebhookUpdates", :endpoint => "endpoint", :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 |
# File 'dev_ops_agent/cfn_association.rb', line 1037 def to_jsii result = {} result.merge!({ "tools" => @tools, "description" => @description, "enableWebhookUpdates" => @enable_webhook_updates, "endpoint" => @endpoint, "name" => @name, }) result.compact end |