MobiLoop

v0.1.0-alpha.15
io.github.enessubass/mobiloop-mcp Checked 2 days ago Published 1 month ago

Guarded AI mobile Appium testing, security scanning, verification, and fix-retest MCP tools.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

code.read_file

Read a non-secret file inside workspaceRoot.

ParameterTypeDescription
path *string
maxBytesnumber

code.search_code

Search workspaceRoot. Uses ripgrep when available and falls back to a built-in scanner.

ParameterTypeDescription
query *string
globstring
maxResultsnumber

code.apply_patch

[approval required][workspace write][risk:dangerous] Apply a unified diff after validating all touched paths stay inside workspaceRoot and are not forbidden.

ParameterTypeDescription
patch *string

code.git_diff

Return git diff for workspaceRoot.

ParameterTypeDescription
stagedboolean

code.create_branch

[approval required][workspace write][risk:dangerous] Create and checkout a guarded feature branch. Branch must match allowedBranchPattern.

ParameterTypeDescription
branchName *string

code.commit_changes

[approval required][workspace write][risk:dangerous] Commit changes only while on an allowed feature/ai branch. Optionally stage specific non-secret paths.

ParameterTypeDescription
message *string
pathsarray

code.open_pr

[approval required][workspace write][risk:dangerous] Open a pull request with GitHub CLI from the current allowed feature branch.

ParameterTypeDescription
body *string
title *string
basestring
draftboolean

env.preflight

Check host/project readiness for Android, iOS, Flutter, React Native, CI, or all environments.

ParameterTypeDescription
targetstring

env.compatibility_matrix

Return supported host/platform requirements for this MCP package.

env.ensure_appium

[approval required][workspace write][network][risk:network] Check Appium readiness, optionally install a driver and start a detached Appium server.

ParameterTypeDescription
addressstring
appiumCommandstring
appiumHomestring
driverNamestring
installDriverboolean
portnumber
serverUrlstring
startServerboolean
timeoutMsnumber
useNpxboolean

build.detect_project

Detect Flutter, React Native, or native Android project type.

build.install_dependencies

[approval required][workspace write][network][risk:dangerous] Install dependencies for the detected or specified mobile project type.

ParameterTypeDescription
kindstring

build.run_lint

[approval required][workspace write][network][risk:dangerous] Run lint/static analysis for Flutter, React Native, or Android.

ParameterTypeDescription
kindstring

build.run_unit_tests

[approval required][workspace write][network][risk:dangerous] Run unit tests for Flutter, React Native, or Android.

ParameterTypeDescription
kindstring

build.build_debug_apk

[approval required][workspace write][network][risk:dangerous] Build a debug APK and return discovered APK artifact paths.

ParameterTypeDescription
kindstring

build.build_release_candidate

[approval required][workspace write][network][risk:dangerous] Build a release candidate APK. Release signing requirements are delegated to the target project.

ParameterTypeDescription
kindstring

build.collect_build_logs

List build log artifacts emitted by this MCP server.

device.list_devices

List Android devices via adb devices -l.

device.start_emulator

[approval required][device mutation][risk:dangerous] Start an Android emulator by AVD name. Returns after launching or optional boot wait.

ParameterTypeDescription
avdName *string
timeoutMsnumber
waitForBootboolean

device.stop_emulator

[approval required][device mutation][risk:dangerous] Stop an Android emulator through adb emu kill.

ParameterTypeDescription
serialstring

device.install_app

[approval required][device mutation][risk:dangerous] Install or replace an APK on an Android device.

ParameterTypeDescription
apkPath *string
serialstring

device.uninstall_app

[approval required][device mutation][risk:dangerous] Uninstall an Android package from a device.

ParameterTypeDescription
packageName *string
serialstring

device.clear_app_data

[approval required][device mutation][risk:dangerous] Clear app data for an Android package.

ParameterTypeDescription
packageName *string
serialstring

device.grant_permissions

[approval required][device mutation][risk:dangerous] Grant one or more Android runtime permissions to a package.

ParameterTypeDescription
packageName *string
permissions *array
serialstring

device.capture_screenshot

Capture a PNG screenshot from an Android device into artifacts.

ParameterTypeDescription
prefixstring
serialstring

device.pull_logs

Pull Android logcat into artifacts. Optionally filter by package pid when available.

ParameterTypeDescription
clearAfterboolean
outputPathstring
packageNamestring
serialstring

ios.list_simulators

List available iOS simulators via xcrun simctl.

ios.boot_simulator

[approval required][device mutation][risk:dangerous] Boot an iOS simulator and optionally wait until boot completes.

ParameterTypeDescription
device *string
timeoutMsnumber
waitForBootboolean

ios.shutdown_simulator

[approval required][device mutation][risk:dangerous] Shutdown an iOS simulator.

ParameterTypeDescription
device *string

ios.build_app

[device mutation][risk:device] Build an iOS simulator app with xcodebuild into MCP artifacts.

ParameterTypeDescription
scheme *string
buildSettingsobject
configurationstring
derivedDataPathstring
destinationstring
projectstring
sdkstring
workspacestring
xcodebuildArgsarray

ios.install_app

[approval required][device mutation][risk:dangerous] Install an .app bundle on an iOS simulator.

ParameterTypeDescription
appPath *string
devicestring

ios.launch_app

[approval required][device mutation][risk:dangerous] Launch an installed iOS simulator app by bundle id.

ParameterTypeDescription
bundleId *string
devicestring
terminateRunningboolean

ios.capture_screenshot

Capture an iOS simulator screenshot into artifacts.

ParameterTypeDescription
devicestring
prefixstring

ios.collect_logs

Collect recent simulator logs into artifacts.

ParameterTypeDescription
devicestring
laststring
predicatestring
prefixstring

appium.create_session

[approval required][device mutation][risk:dangerous] Create an Appium session. Pass W3C capabilities or raw capabilities object.

ParameterTypeDescription
capabilities *object
serverUrlstring

appium.delete_session

[approval required][device mutation][risk:dangerous] Delete an Appium session.

ParameterTypeDescription
sessionId *string
serverUrlstring

appium.observe_screen

Capture screenshot and page source for the current Appium session, optionally waiting for app UI readiness.

ParameterTypeDescription
sessionId *string
minWaitMsnumber
prefixstring
serverUrlstring
stableMsnumber
timeoutMsnumber
waitForAnyTextarray
waitForPackageIdleboolean

appium.get_page_source

Return raw Appium page source XML.

ParameterTypeDescription
sessionId *string
serverUrlstring

appium.get_accessibility_tree

Return a compact accessibility summary parsed from page source.

ParameterTypeDescription
sessionId *string
serverUrlstring

appium.tap_by_text

[approval required][device mutation][risk:dangerous] Tap a visible element by text with exact-first matching before contains fallback.

ParameterTypeDescription
sessionId *string
text *string
matchModestring
serverUrlstring
timeoutMsnumber

appium.tap_by_accessibility_id

[approval required][device mutation][risk:dangerous] Tap by accessibility id.

ParameterTypeDescription
accessibilityId *string
sessionId *string
serverUrlstring

appium.tap_by_resource_id

[approval required][device mutation][risk:dangerous] Tap by Android resource id or Appium id locator.

ParameterTypeDescription
resourceId *string
sessionId *string
serverUrlstring

appium.tap_coordinates

[approval required][device mutation][risk:dangerous] Tap screen coordinates. Use only when semantic locators are unavailable.

ParameterTypeDescription
sessionId *string
x *number
y *number
serverUrlstring

appium.hide_keyboard

[approval required][device mutation][risk:dangerous] Hide a visible software keyboard and verify it is hidden; never sends a generic back action.

ParameterTypeDescription
sessionId *string
serverUrlstring

appium.type_text

[approval required][device mutation][risk:dangerous] Type text into an element located by accessibility id, id, xpath, text, or native selector.

ParameterTypeDescription
locator *object
sessionId *string
text *string
clearFirstboolean
modestring
serverUrlstring

appium.swipe

[approval required][device mutation][risk:dangerous] Perform a touch swipe by coordinates.

ParameterTypeDescription
endX *number
endY *number
sessionId *string
startX *number
startY *number
durationMsnumber
serverUrlstring

appium.go_back

[approval required][device mutation][risk:dangerous] Send Android/iOS back navigation to the Appium session.

ParameterTypeDescription
sessionId *string
serverUrlstring

appium.wait_for_visible

Wait until a locator becomes visible.

ParameterTypeDescription
locator *object
sessionId *string
serverUrlstring
timeoutMsnumber

