本文へ移動
cccskills
無料GitHub で公開

amazon-workspaces-agent-access

Connects AI agents to remote Windows desktop applications on Amazon WorkSpaces Applications (AppStream 2.0) through the managed Agent Access MCP server, and guides reliable desktop automation. Covers connecting an agent to the MCP endpoint (SigV4, streaming URL, and Active Directory SAML/Domain Join), BLOCKING vs POLLING connect modes, the computer-use tools (screenshot, click, type, key, scroll), screenshot-budget and action-batching discipline, MCP tool forwarding (forwarded___ tools), session lifecycle and expire-on-delete, and troubleshooting connection errors. Use when building or debugging an agent that drives a remote Windows desktop or GUI application via WorkSpaces Applications / AppStream — including "dcv session not ready", "client_disconnected", 400 signing-region, POLLING/connection_status, SAML assertion, or forwarded tool questions. Not for Amazon WorkSpaces Personal/Core virtual desktops or general AppStream fleet administration unrelated to agent access.

インストール方法を見る

含まれるファイル(9)

  • SKILL.md10.7 KB
  • references/automation-best-practices.md3.4 KB
  • references/connection-modes.md2.1 KB
  • references/connection-setup.md7.3 KB
  • references/enabling-agent-access.md3.9 KB
  • references/session-lifecycle.md3.0 KB
  • references/tool-forwarding.md3.4 KB
  • references/tools-reference.md2.3 KB
  • references/troubleshooting.md3.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Amazon WorkSpaces Applications — Agent Access

Domain expertise for connecting AI agents to remote Windows desktops on Amazon WorkSpaces Applications (AppStream 2.0) via the managed Agent Access MCP server, and for driving those desktops reliably.

How it works: Agent Access is MCP-only — there is no AWS CLI/SDK command that calls the desktop tools. Agents connect to https://agentaccess-mcp.{region}.api.aws/mcp over Streamable HTTP, SigV4-signed with service name agentaccess-mcp, and call MCP tools (screenshot, left_click, type_text, ...) to drive the desktop. The AWS CLI/SDK is used only for setup — appstream create-streaming-url, fleet/stack configuration. mcp-proxy-for-aws handles the SigV4 signing.

Recommended setup: use mcp-proxy-for-aws (Python) as the transport; it signs each request and manages the DELETE lifecycle. Any MCP client that supports Streamable HTTP + SigV4 works. When running the AWS CLI/SDK setup steps (create-streaming-url, stack/fleet configuration), the AWS MCP server is recommended for sandboxed execution and audit logging.

Guardrail — where this skill's own files live (MCP vs local install)

This skill can be loaded two ways, and they resolve the skill's own bundled files from different places. Determine how the skill was loaded before reading a reference:

  • Loaded through the AWS MCP retrieve_skill tool: The skill is not installed on the local filesystem. You MUST fetch each reference via retrieve_skill with the file parameter (e.g. file="references/connection-setup.md"), and use the returned content. Do NOT file_read these paths locally — they do not exist on disk.
  • Installed locally (e.g. .kiro/skills/amazon-workspaces-agent-access/ or ~/.claude/skills/amazon-workspaces-agent-access/): Read files from the local skill directory using relative paths.

This distinction applies only to the skill's own packaged files. User data and session artifacts are always read from and written to the user's working directory. Never fetch or write customer data through retrieve_skill.

Key facts agents get wrong (load the reference before answering in detail)

These are HTTP headers / metadata on the MCP connection — not tool parameters, and there is no connect_to_desktop tool. Do not invent tools or parameters; the desktop tools are exactly those in tools-reference.md.

  • Connect mode. Selected by the X-Amzn-AgentAccess-Connect-Mode HTTP header (value BLOCKING, the default, or POLLING) — sent on the MCP request alongside the streaming-URL/SAML auth. It is NOT a JSON tool argument.

    • ❌ WRONG (common hallucination): calling a connect_to_desktop tool with a connection_mode: "POLLING" parameter, or a session_id/application_id/user_id argument. None of those exist.

    • ✅ RIGHT: set the X-Amzn-AgentAccess-Connect-Mode: POLLING header. Then tools/list initially returns only the connection_status tool; the agent calls connection_status repeatedly until its returned state is CONNECTED, and only then does tools/list return the full desktop tool set (screenshot, left_click, ...). (details: connection-modes.md)

      # Correct POLLING usage — the mode is an HTTP header on the MCP connection:
      async with aws_iam_streamablehttp_client(
          endpoint="https://agentaccess-mcp.us-east-1.api.aws/mcp",  # use YOUR fleet's region
          aws_service="agentaccess-mcp", aws_region="us-east-1",  # region must match the fleet (else 400)
          headers={
              "X-Amzn-AgentAccess-Streaming-Session-Url": streaming_url,
              "X-Amzn-AgentAccess-Connect-Mode": "POLLING",   # header, not a tool arg
          },
      ) as (read, write, _):
          async with ClientSession(read, write) as session:
              await session.initialize()
              # tools/list now returns ONLY connection_status until the desktop is up:
              while json.loads((await session.call_tool("connection_status", {})).content[0].text)["state"] != "CONNECTED":
                  await asyncio.sleep(2)
              tools = await session.list_tools()   # now the full desktop tool set
      
  • Streaming session (non-domain-joined) is the X-Amzn-AgentAccess-Streaming-Session-Url header. Domain-joined fleets instead pass the SAML assertion + stack ARN via MCP _meta keys aws.agentaccess/workspacesApplicationsSamlAssertion and aws.agentaccess/workspacesApplicationsStackArn. (details: connection-setup.md)

  • Expire-on-delete is the X-Amzn-AgentAccess-Expire-Streaming-Session-On-Delete header (true/false; default false). Expiry happens on the client's explicit HTTP DELETE — mcp-proxy-for-aws sends it automatically on clean close. (details: session-lifecycle.md)

  • Forwarded tools are namespaced by server: forwarded___<server-name>___<tool-name> (e.g. forwarded___filesystem___read_file) — not forwarded___<tool-name>. (details: tool-forwarding.md)

  • COMPUTER_INPUT requires COMPUTER_VISION to also be ENABLED in the stack's AgentAccessConfig. (details: enabling-agent-access.md)

