Getting Started with Automation MCP Tool
Automation MCP Tool is part of the TestMu AI MCP Server. It connects your AI client to test execution data on TestMu AI, letting you triage and debug automation failures directly from your IDE.
Key Benefits
Use the Automation tool to accelerate debugging and test analysis:
- Access your test execution data on TestMu AI directly from your IDE or editor.
- Triage and troubleshoot test failures to identify the root cause (RCA).
- Fix your test code based on the RCA and accelerate your development.
- Generate new test cases using execution data from TestMu AI.
- Use network logs, Selenium logs, and console logs to pinpoint bottlenecks and failures.
Available Tools
The Automation MCP Tool provides 23 tools for web and app automation builds, tests, logs, sessions and tunnels. Tools that read a test take a platform argument: web for browser automation, app for mobile app automation.
| Tool | What it does | Access |
|---|---|---|
automation_get_test | Gets one TestMu AI web or app automation test by test ID: status, browser or device, OS, duration, build, capabilities, commandCount and totalPageCount (the number of 100-command pages that automation_get_command_logs serves). | Read-only |
automation_get_command_logs | Gets the command log of a TestMu AI automation test, one page of 100 commands at a time. | Read-only |
automation_get_network_logs | Gets the network log (HTTP requests and responses) of a TestMu AI automation test. | Read-only |
automation_get_console_logs | Gets the browser console messages of a TestMu AI web automation test. | Read-only |
automation_get_selenium_logs | Gets the raw driver log of a TestMu AI automation test: the Selenium log for web tests, the Appium log for app tests, or the instrumentation log for XCUI and Espresso app tests (detected from the test). | Read-only |
automation_list_builds | Lists TestMu AI web or app automation builds, newest first, with each build ID and status. | Read-only |
automation_get_build | Gets one TestMu AI web or app automation build by build ID: name, status, start and end time, duration, project and dashboard link. | Read-only |
automation_list_sessions | Lists TestMu AI web or app automation sessions (one per test), newest first, optionally only those in one build or with one status. | Read-only |
automation_get_session | Gets one TestMu AI web or app automation session by session ID (the test ID also works): status, browser or device, OS, duration and build. | Read-only |
automation_update_build | Renames a TestMu AI web automation build. | Changes data (destructive) |
automation_stop_build | Stops every running test in a TestMu AI web automation build. | Changes data (destructive) |
automation_delete_build | Permanently deletes a TestMu AI web automation build and its test results. | Changes data (destructive) |
automation_list_platforms | Lists the OS, browser and device combinations the TestMu AI web automation grid supports, to find valid os, browser and version values for a test configuration. | Read-only |
automation_list_tunnels | Lists the TestMu AI tunnels running in the account, with each tunnel ID, name, user and status. | Read-only |
automation_stop_tunnel | Stops a running TestMu AI tunnel by tunnel ID. | Changes data (destructive) |
automation_delete_session | Permanently deletes a TestMu AI web automation test session. | Changes data (destructive) |
automation_update_session | Updates a TestMu AI web automation test session: its name, result status, the reason for the status, or its tags. | Changes data (destructive) |
automation_stop_session | Stops a running TestMu AI web automation test session. | Changes data (destructive) |
automation_get_session_screenshots | Checks that a TestMu AI test session has command-by-command screenshots and returns the link to the test's dashboard page, where the signed-in user views and downloads them. | Read-only |
automation_get_session_video | Checks that a completed TestMu AI test session has a video recording and returns the link to the test's dashboard page, where the signed-in user watches and downloads it. | Read-only |
automation_add_session_exceptions | Adds exception messages to a TestMu AI web automation test, found by session ID. | Changes data |
automation_add_test_exceptions | Adds exception messages to a TestMu AI web automation test, found by test ID. | Changes data |
automation_get_concurrency | Gets the organization's parallel test limits per product, with how many are running and available, and the queue limit. | Read-only |
Access shows what a tool can do to your account: Read-only tools only read data; Changes data tools create or edit something; destructive tools overwrite, delete, stop, approve, merge, spend credits or place calls, so your AI client may ask you to confirm before it runs them.
How to Invoke
Once your MCP client is connected, use natural language to interact with the Automation tool. Example prompts:
- "Triage the failure for TestID
<testID>." - "Show me the network logs for TestID
<testID>." - "What console errors occurred during the last failed test?"
- "Pull the Selenium command logs for
<testID>and tell me where it failed." - "Generate a new test case based on the execution flow of TestID
<testID>."
Your AI client will route the request to the appropriate tool, pull the relevant data from TestMu AI, and return the results inline.