appium.assert_visible

Assert that a locator is visible. Returns passed false instead of throwing when not visible.

ParameterTypeDescription
locator *object
sessionId *string
serverUrlstring
timeoutMsnumber

appium.assert_not_visible

Assert that a locator is not visible within timeout.

ParameterTypeDescription
locator *object
sessionId *string
serverUrlstring
timeoutMsnumber

verify.assert_screen_contains_text

Assert current Appium page source contains expected text.

ParameterTypeDescription
sessionId *string
text *string
serverUrlstring

verify.assert_no_crash_in_logcat

Assert logcat or a saved log file has no crash signatures.

ParameterTypeDescription
logPathstring
packageNamestring
serialstring

verify.assert_appium_session_healthy

Assert the Appium session and page source are reachable, distinguishing automation failures from app crashes.

ParameterTypeDescription
sessionId *string
serverUrlstring

verify.assert_api_response

[network][risk:network] Call an API and assert status and optional body substrings.

ParameterTypeDescription
url *string
bodystring
bodyContainsarray
expectedStatusnumber
headersobject
methodstring
timeoutMsnumber

verify.collect_evidence

Collect screenshot, page source, and logcat evidence where available.

ParameterTypeDescription
packageNamestring
prefixstring
serialstring
serverUrlstring
sessionIdstring

verify.assert_navigation_reached

Assert a navigation target by expected Appium page source text.

ParameterTypeDescription
expectedText *string
sessionId *string
serverUrlstring
sourceEvidencePrefixstring

verify.assert_accessibility_labels

Assert clickable or input-like nodes have a text, label, name, content-desc, or resource-id.

ParameterTypeDescription
serverUrlstring
sessionIdstring
sourcePathstring

verify.assert_screenshot_diff

Compare two PNG screenshots and assert the pixel diff ratio is at or below maxDiffRatio.

ParameterTypeDescription
actualPath *string
baselinePath *string
maxDiffRationumber
thresholdnumber

verify.assert_sqlite_query

Run a read-only sqlite query and assert exact output or expected substring.

ParameterTypeDescription
databasePath *string
query *string
expectedOutputstring
outputContainsstring

verify.hash_artifact

Compute SHA-256 for a workspace artifact or evidence file.

ParameterTypeDescription
path *string

flow.analyze_from_code

Infer mobile screens, routes, transitions, and visible text candidates from source code.

ParameterTypeDescription
includeTestsboolean
maxFilesnumber

flow.generate_test_scenarios

Generate candidate mobile E2E scenarios from static source-flow analysis for an AI agent to execute/refine.

ParameterTypeDescription
goalstring
includeNegativeCasesboolean
includeTestsboolean
maxFilesnumber
maxScenariosnumber

flow.run_script

[approval required][device mutation][risk:dangerous] Run a high-level JSON flow DSL over an Appium session: waitText, tapText, type, hideKeyboard, assertText, observe, collectEvidence, back, swipe, checkpoint.

ParameterTypeDescription
sessionId *string
steps *array
delayMsnumber
prefixstring
serverUrlstring
stopOnFailureboolean
testNamestring

flow.record_checkpoint

[workspace write][risk:write] Record a runtime screen checkpoint from Appium source/session and optional action needed to reach the next checkpoint.

ParameterTypeDescription
name *string
testName *string
actionToNextobject
checkpointIdstring
ordernumber
prefixstring
screenshotPathstring
serverUrlstring
sessionIdstring
sourcestring
sourcePathstring

flow.record_test_run

[workspace write][risk:write] Record the ordered checkpoint ids for a test run. The latest passed run becomes the default replay path.

ParameterTypeDescription
checkpointIds *array
status *string
testName *string
artifactsarray
finishedAtstring
runIdstring
startedAtstring

flow.plan_replay

Match the current screen against recorded checkpoints and return Appium actions needed to reach a target checkpoint.

ParameterTypeDescription
minimumScorenumber
serverUrlstring
sessionIdstring
sourcestring
sourcePathstring
targetCheckpointIdstring
testNamestring

flow.replay_to_checkpoint

[approval required][device mutation][risk:dangerous] Auto-advance an Appium session from a previously seen screen to the latest or requested checkpoint.