Routing

User needRead
Enable agent access on a stack (AgentAccessConfig: COMPUTER_INPUT/COMPUTER_VISION/FORWARD_MCP_TOOLS, screen resolution/format, prerequisites) — the admin setup step before any agent can connectenabling-agent-access.md
Connect an agent to the MCP server — endpoint, SigV4, streaming URL (non-domain-joined), or Active Directory SAML/Domain Joinconnection-setup.md
Choose BLOCKING vs POLLING; poll connection_status until the desktop is readyconnection-modes.md
The computer-use tool set (mouse, keyboard, screenshot) and their parameterstools-reference.md
Automate reliably — screenshot budget, action batching, trusting UI actions, coordinate planning, dialog recoveryautomation-best-practices.md
Expose your own MCP servers on the fleet as forwarded___<server>___<tool> tools; prefer forwarded tools for file/web taskstool-forwarding.md
Session lifecycle — cleanup, expire-on-delete, idle timeout, one-agent-per-sessionsession-lifecycle.md
Debug an error (exact string → cause → fix): dcv session not ready, client_disconnected, 400/401/403, Unknown tooltroubleshooting.md

Security Considerations

  • The agent acts under the caller's AWS identity. Every MCP request is SigV4-signed with service agentaccess-mcp; the desktop session runs with those credentials. Grant only the specific agentaccess-mcp actions the agent calls (e.g. InvokeMcp, GetScreenshot, LeftClick, TypeText) and scope them with the agentaccess-mcp:StackArn condition key — avoid a blanket agentaccess-mcp:* or Resource: *. Prefer IAM roles over long-lived users. (Full action list + example: connection-setup.md → IAM permissions.)
  • Screenshots can capture sensitive data. COMPUTER_VISION captures whatever is on the desktop — treat screenshots as potentially containing PII or secrets. If screenshot storage is enabled, the S3 bucket must enforce encryption at rest and in transit and least-privilege access: grant the AppStream service principal only what it needs and the connecting agent only s3:PutObject (see enabling-agent-access.md).
  • Enable only the capabilities you need. COMPUTER_INPUT, COMPUTER_VISION, and FORWARD_MCP_TOOLS are independent — do not enable input/forwarding on stacks that only need vision.
  • Tool forwarding executes code on the fleet. Forwarded MCP servers run on the instance under the session context. Install only trusted servers system-wide, gate with FORWARD_MCP_TOOLS, and scope the CallForwardedTool IAM action by agentaccess-mcp:StackArn (see tool-forwarding.md).
  • Keep a human in the loop where warranted. UserControlMode: VIEW_STOP lets an observer watch the live session and stop the agent. Treat agent-driven desktop actions as capable of arbitrary UI operations.
  • Audit with CloudTrail. Agent session events are logged; tool calls are CloudTrail data events and require a trail configured to log them. Create a trail with agentaccess-mcp data events enabled, encrypt it with SSE-KMS, and add CloudWatch alarms for anomalous patterns (e.g. high screenshot volume, unexpected TypeText, repeated auth failures). If screenshot storage is enabled, turn on S3 server access logging for the bucket.
  • Protect federation material. For domain-joined (SAML) fleets, safeguard the IdP signing certificate and the IAM SAML provider/role trust policy, and do not log the SAML assertion. Traffic is HTTPS + SigV4 — never disable TLS verification.
  • Treat typed input as potentially sensitive. type_text can enter secrets (passwords, tokens); these may then appear in screenshots, screenshot-storage S3, and CloudTrail data events. Avoid typing long-lived secrets into the desktop where possible, and restrict who can read those sinks.
  • Refer to the current Agent Access documentation and AWS security best practices for the latest guidance.

