Skip to content

aws_bedrockagentcore_gateway_target should support "mcp.mcp_server" target configuration. #44976

Description

@barnharts4

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequests to existing resources that expand the functionality or scope.service/bedrockagentcoreIssues and PRs that pertain to the bedrockagentcore service.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions