Prerequisites
This topic covers what you need in place before an agent can connect: the AWS account and Amazon WorkSpaces Applications fleet that host the desktop session, and the permissions and software your agent uses to reach it. Setting these up first lets your agent authenticate and operate the desktop without interruption.
Supported operating systems
Agent access supports the same operating systems as Amazon WorkSpaces Applications. How you get an image depends on the operating system.
| Operating system | Image source | More information |
|---|---|---|
| Windows Server | AWS-provided base images, or bring your own image |
WorkSpaces Applications Base Image and Managed Image Update Release Notes |
| Linux | AWS-provided base images | WorkSpaces Applications Base Image and Managed Image Update Release Notes |
| Windows 11 | Bring Your Own License (BYOL): you supply the image | Bring Your Own Windows Desktop Licenses for Amazon WorkSpaces Applications |
Windows 11 requires additional BYOL setup. For requirements, see Bring Your Own Windows Desktop Licenses for Amazon WorkSpaces Applications.
Account and fleet requirements
To set up agent access, you need the following:
-
An active Amazon WorkSpaces Applications fleet (Always-On or On-Demand). If you haven't created a fleet, see Get Started with Amazon WorkSpaces Applications: Set Up With Sample Applications.
-
A stack associated with a fleet. Agents cannot connect to a stack without an associated fleet.
-
An AWS account with permissions to create and manage Amazon WorkSpaces Applications stacks.
-
If you plan to enable screenshot storage, an Amazon S3 bucket. The bucket policy must grant the AppStream service principal access to list buckets. The agent that connects to the Model Context Protocol (MCP) server must have the
s3:PutObjectpermission on the bucket. -
A fleet running the latest version of the WorkSpaces Applications Agent. This is the streaming software on the image, not the AI agent you build. For more information about updating it, see Keep Your Amazon WorkSpaces Applications Image Up-to-Date. For information about managing agent versions, see Managing agent versions.
Agent and permissions requirements
To build and connect your agent, you need the following:
-
AWS credentials (environment variables, AWS profile, EC2 instance role, or Lambda execution role) with the following IAM permissions. The agent uses these credentials directly to sign requests to the MCP server:
{ "Sid": "MCP", "Effect": "Allow", "Action": ["agentaccess-mcp:*"], "Resource": "*" }, { "Sid": "AppStream", "Effect": "Allow", "Action": ["appstream:CreateStreamingURL", "appstream:DescribeFleets"], "Resource": "*" }The
agentaccess-mcp:*wildcard includes the following actions:agentaccess-mcp:InvokeMcp: Initialize sessions and discover toolsagentaccess-mcp:GetScreenshot: Capture screen stateagentaccess-mcp:LeftClick: Perform left mouse clickagentaccess-mcp:DoubleClick: Perform double clickagentaccess-mcp:TripleClick: Perform triple clickagentaccess-mcp:RightClick: Perform right mouse clickagentaccess-mcp:MiddleClick: Perform middle mouse clickagentaccess-mcp:TypeText: Type text stringagentaccess-mcp:KeyPress: Press key or key combinationagentaccess-mcp:HoldKey: Hold key for durationagentaccess-mcp:Scroll: Scroll at coordinatesagentaccess-mcp:MovePointer: Move pointer to coordinatesagentaccess-mcp:LeftClickDrag: Perform left click dragagentaccess-mcp:LeftMouseDown: Press and hold left mouse buttonagentaccess-mcp:LeftMouseUp: Release left mouse buttonagentaccess-mcp:CheckConnectionStatus: Check connection status of a streaming sessionagentaccess-mcp:CallForwardedTool: Invoke a forwarded tool on a remote instanceagentaccess-mcp:LaunchApplication: Launch a cataloged application in the current sessionagentaccess-mcp:ToggleAppSwitcher: Open or close the app-switcher overlay
-
An MCP-compatible agent framework. The agent must be able to make Signature Version 4 (SigV4)-signed Streamable HTTP requests to the MCP endpoint. The Strands Agents SDK
provides native MCP client support, or you can use any framework with the mcp-proxy-for-aws transport. -
Python 3.10 or later on the machine where your agent runs. Your agent can run on any operating system, independent of the streamed desktop.
Limitations
WorkSpaces Applications agent access configurations have the following limitations:
-
VPC endpoints are not supported.
-
Multi-session fleets are not supported.
-
Elastic fleets are not supported.
-
A single session supports only a single agent connection.