Note: Regional endpoints, feature availability, and quotas change. When precision matters, confirm against the current Agent Access MCP server documentation. The references focus on the values and gotchas that are easy to get wrong.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Entry point for AI-agent work on AWS: pick a runtime, plan a migration for existing workloads, and build an executable POC — one phased flow. Triggers on: which runtime for my agent, AgentCore vs ECS vs EKS vs Lambda, AgentCore vs Lambda MicroVMs, deploy an AI agent on AWS, agent architecture on AWS, I have an agent idea what do I build, move/migrate my agents to AWS, agent migration plan, add AgentCore services (memory, gateway, identity, policy, observability) to an agent already on AWS, Temporal on AWS (migrate/run Temporal workers on AWS, a service orchestrated by Temporal, Temporal Cloud vs self-hosted). Temporal Workflow code is never rewritten into Step Functions. Requires at least one agentic component — a purely non-agent system (plain services, batch jobs, HTTP endpoints, non-agent Temporal Activities) is out of scope, redirected to gcp-to-aws / heroku-to-aws / llm-to-bedrock. Not for: compute/data migration with no AI agent; pure LLM SDK rewrite (use llm-to-bedrock); per-model pricing.

日本語の概要は準備中です。原文の説明を表示しています。

aws/agent-toolkit-for-aws2,8402026年10月10日 更新

Use to extend an existing agent project with memory, app integration, VPC, multi-agent, migration, model, browser, code interpreter, payments, or resource removal. Triggers: "add memory", "remember across sessions", "call agent from app", "invoke agent from code", "agent auth", "streaming", "VPC", "VPC connectivity", "can't reach from VPC", "multi-agent", "A2A", "A2A auth", "orchestrator not delegating", "specialist not called", "migrate Bedrock Agent", "migration issue", "change model", "browser tool", "code interpreter", "delete agent", "tear down", "agentcore remove", "cross-account memory", "add payments capability to my agent", "wire payments plugin", "integrate x402 payments with the agent I'm building", "add MPP payments", "Machine Payments Protocol". External APIs via Gateway: use agents-connect. New project: use agents-get-started. CLI/dev-server errors: use agents-debug. Runtime x402/MPP payments: use agents-pay. Migration-specific Strands vs LangGraph routes here.

日本語の概要は準備中です。原文の説明を表示しています。

aws/agent-toolkit-for-aws2,8402026年10月10日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

aws/agent-toolkit-for-aws2,8402026年10月10日 更新

Use when your agent or environment is broken — wrong answers, errors, timeouts, tool failures, or CLI issues. Reads traces and logs to diagnose root causes. Also checks prerequisites when the CLI itself isn't working. Triggers on: "agent not working", "wrong answer", "agent error", "tool call failing", "debug agent", "check logs", "read traces", "broken", "500 error", "424 error", "model access denied", "command not found", "stuck in DELETING", "maxVms exceeded", "cold start diagnosis", "cold start slow", "agentcore create error", "create failed", "exit code 7", "connection refused local dev". Not for deploy failures — use agents-deploy. Not for performance tuning without errors — use agents-optimize. Not for VPC configuration — use agents-build. Not for observability setup or missing logs — use agents-optimize.

日本語の概要は準備中です。原文の説明を表示しています。

aws/agent-toolkit-for-aws2,8402026年10月10日 更新

Use when deploying your agent to AWS, or when a deploy has failed. Handles pre-flight validation, CDK/IAM/quota error diagnosis, version management, rollback, and canary deployments. Triggers on: "deploy my agent", "agentcore deploy", "deploy failed", "CDK error", "rollback", "canary deploy", "pin version", "redeploy", "deploy stuck". Not for production hardening — use agents-harden. Not for adding capabilities before deploy — use agents-build or agents-connect. Not for VPC configuration errors — use agents-build.

日本語の概要は準備中です。原文の説明を表示しています。

aws/agent-toolkit-for-aws2,8402026年10月10日 更新

Use when a developer wants to create a new agent project or get started with AgentCore. Handles framework selection, project scaffolding, first deploy, and first invocation. Triggers on: "build an agent", "create an agent", "get started", "new project", "agentcore create", "which framework", "Strands vs LangGraph", "hello world agent", "first agent", "create MCP server", "host MCP server", "agentcore dev", "dev server", "what port", "local development". Not for adding capabilities to existing projects — use agents-build or agents-connect. Strands vs LangGraph in a migration context routes to agents-build, not here. Connecting to an existing MCP server routes to agents-connect, not here.

日本語の概要は準備中です。原文の説明を表示しています。

aws/agent-toolkit-for-aws2,8402026年10月10日 更新

aws のスキルをすべて見る

このスキルの問題を報告する