--- name: agents-connect description: > Use when connecting your agent to external APIs, tools, or services via Gateway, or restricting tool access with Cedar policies. Handles gateway setup, target types, outbound auth (OAuth, API key, IAM), credentials, and Cedar policy authoring. Triggers on: "connect to API", "add gateway", "connect to MCP server", "Lambda tools", "OpenAPI", "gateway target", "Cedar policy", "restrict tools", "policy engine", "gateway auth error", "store API key", "outbound credential", "env var API key", "API key None after deploy", "credential not available after deploy", "should this be a gateway target", "give my agent tools", "add tools to agent". Not for inbound auth (who can call your agent) — use agents-harden. Not for debugging agent behavior — use agents-debug. Not for VPC networking errors (agent can't reach APIs due to VPC) — use agents-build. Not for creating or hosting a new MCP server project — use agents-get-started. allowed-tools: Read Grep Glob Bash metadata: type: skill version: "1.0.0" author: aws-agentcore requires-cli: ">=0.9.0" --- # connect Give your AgentCore agent access to external APIs, tools, and services via the AgentCore Gateway — and control what it can access with Cedar policies. ## When to use - You want your agent to call an external API or MCP server - You want to expose Lambda functions as agent tools - You have an OpenAPI spec you want to turn into agent tools - Your agent needs credentials to call an external service - You want to restrict which tools your agent can call (Cedar policies) - You want role-based or amount-based access control on tool calls - A gateway connection, tool call, or policy authorization is failing For adding Cedar policies to control tool access, load [`references/policy.md`](references/policy.md). ## Input `$ARGUMENTS` is optional: ``` /connect # interactive — asks what you're connecting to /connect mcp # MCP server setup /connect lambda # Lambda function as tools /connect openapi # OpenAPI schema as tools /connect credential # Add a credential for outbound auth ``` ## Process ### Step 0: Verify CLI version Run `agentcore --version`. This skill requires v0.9.0 or later. If the version is older, tell the developer to run `agentcore update` before proceeding. ### Step 1: Read the project Read `agentcore/agentcore.json` to understand: - What framework the project uses - What gateways and targets are already configured (in the `agentCoreGateways` array) **If no project context:** Ask what they're trying to connect to and proceed with the appropriate pattern. ### Step 2: Identify what they're connecting to Ask (or infer from `$ARGUMENTS`): > "What are you connecting your agent to? > > 1. An external MCP server (e.g., a third-party tool provider) > 2. A Lambda function you've written > 3. An API with an OpenAPI spec > 4. An AWS API Gateway REST API > 5. An external serv
Use when connecting your agent to external APIs, tools, or services via Gateway, or restricting tool access with Cedar policies. Handles gateway setup, target types, outbound auth (OAuth, API key, IAM), credentials, and Cedar policy authoring. Triggers on: "connect to API", "add gateway", "connect t Оригинален текст · няма потвърден превод на български
Освен тази библиотека Level 8 прави сайтове и онлайн магазини за фирми от цяла България, а цените са публични. Ако вече имате сайт, безплатната проверка показва за под минута колко е бърз на телефон и дали е защитен.