aws/agent-toolkit-for-aws/amazon-workspaces-agent-access

Claude Code and agent skill by aws/agent-toolkit-for-aws

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Connects AI agents to Windows desktops on Amazon WorkSpaces Applications (AppStream 2.0) fleets and image builders through the Agent Access MCP server, and guides reliable desktop automation. Covers the MCP endpoint and SigV4 signing, naming the session (stack and user ID, streaming URL, or AD SAML/OIDC), connecting to an image builder as one of its Windows accounts (switch_user), BLOCKING vs POLLING connect modes, the computer-use tools and computer use interface header, screenshot and batchin…

Install

npx vskill@latest install aws/agent-toolkit-for-aws/amazon-workspaces-agent-access

SKILL.md

The same SKILL.md was published earlier as aws/agent-toolkit-for-aws/amazon-workspaces-agent-access.

Amazon WorkSpaces Applications — Agent Access

Domain expertise for connecting AI agents to remote Windows desktops on Amazon WorkSpaces Applications (AppStream 2.0), fleet sessions and image builders, via the managed Agent Access MCP server, and for driving those desktops reliably. Creating and configuring fleets, stacks, image builders and their agent access settings is covered by the setting-up-workspaces-applications skill.

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. Around the connection, the AWS CLI/SDK only creates streaming URLs, assumes the federated role for a domain-joined fleet, and checks that the environment is ready. mcp-proxy-for-aws handles the SigV4 signing.

Recommended setup: use mcp-proxy-for-aws (Python 3.11+, pip install "mcp-proxy-for-aws==1.8.0") as the transport; it signs each request and manages the DELETE lifecycle. Any MCP client that supports Streamable HTTP + SigV4 works. When running AWS CLI/SDK calls (create-streaming-url, the readiness checks), 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/, ~/.claude/skills/amazon-workspaces-agent-access/ or ~/.codex/skills/amazon-workspaces-agent-access/): Read files from the local skill directory. Every path to the skill's own files, such as references/connection-setup.md, is relative to the skill root, from any file in the skill. The only files in assets/ are the sample's three workflow prompts, as text (sample-workflows.md).

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. They are 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, or the interface tools selected by the computer use interface header described in computer-use-interface.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 whatever names the session (stack and user ID, streaming URL, a domain-joined stack ARN or SAML assertion, or image builder name). 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)

```python import asyncio, json, logging from mcp import ClientSession from mcp_proxy_for_aws.client import aws_iam_streamablehttp_client

# Correct POLLING usage — the mode is an HTTP header on the MCP connection: logging.getLogger("mcp_proxy_for_aws").setLevel(logging.ERROR) # keep the streaming URL out of its logs 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 agentaccess___connection_status until the desktop is up: deadline = asyncio.get_running_loop().time() + 600 # give up after 10 minutes while json.loads((await session.call_tool("agentaccess___connection_status", {})).content[0].text)["state"] != "CONNECTED": if asyncio.get_running_loop().time() > deadline: raise TimeoutError("the desktop did not connect within 10 minutes") await asyncio.sleep(2) tools = await session.list_tools() # now the full desktop tool set ```

  • Naming the session (non-domain-joined): either the x-amzn-agentaccess-workspaces-applications-stack header plus a user ID (the x-amzn-agentaccess-workspaces-applications-user-id header, or the caller's SourceIdentity), and the server creates the streaming session, or a streaming URL in the X-Amzn-AgentAccess-Streaming-Session-Url header. Domain-joined fleets need no streaming URL and, preferably, no SAML assertion: connect with credentials from a federated role session (AssumeRoleWithSAML, or AssumeRoleWithWebIdentity with UserPrincipalName and ObjectSid session tags from any OIDC IdP) and send only the stack ARN (x-amzn-agentaccess-workspaces-applications-stack-arn header or the aws.agentaccess/workspacesApplicationsStackArn _meta key, not both). The legacy path passes a SAML assertion + stack ARN via _meta keys aws.agentaccess/workspacesApplicationsSamlAssertion and aws.agentaccess/workspacesApplicationsStackArn. (details: connection-setup.md)
  • Image builders are named by the x-amzn-agentaccess-workspaces-applications-image-builder-name header (or a streaming URL from create-image-builder-streaming-url), and every request also carries x-amzn-agentaccess-local-user: ADMINISTRATOR, TEMPLATE_USER or TEST_USER. Change accounts with the switch_user tool. (details: image-builders.md)
  • Screenshot uploads fail quietly. With screenshot storage on, a missing s3:PutObject shows up only as screenshotUploadError in the result's _meta; the screenshot still returns. (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 or builder's AgentAccessConfig. Agent behavior comes from that config, not from connection parameters. (details: prerequisites.md)
  • Computer use interface is selected per request with the case-insensitive x-amzn-agentaccess-computer-use-interface-id header. Its only accepted, case-sensitive value is ANTHROPIC_COMPUTER_20250124, which serves Claude computer_20250124 tools. Send it on tools/list and every related tools/call. Do not use AgentAccessConfig.ComputerUseInterfaceId or a tool argument. (details: computer-use-interface.md)
  • Replay Session artifacts are partitioned by the session's start date in UTC: agentaccess/replay-session/year={YYYY}/month={MM}/day={DD}/{mcp-session-id}/. (details: replay-session.md)

Precondition: an environment to connect to

Everything in this skill needs either a stack with agent access and an associated fleet that is running, or a running image builder with agent access. Check with the read-only calls in prerequisites.md before connecting. If the environment is missing or agent access is off, load the setting-up-workspaces-applications skill (through your client's skill tool, or retrieve_skill when skills come from the AWS MCP server), complete its setup flow, then come back and continue from the step you were on. Users who already have an environment go straight to connecting. A request to set up a new desktop belongs to the setup skill even when other environments already exist in the account.

Routing

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2,779
Repository forks
341
7-day trend score
40

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 5 Oct 2026, a month ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/aws/agent-toolkit-for-aws/amazon-workspaces-agent-access/badge)](https://verified-skill.com/skills/aws/agent-toolkit-for-aws/amazon-workspaces-agent-access)

Something wrong with this skill or its page? Tell us.