Description
AWS CLI 2.31.22 supports creating an AgentCore Gateway target of type mcp.mcpServer with a --target-configuration such as:
{
mcp : {
mcpServer : {
endpoint : "<MCP server url>"
}
}
}
The aws_bedrockagentcore_gateway_target should be enhanced to support this also.
Affected Resource(s) or Data Source(s)
aws_bedrockagentcore_gateway_target
Potential Terraform Configuration
resource "aws_bedrockagentcore_gateway_target" "example_mcp_server" {
name = "example_mcp_server"
description = "MCP Server target to Example MCP server"
gateway_identifier = aws_bedrockagentcore_gateway.example_gateway.gateway_id
target_configuration {
mcp {
mcp_server {
endpoint = "<example mcp server invocation url>"
}
}
}
credential_provider_configuration {
oauth {
provider_arn = aws_bedrockagentcore_oauth2_credential_provider.example_gateway.credential_provider_arn
scopes = aws_cognito_resource_server.agentcore_example_gateway_outbound.scope_identifiers
}
}
}
References
See AWS Go SDK docs: https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/bedrockagentcorecontrol@v1.12.0/types#McpTargetConfiguration
The Model Context Protocol (MCP) configuration for a target. This structure defines how the gateway uses MCP to communicate with the target.
The following types satisfy this interface:
McpTargetConfigurationMemberLambda
**McpTargetConfigurationMemberMcpServer**
McpTargetConfigurationMemberOpenApiSchema
McpTargetConfigurationMemberSmithyModel
Would you like to implement the enhancement?
No
Description
AWS CLI
2.31.22supports creating an AgentCore Gateway target of typemcp.mcpServerwith a--target-configurationsuch as:The
aws_bedrockagentcore_gateway_targetshould be enhanced to support this also.Affected Resource(s) or Data Source(s)
aws_bedrockagentcore_gateway_targetPotential Terraform Configuration
References
See AWS Go SDK docs: https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/bedrockagentcorecontrol@v1.12.0/types#McpTargetConfiguration
Would you like to implement the enhancement?
No