ParameterTypeDescription
sessionId *string
delayMsnumber
dryRunboolean
minimumScorenumber
serverUrlstring
targetCheckpointIdstring
testNamestring

flow.read_memory

Read recorded flow checkpoints, runs, and code-flow analyses.

flow.clear_memory

[approval required][workspace write][risk:dangerous] Clear flow memory under artifactsDir. This does not modify app source code.

ParameterTypeDescription
confirm *string

loop.record_iteration

[workspace write][risk:write] Append one build-test-verify loop iteration as JSONL evidence.

ParameterTypeDescription
goal *string
iteration *number
test_result *string
artifactsarray
buildstring
devicestring
failurestring
fixstring
reteststring
root_causestring

loop.generate_report

[workspace write][risk:write] Generate a Markdown report from recorded iterations.

ParameterTypeDescription
finalStatusstring
summarystring
titlestring

loop.read_iterations

Read recorded loop iterations.

ci.collect_artifact_manifest

Create a JSON manifest of files under the MCP artifacts directory.

ci.write_github_step_summary

[workspace write][risk:write] Append Markdown to GitHub Actions step summary or a workspace fallback file.

ParameterTypeDescription
markdownstring
sourcePathstring

ci.comment_pr

[approval required][workspace write][network][risk:dangerous] Create a GitHub PR comment through gh. Uses current PR when prNumber is omitted.

ParameterTypeDescription
bodystring
bodyPathstring
prNumberstring

ci.create_github_annotations

[workspace write][risk:write] Emit GitHub Actions warning/error annotations from findings.

ParameterTypeDescription
findings *array
levelstring
titlestring

orchestrator.run_android_validation_loop

[approval required][device mutation][risk:dangerous] Run build -> install -> Appium scripted test -> verification -> evidence -> loop record for Android.

ParameterTypeDescription
goal *string
apiChecksarray
apkPathstring
appiumCapabilitiesobject
appiumStepsarray
avdNamestring
buildDebugApkboolean
clearAppDataboolean
collectEvidenceboolean
expectedTextsarray
flowReplayBeforeStepsboolean
flowReplayMinimumScorenumber
flowReplayTargetCheckpointIdstring
flowReplayTestNamestring
installDependenciesboolean
iterationOffsetnumber
kindstring
maxTestIterationsnumber
packageNamestring
runLintboolean
runUnitTestsboolean
serialstring

orchestrator.run_ios_validation_loop

[approval required][device mutation][risk:dangerous] Run iOS simulator build -> install/launch -> Appium XCUITest scripted test -> verification -> evidence -> loop record.

ParameterTypeDescription
goal *string
appPathstring
appiumCapabilitiesobject
appiumStepsarray
bootSimulatorboolean
buildIosAppboolean
buildSettingsobject
bundleIdstring
captureSimulatorScreenshotboolean
collectEvidenceboolean
collectSimulatorLogsboolean
configurationstring
derivedDataPathstring
destinationstring
devicestring
evidenceTimeoutMsnumber
expectedTextsarray
flowReplayBeforeStepsboolean
flowReplayMinimumScorenumber
flowReplayTargetCheckpointIdstring
flowReplayTestNamestring
installAppboolean
installDependenciesboolean
iterationOffsetnumber
kindstring
launchAppboolean
maxTestIterationsnumber
projectstring
runLintboolean
runUnitTestsboolean
schemestring
sdkstring
simulatorDevicestring
simulatorLogLaststring
simulatorLogPredicatestring
workspacestring
xcodebuildArgsarray

security.scan_source

Scan mobile source and platform configuration for deterministic security signals without running target code.

ParameterTypeDescription
maxFilesnumber
pathsarray

security.generate_test_plan

Generate a deterministic mobile security test plan from a source-scan report for an AI or engineer to execute.

ParameterTypeDescription
reportPath *string

security.compare_scans

Re-run the deterministic source scan and compare it with a baseline report after fixes.

ParameterTypeDescription
baselinePath *string
maxFilesnumber
pathsarray

security.release_gate

Evaluate a source-scan report against a severity threshold before release or merge.

ParameterTypeDescription
reportPath *string
failAtOrAbovestring

policy.list_tools

List effective tool policy metadata for MCP clients and approval gates.

ParameterTypeDescription
includeDescriptionsboolean
requiresApprovalboolean
riskLevelstring
toolNamestring