
Sauce Api Mcp
io.github.saucelabs-sample-test-frameworks由 GitHub 帳號 saucelabs-sample-test-frameworks 發布v1.0.0更新於 Oct 24, 2026
An open-source MCP server that provides LLM access to the Sauce Labs API
概覽
開源的 Sauce Labs MCP 伺服器,讓 AI 助理以自然語言查詢帳號、裝置、測試工作與建置,並操作真實裝置雲。
- 可以做什麼
- 查詢帳號、使用者、團隊與服務帳號資訊,並取得目前作用中的團隊。瀏覽裝置清單與即時狀態,包含私有裝置。取得近期測試工作、工作詳情、真實裝置工作,以及日誌、影片、截圖等測試資產。搜尋與檢視建置、建置內工作,以及上傳應用程式檔案與管理儲存群組設定。檢視 Sauce Connect 通道狀態、使用中的工作與版本下載資訊。透過 RDC 伺服器建立與關閉裝置 session、安裝或啟動應用程式、截圖、執行 adb 指令、傳輸檔案、擷取網路流量與啟動 Appium。
- 適用情境
- 當你使用 Sauce Labs 進行跨平台測試,想用自然語言查詢帳號、裝置、測試工作與建置狀態,或需要透過 RDC 伺服器在真實裝置上開 session、安裝並啟動應用程式時適用。
- 執行需求
- 本機執行,需 Python 3.10 以上並以 pip 安裝套件;需要 Sauce Labs 帳號,透過環境變數 SAUCE_USERNAME 與 SAUCE_ACCESS_KEY 提供憑證;可選用 SAUCE_REGION 與 SAUCE_MCP_MAX_RESPONSE_ITEMS。RDC 伺服器啟動時需連網取得 OpenAPI 規格,離線時使用快取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Sauce Api Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Sauce Labs MCP Server
A Model Context Protocol (MCP) server that provides comprehensive integration with the Sauce Labs testing platform. This package includes two complementary MCP servers enabling AI assistants to interact with Sauce Labs' device cloud, manage test jobs, analyze builds, and monitor testing infrastructure through natural language conversations.
[!TIP] Prefer a hosted, more feature-rich option? Sauce MCP is the official MCP server hosted by Sauce Labs at
https://mcp.saucelabs.com. There is nothing to install or update, and it offers a broader tool set than this package, including live real-device control (tap, type, screenshot, app install/launch), network capture, and AI-powered test case authoring, execution, and scheduling. See Connect your AI client for setup instructions.
Servers
This package provides two separate MCP servers optimized for different use cases:
sauce-api-mcp (Core Server) — Full Sauce Labs API integration for account management, device discovery, job analysis, builds, storage, and tunnels.
sauce-api-mcp-rdc (RDC Server) — Real Device Cloud (RDC) focused server. Dynamically generates MCP tools at startup
from the official Sauce Labs OpenAPI spec using FastMCP with an OpenAPIProvider,
so the tool set is always up-to-date without code changes. Includes a small set of handwritten tools for endpoints that
need special handling (binary payloads, session lifecycle, app installation polling).
Both servers can be configured simultaneously in your LLM client for full Sauce Labs coverage.
Features
🚀 Core Capabilities
- Account Management: View account details, team information, and user permissions
- Device Cloud Access: Browse 300+ real devices (iOS, Android) and virtual machines
- Test Job Management: Retrieve recent jobs, analyze test results, and debug failures
- Build Monitoring: Track build status, view job collections, and analyze test suites
- Storage Management: Manage uploaded apps and test artifacts
- Tunnel Monitoring: Check Sauce Connect tunnel status and configuration
🔧 Advanced Features
- Real-time Device Status: Monitor device availability and usage across data centres
- Cross-platform Testing: Support for both Virtual Device Cloud (VDC) and Real Device Cloud (RDC)
- Test Analytics: Detailed job information including logs, videos, and performance metrics
- Team Collaboration: Multi-team support with proper access controls
- Dynamic RDC API:
sauce-api-mcp-rdcauto-discovers the latest RDC v2 endpoints from the OpenAPI spec at startup; the cached spec is used as a fallback when the network is unavailable - Response shaping: Large API list responses are automatically truncated to keep LLM context budget under control (
configurable via
SAUCE_MCP_MAX_RESPONSE_ITEMS) - File safety: File push/pull operations on devices are restricted to
~/.sauce-mcp/files/to prevent path traversal
Prerequisites
- Python 3.10+
pip- Sauce Labs account with API access
- Claude Desktop, Gemini CLI, Goose, or another MCP-compatible LLM client
Installation
Install the package from PyPI:
This installs both servers and registers their command-line entry points:
sauce-api-mcp— core serversauce-api-mcp-rdc— RDC OpenAPI server
Verify installation:
Configuration for LLM Clients
Claude Desktop (Mac / Linux / Windows)
-
Locate your Claude Desktop config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
-
Find your Python installation's
bindirectory: -
Add both servers to your config:
-
Restart Claude Desktop to load the servers.
Gemini CLI
Add to ~/.gemini/settings.json:
Goose
Add to ~/.config/goose/config.yaml:
Environment Variables (Alternative)
Instead of adding credentials to config files, you can export them as environment variables:
Then omit the env block from your config. Both servers will automatically pick them up.
Configuration
Required Environment Variables
Optional Environment Variables
Getting Your Sauce Labs Credentials
- Log into your Sauce Labs account
- Navigate to Account → User Settings
- Copy your Username and Access Key
Troubleshooting Installation
"Command not found: sauce-api-mcp"
The entry point script isn't in your PATH. Use the full path approach:
"ENOENT: no such file or directory" in MCP client
The MCP client is using a different Python environment. Solutions:
- Use the full absolute path (recommended) — update your config with the path printed by
python3 -c "import sys; print(sys.prefix + '/bin/sauce-api-mcp')", not justwhich sauce-api-mcp - Module invocation (fallback):
Example Prompts
- "Show me my recent test failures"
- "Find available iPhone 16 devices"
- "Analyse the performance of my latest build"
- "Open a session on a Samsung device and install my app"
- "What tunnels do I have running right now?"
Available Tools
Core Server (sauce-api-mcp)
Account & Organisation
Device Management
Test Jobs
Builds
Storage
Tunnels
Test Assets & Logs
RDC Server (sauce-api-mcp-rdc)
The RDC server auto-generates tools from the Sauce Labs RDC v2 OpenAPI spec. The full tool list varies as the spec evolves, but the categories below are always present.
Session Management
Device Discovery
App Management
Device Interaction
File Operations
Network & Proxy
Appium
Development Setup
Prerequisites
- Python 3.10+
uvpackage manager- Git
Clone and Setup
This creates a virtual environment and installs all dependencies (including test extras) in editable mode.
Project Structure
Running the Servers Locally
Both will print Error: This server is not meant to be run interactively — this is expected (they communicate over
stdio with MCP clients, not the terminal).
To point your MCP client at a local development checkout:
Running Tests
Tests are split into three groups:
Adding Dependencies
CI / Release Workflow
Continuous Integration
Every pull request targeting main runs three sequential jobs via build.yml:
- test — integration tests across Python 3.10, 3.11, 3.12 (in parallel)
- test-live — live tests on Python 3.12 (after
test) - test-slow — slow tests on Python 3.12 (after
test-live)
Releases
Releases are triggered manually via the Release workflow (publish.yml) in GitHub Actions:
- Go to Actions → Release → Run workflow
- Choose the release type:
patch,minor,major, orprerelease - For pre-releases, optionally set the token (
alpha,beta,rc)
The workflow then:
- Bumps the version in
pyproject.tomlandserver.jsonusingpython-semantic-release - Creates a
v*git tag and a GitHub Release with auto-generated changelog - Publishes stable releases to PyPI and the MCP Registry
- Publishes pre-releases (alpha/beta/rc) to TestPyPI only
Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
Getting Help
- Sauce Labs Documentation: docs.saucelabs.com
- API Reference: docs.saucelabs.com/dev/api
- Support: Contact Sauce Labs support through your account dashboard
- GitHub Issues: Report bugs or request features
Changelog
For a full history of releases and changes, see the GitHub Releases page.
v1.1.0
- Merged
sauce-api-mcpandsauce-labs-mcp(RDC OpenAPI) into single monorepo package - Added
sauce-api-mcp-rdcentry point for the RDC-focused server - Migrated RDC server from deprecated
FastMCPOpenAPItoOpenAPIProvider + FastMCP(fastmcp 3.x) - Automated release workflow via
workflow_dispatchwithpython-semantic-release; release type chosen by the author ( patch/minor/major/prerelease) - CI split into three sequential stages: integration tests (matrix 3.10–3.12) → live tests → slow tests
- Locked dependencies with
uv.lockfor reproducible installs
v1.0.3
- Updated to Apache License 2.0 (previously MIT)
v1.0.2
- Submitted to official MCP Registry
- Added Python 3.9 support
v1.0.1
- Overhauled README with improved install instructions
v1.0.0
- Initial release with full Sauce Labs API integration
Made with ❤️ for the testing community
License
Apache 2.0 (versions 1.1.0+)
Versions prior to 1.0.3 were released under the MIT License.
Disclaimer of Warranties
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Limitation of Liability
IN NO EVENT SHALL SAUCE LABS, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ( INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
General Use
The MCP Server is provided as a free and open-source tool to facilitate interaction with publicly available APIs. Users are free to modify and distribute the software under the terms of the Apache License 2.0.
By using this software, you acknowledge that you are doing so at your own risk and that you are responsible for your own compliance with all applicable laws and regulations.
Indemnification
You agree to indemnify and hold harmless Sauce Labs, Inc. ("Sauce Labs"), its officers, directors, employees, and agents from and against any and all claims, liabilities, damages, losses, or expenses, including reasonable attorneys' fees and costs, arising out of or in any way connected with your access to or use of this software.
This includes, but is not limited to:
-
Your Interaction with Third-Party LLM Providers: You acknowledge that this software utilises publicly available APIs for interaction with a Large Language Model (LLM). You are solely responsible for your use of any third-party LLM services, including your adherence to the terms and conditions of the LLM provider and any costs associated with your use, such as token fees. Sauce Labs has no control over, and assumes no responsibility for, the content, privacy policies, or practices of any third-party LLM providers.
-
Content Generated by the LLM: You are solely responsible for the content generated, received, or transmitted through your use of the MCP Server and the underlying LLM. Sauce Labs does not endorse and has no control over the content of communications made by you or any third party through the server.
-
Your Code and Modifications: Any modifications, enhancements, or derivative works you create based on the MCP Server are your own, and you are solely responsible for their performance and any liabilities that may arise from their use.
來源:README.md,提交 1dbdcf7
工具
0版本歷史
1- v1.0.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分