mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-26 18:35:33 +01:00
## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work > - The AWS connector lets agents work in an AWS account through AWS's hosted MCP server, with a per-connection role and short-lived credentials (#22083, #22195, #22233, #22626) > - It has been behind the `enableAwsConnector` experimental setting. It is now proven on paperclip.staging: a connection was set up end to end, and the daily QA routine's agent uses it to read private test evidence from S3 > - On the role step, the person still had to paste the role ARN back, even when their own agent created the role and reported the ARN in its live checklist > - This pull request takes the connector out of experimental and has the page pick up the role ARN from the agent, keeping the field for people who set the role up by hand > - The benefit is AWS available to everyone, with a setup that is "paste a prompt, press Test connection" ## Linked Issues or Issue Description Refs #22233 (role setup), #22626 (live agent checklist). **Subsystem affected** Connections (AWS app definition, role setup UI), instance experimental settings. **Problem or motivation** - The AWS connector works, but is hidden unless an operator turns on an experimental flag. - The setup page always showed a Role ARN field, and the person had to copy the ARN from the agent's summary into it. **Proposed solution** - Remove `experimentalFeatureKey` from the AWS app definition. `enableAwsConnector` becomes a compatibility key: stored and Cloud-managed values are ignored, and old clients' writes are accepted (same pattern as `enableMcpAggregators` and `enablePublicMcp`). - Move the Role ARN field into "Or do it by hand". When the agent finishes, take the ARN from its finish summary, accepting only an IAM role ARN for this connection's own role name (`paperclip-<connectionId>`), so a summary cannot point the connection at another role. "Test connection" then works with nothing to paste. The by-hand section opens on its own when a test fails or the agent finished without a usable ARN. **Alternatives considered** - Letting the agent save the ARN through the checklist API: more surface on a token-only route. Reading it from the finish summary needs no new API, and the test still proves the role trusts only this connection. - Removing the field entirely: people who use CloudFormation or IAM by hand still need it. ## What Changed - `packages/shared/src/app-definitions/aws.json`, `scripts/app-definition-overrides/aws.json`: no `experimentalFeatureKey`. - `packages/shared/src/feature-catalog.ts`, `validators/instance.ts`: `enableAwsConnector` is "(compatibility)", default on. - `server/src/services/instance-settings.ts`: always on; Cloud-managed values skipped; old clients' writes accepted. - `ui/src/pages/InstanceExperimentalSettings.tsx`: the AWS toggle is removed. - `ui/src/features/connections/aws-role-arn.ts` (new): the role ARN rule and `roleArnFromAgentSummary`. - `ui/src/features/connections/AwsRoleSetup.tsx`: Role ARN under "Or do it by hand", auto-filled from the agent's summary, with copy updated ("hands back the role when it finishes", "the Role ARN field below"). - `doc/connections/AWS.md`: no longer described as experimental. ## Verification - Server: `aws-mcp-connector.test.ts` (connects even with a stored `enableAwsConnector: false`), `instance-settings-managed-overlay.test.ts` (stays on with stored and Cloud-managed false; an old client's false write is accepted), `instance-settings-service.test.ts`: 68 passed. The 4 new flag tests fail against master's source (red/green). - Shared: `app-definitions.test.ts` 43 passed; `scripts/app-definition-overrides.test.mjs` 3 passed. - UI: `aws-role-arn.test.ts` 3 passed (this connection's ARN from a summary, including role paths and a trailing period; another role, a longer name, a short account and no ARN are rejected). UI typecheck clean. - Storybook (headless Playwright, current branch): the default view has no Role ARN field; "agent done" shows "Your agent's role is ready. Test the connection to finish." with Test connection enabled; "test failed" opens "Or do it by hand" with the field at its end. No page errors. - Live: the connector was set up end to end on paperclip.staging (Test connection passed) and is in daily use by the QA routine. To re-check after deploy without the flag. ## Risks - Every instance now shows the AWS connector. It was already proven on staging; access is per connection and read-only connections are capped by AWS's `ReadOnlyAccess`. - The ARN auto-fill trusts only an ARN naming this connection's own role, and Test connection still verifies AWS accepts it, so a wrong or foreign ARN cannot be saved silently. ## Model Used - Claude Opus 5.5 (`claude-opus-5-5`) in Claude Code, with tool use (shell, file edits, Storybook with headless Playwright, the live staging instance). ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs) - [x] My branch name describes the change (e.g. `docs/...`, `fix/...`) and contains no internal Paperclip ticket id or instance-derived details - [x] I have run tests locally and they pass - [x] I have added or updated tests where applicable - [x] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [ ] All Paperclip CI gates are green - [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups - [x] I will address all Greptile and reviewer comments before requesting merge 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
250 lines
8.0 KiB
JSON
250 lines
8.0 KiB
JSON
{
|
|
"schemaVersion": 1,
|
|
"slug": "aws",
|
|
"name": "AWS",
|
|
"description": "Let agents work in an AWS account through AWS's hosted MCP server, with short-lived credentials made for each connection.",
|
|
"categories": [
|
|
"developer"
|
|
],
|
|
"featured": false,
|
|
"urlPatterns": [
|
|
"https://aws-mcp.*.api.aws/*"
|
|
],
|
|
"docsUrl": "https://docs.aws.amazon.com/agent-toolkit/latest/userguide/getting-started-aws-mcp-server.html",
|
|
"reviewedTools": {
|
|
"reviewedAt": "2026-11-18",
|
|
"sourceUrl": "https://docs.aws.amazon.com/aws-mcp/latest/userguide/understanding-mcp-server-tools.html",
|
|
"read": [
|
|
"aws___search_documentation",
|
|
"aws___read_documentation",
|
|
"aws___retrieve_skill",
|
|
"aws___list_regions",
|
|
"aws___get_regional_availability",
|
|
"aws___get_tasks"
|
|
],
|
|
"write": [
|
|
"aws___run_script",
|
|
"aws___get_presigned_url"
|
|
],
|
|
"unlisted": "write"
|
|
},
|
|
"methods": [
|
|
{
|
|
"key": "aws-role",
|
|
"label": "AWS role (no stored keys)",
|
|
"transport": "mcp_remote",
|
|
"auth": "api_key",
|
|
"credentialMinter": "aws_mcp",
|
|
"ownershipModes": [
|
|
"customer"
|
|
],
|
|
"whenToUse": "Use when this Paperclip instance has a public HTTPS address. AWS trusts this connection directly, so Paperclip stores no AWS keys.",
|
|
"defaults": {
|
|
"serverUrlTemplate": "https://aws-mcp.{endpointRegion}.api.aws/mcp",
|
|
"mcpSessionRequired": true
|
|
},
|
|
"tenantFields": [
|
|
{
|
|
"key": "roleArn",
|
|
"label": "Role ARN",
|
|
"type": "text",
|
|
"required": false,
|
|
"helperMd": "Set on the AWS setup step after the role exists. The role must trust this company's Paperclip identity provider for this connection only.",
|
|
"validation": {
|
|
"pattern": "^arn:aws[a-z-]*:iam::[0-9]{12}:role/(?:[A-Za-z0-9+=,.@_-]+/)*[A-Za-z0-9+=,.@_-]{1,64}$",
|
|
"maxLength": 600
|
|
},
|
|
"hidden": true,
|
|
"defaultValue": ""
|
|
},
|
|
{
|
|
"key": "endpointRegion",
|
|
"label": "AWS MCP endpoint region",
|
|
"type": "select",
|
|
"required": true,
|
|
"defaultValue": "us-east-1",
|
|
"options": [
|
|
{
|
|
"value": "us-east-1",
|
|
"label": "US East (N. Virginia)"
|
|
},
|
|
{
|
|
"value": "us-west-2",
|
|
"label": "US West (Oregon)"
|
|
},
|
|
{
|
|
"value": "eu-west-1",
|
|
"label": "Europe (Ireland)"
|
|
},
|
|
{
|
|
"value": "eu-west-2",
|
|
"label": "Europe (London)"
|
|
},
|
|
{
|
|
"value": "eu-central-1",
|
|
"label": "Europe (Frankfurt)"
|
|
},
|
|
{
|
|
"value": "ap-southeast-1",
|
|
"label": "Asia Pacific (Singapore)"
|
|
},
|
|
{
|
|
"value": "ap-southeast-2",
|
|
"label": "Asia Pacific (Sydney)"
|
|
},
|
|
{
|
|
"value": "ap-northeast-1",
|
|
"label": "Asia Pacific (Tokyo)"
|
|
}
|
|
],
|
|
"placeholder": "us-east-1"
|
|
},
|
|
{
|
|
"key": "accessLevel",
|
|
"label": "Access level",
|
|
"type": "select",
|
|
"required": true,
|
|
"defaultValue": "read_only",
|
|
"options": [
|
|
{
|
|
"value": "read_only",
|
|
"label": "Read only"
|
|
},
|
|
{
|
|
"value": "full",
|
|
"label": "Everything the role allows"
|
|
}
|
|
],
|
|
"helperMd": "Read only adds AWS's ReadOnlyAccess limit to every session, so AWS refuses changes even when the role allows them.",
|
|
"placeholder": "Read only"
|
|
}
|
|
],
|
|
"guidanceMd": "Create an IAM role that trusts this company's Paperclip identity provider, limited to this connection. Attach `AWSMCPSignInOAuthAccessPolicy` and the permissions agents should have.",
|
|
"riskTier": "S4",
|
|
"consoleLinks": {
|
|
"docs": "https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_oidc.html"
|
|
}
|
|
},
|
|
{
|
|
"key": "aws-access-key",
|
|
"label": "Access key",
|
|
"transport": "mcp_remote",
|
|
"auth": "api_key",
|
|
"credentialMinter": "aws_mcp",
|
|
"ownershipModes": [
|
|
"customer"
|
|
],
|
|
"whenToUse": "Use when AWS cannot reach this Paperclip instance over public HTTPS, such as a local or private-network instance.",
|
|
"defaults": {
|
|
"serverUrlTemplate": "https://aws-mcp.{endpointRegion}.api.aws/mcp",
|
|
"mcpSessionRequired": true
|
|
},
|
|
"credentialFields": [
|
|
{
|
|
"key": "accessKeyId",
|
|
"label": "Access key ID",
|
|
"type": "text",
|
|
"required": true,
|
|
"secret": true,
|
|
"placeholder": "AKIA…",
|
|
"validation": {
|
|
"pattern": "^A[A-Z0-9]{15,127}$",
|
|
"maxLength": 128
|
|
}
|
|
},
|
|
{
|
|
"key": "secretAccessKey",
|
|
"label": "Secret access key",
|
|
"type": "password",
|
|
"required": true,
|
|
"secret": true,
|
|
"helperMd": "Use a dedicated IAM user for this connection. It needs `AWSMCPSignInOAuthAccessPolicy`, `sts:GetFederationToken`, and the permissions agents should have.",
|
|
"placeholder": "Paste the secret access key"
|
|
}
|
|
],
|
|
"tenantFields": [
|
|
{
|
|
"key": "roleArn",
|
|
"label": "Role ARN (optional)",
|
|
"type": "text",
|
|
"required": false,
|
|
"advanced": true,
|
|
"placeholder": "arn:aws:iam::123456789012:role/paperclip-agents",
|
|
"helperMd": "Paperclip switches into this role before each session when set.",
|
|
"validation": {
|
|
"pattern": "^arn:aws[a-z-]*:iam::[0-9]{12}:role/(?:[A-Za-z0-9+=,.@_-]+/)*[A-Za-z0-9+=,.@_-]{1,64}$",
|
|
"maxLength": 600
|
|
}
|
|
},
|
|
{
|
|
"key": "endpointRegion",
|
|
"label": "AWS MCP endpoint region",
|
|
"type": "select",
|
|
"required": true,
|
|
"defaultValue": "us-east-1",
|
|
"options": [
|
|
{
|
|
"value": "us-east-1",
|
|
"label": "US East (N. Virginia)"
|
|
},
|
|
{
|
|
"value": "us-west-2",
|
|
"label": "US West (Oregon)"
|
|
},
|
|
{
|
|
"value": "eu-west-1",
|
|
"label": "Europe (Ireland)"
|
|
},
|
|
{
|
|
"value": "eu-west-2",
|
|
"label": "Europe (London)"
|
|
},
|
|
{
|
|
"value": "eu-central-1",
|
|
"label": "Europe (Frankfurt)"
|
|
},
|
|
{
|
|
"value": "ap-southeast-1",
|
|
"label": "Asia Pacific (Singapore)"
|
|
},
|
|
{
|
|
"value": "ap-southeast-2",
|
|
"label": "Asia Pacific (Sydney)"
|
|
},
|
|
{
|
|
"value": "ap-northeast-1",
|
|
"label": "Asia Pacific (Tokyo)"
|
|
}
|
|
],
|
|
"placeholder": "us-east-1"
|
|
},
|
|
{
|
|
"key": "accessLevel",
|
|
"label": "Access level",
|
|
"type": "select",
|
|
"required": true,
|
|
"defaultValue": "read_only",
|
|
"options": [
|
|
{
|
|
"value": "read_only",
|
|
"label": "Read only"
|
|
},
|
|
{
|
|
"value": "full",
|
|
"label": "Everything the key allows"
|
|
}
|
|
],
|
|
"helperMd": "Read only adds AWS's ReadOnlyAccess limit to every session, so AWS refuses changes even when the key allows them.",
|
|
"placeholder": "Read only"
|
|
}
|
|
],
|
|
"guidanceMd": "Create a dedicated IAM user for this connection, attach `AWSMCPSignInOAuthAccessPolicy`, allow `sts:GetFederationToken`, and add the permissions agents should have.",
|
|
"riskTier": "S4",
|
|
"consoleLinks": {
|
|
"keys": "https://console.aws.amazon.com/iam/home#/users",
|
|
"docs": "https://docs.aws.amazon.com/agent-toolkit/latest/userguide/getting-started-aws-mcp-server.html"
|
|
}
|
|
}
|
|
]
|
|
}
|