Token导航 LogoToken导航TokenDH.com
Agentcore Gateway MCP To API logo
运维云端stdio官方级别未说明来源级核验

Agentcore Gateway MCP To API

MCP Server

Amazon Bedrock AgentCore Gateway 可将API、Lambda函数和服务转换为MCP兼容工具并暴露给AI代理使用,适用于快速构建和测试AI代理工具链。

工具数

2

提示词数

0

GitHub Stars

1

资源数

0
API网关AI代理工具Python

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

jordanilchev

提供方

jordanilchev

最后核验

2026/5/17 20:23

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

python3 -m venv .venv

详细介绍

AgentCore Gateway QuickStart 🚀

Amazon Bedrock AgentCore Gateway makes it easy to convert APIs, Lambda functions, and services into MCP-compatible tools and expose them to AI agents. This repo is a minimal quickstart to create a Gateway, register a Lambda target, and run a test agent that invokes the tools.

See the upstream guide for more detail: https://aws.github.io/bedrock-agentcore-starter-toolkit/user-guide/gateway/quickstart.html

Files in this repo

💰 Cost

This demo will incur a small cost (under $10) to your account, mainly due to Cognito use for machine-to-machine identity. Check the AWS Free Tier, which offers $200 credit for new customers.

Quick start

  1. Install dependencies:

Create and activate a virtual environment (recommended):

    python3 -m venv .venv
    source .venv/bin/activate  # on macOS / Linux

Then install the required Python packages:

    pip install boto3
    pip install bedrock-agentcore-starter-toolkit
    pip install strands-agents
  1. Run script to create the Gateway and Lambda target:

Note: If you're using a multi-profile AWS configuration, make sure to activate the appropriate profile before running the scripts and setting it up the environment ($AWS_PROFILE):

    export AWS_PROFILE=[a profile from ~/.aws/credentials]
    python 1-setup_gateway.py
  1. Update the Lambda code with more functional one.

✳️ Look up in the account the Lambda function created and replace with provided code, over the initial boilerplate.

  1. Enjoy it in the interactive agent chat:
    python 2-run_agent.py

- This runs run_agent. - The agent uses the Bedrock model (change model_id inside the script as needed) and lists available tools from the Gateway.

  1. Prompt ideas and poke the code

- Ask the agent about weather or time: Try time in Paris, Time in France, then time in some obscure vilage. Try in another language. Enjoy the flexability of this kide of user facing interface, against a minimal API backend code. - Check the Lambda tools as defined in lambda_function.py, also see the MCP definition below. - Lambda tools: - get_weather: accepts location - get_time: accepts timezone

Notes & customization

MCP definition for reference

or view/edit in the AWS console

    [
    {
        "description": "Get weather for a location",
        "inputSchema": {
        "properties": {
            "location": {
            "type": "string"
            }
        },
        "required": [
            "location"
        ],
        "type": "object"
        },
        "name": "get_weather"
    },
    {
        "description": "Get time for a timezone",
        "inputSchema": {
        "properties": {
            "timezone": {
            "type": "string"
            }
        },
        "required": [
            "timezone"
        ],
        "type": "object"
        },
        "name": "get_time"
    }
    ]

Troubleshooting

License & references

  • This quickstart is a minimal example. For full operations and advanced configuration, see the AgentCore Starter Toolkit documentation:

https://aws.github.io/bedrock-agentcore-starter-toolkit/

目录标签

目录标签

API网关AI代理工具Python本地部署Lambda集成MCP兼容AWS服务

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

oauth

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

2

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiooauth部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP