Skip to main content
Glama
hugomemo-qa
by huytrao

Android Tester QC MCP App

Standalone MCP server for Hugomemo Android QA. It gives an agent deterministic application truth while Android MCP remains the only owner of emulator interaction.

The important split is:

Responsibility

Tooling

Tap, type, swipe, Back, screenshot, UI tree

android_emulator_1 / the configured Android MCP

Server session, queue, attempts, raw result detail, ratings, score, entitlement, usage

this hugomemo-qa MCP

Optional fixture reset/subscription/seed controls

an explicitly configured local QA control plane

Local SQLite queue or in-process game state

optional state sidecar/bridge; otherwise reported as not observable

This repository intentionally does not contain an Android APK, adb wrapper, autonomous launcher, AI provider, database credential, or screenshot analyzer. That keeps failures attributable and the test surface safe to run against a disposable emulator.

Quick start

npm ci
npm run check
npm run lint
cp .env.example .env   # keep the file local; never commit it
export HUGOMEMO_API_URL=http://127.0.0.1:3000
export HUGOMEMO_QA_ENV=development
export HUGOMEMO_QA_ACCESS_TOKEN='set-this-outside-the-repository'
npm run doctor
npm start

The MCP process speaks JSON-RPC on stdout. Diagnostics go to stderr only. Put the token in the MCP client's process environment rather than in a checked-in config file.

Related MCP server: datalox-gated-runtime

Configure this server beside the existing serial-pinned Android MCP. Do not expose duplicate UI actions from this server; it is an application-truth server.

The checked-in, secret-free Hugomemo profile is config/hugomemo-profile.json; it is the single place for the package, serial ownership, status command, and route markers.

{
  "mcpServers": {
    "hugomemo-qa": {
      "command": "node",
      "args": ["/absolute/path/to/Android_tester_qc_mcp_app/dist/index.js"],
      "env": {
        "HUGOMEMO_API_URL": "http://127.0.0.1:3000",
        "HUGOMEMO_QA_ENV": "development"
      }
    }
  }
}

Inject HUGOMEMO_QA_ACCESS_TOKEN through the MCP host/terminal. The Android MCP server is configured separately and remains the sole owner of emulator-5554.

Tool groups

Read tools include:

  • qa_health — unauthenticated API/database health.

  • qa_get_app_snapshot — consistent, bounded Today/Progress/entitlement/usage snapshot.

  • qa_get_current_session — server session and validity state.

  • qa_get_current_round — next server-selected queue round, with asset URLs omitted.

  • qa_get_game_state — optional live game state from the sidecar/bridge.

  • qa_get_attempts and qa_get_round_detail — account-export-backed server attempts.

  • qa_get_skill_ratings and qa_get_memory_score — ratings/score from Progress.

  • qa_get_entitlement and qa_get_usage — server-owned access and usage ledgers.

  • qa_get_sync_status — server sync evidence plus an explicit local-queue observability result.

  • qa_validate_app_contract — validates the live response contracts and reports each failed section.

Mutation names (qa_reset_test_user, qa_set_subscription, qa_seed_questions, qa_set_game_level, and qa_force_offline_queue) are present for a future/local QA control plane. They fail closed unless HUGOMEMO_QA_CONTROL_URL, a control token, a non-production environment, and HUGOMEMO_QA_ALLOW_MUTATIONS=1 are all present. This prevents a missing fixture service from turning into a misleading successful test.

Typical deterministic check

  1. Use Android MCP to navigate to today-screen and start the visible game.

  2. Call qa_get_current_round to retrieve the server question/configuration. Use the returned test_ids and Android MCP component bounds for UI interaction; do not guess from the image URL.

  3. Use Android MCP to play the round and reach the completion route.

  4. Call qa_get_attempts or qa_get_round_detail and compare the raw detail with the visible result. qa_get_memory_score can also compare a UI score supplied by the tester to the server score.

  5. Call qa_validate_app_contract and record the result in the product screen ledger.

If a tool says not_observable, record that as a real gap. The app currently has no supported remote JS/SQLite inspection channel, so the MCP cannot honestly claim local queue contents.

Commands

npm test          # unit/contract tests, no network or emulator
npm run build     # strict TypeScript build
npm run lint      # ESLint
npm run check     # test + build
npm run doctor    # read-only local API health probe

Runtime artifacts belong outside git (the default is .qa-runs/). Never target production or a real user account with fixture controls.

Available Tools

18 tools
qa_force_offline_queueA

Toggle a test offline-queue fixture through the opt-in local fixture control plane.

Inputs: mode (required), confirm (required), user_id.

qa_get_app_snapshotB

Fetch a bounded server-truth snapshot for Today, Progress, entitlement, usage, and account data.

Inputs: max_rows.

qa_get_attemptsA

Read recent server-owned attempts from the complete account export; raw round details are retained.

Inputs: limit.

qa_get_current_roundB

Read the next server-selected queue round. This is not a claim about the active UI round.

Inputs: game_id.

qa_get_current_sessionA

Read the authenticated server session from Today, including validity and progress counters.

qa_get_entitlementA

Read server-authoritative plan, status, billing product identity, and AI credits.

qa_get_game_stateA

Read optional instrumented live game state; returns not_observable when no sidecar/bridge is configured.

qa_get_memory_scoreA

Read the server memory score without inventing zero; optionally compare a score observed in the UI.

Inputs: ui_score, tolerance.

qa_get_round_detailB

Find one exact server attempt by client_attempt_id, or return the most recent bounded attempt.

Inputs: limit, client_attempt_id.

qa_get_skill_ratingsB

Read raw skill ratings, attempt counts, uncertainty, and the score conversion source.

qa_get_sync_statusC

Report server attempt/session evidence and clearly identify whether the local SQLite queue is observable.

Inputs: limit.

qa_get_usageA

Read the separate AI-credit, rewarded-insight, streak-freeze, and bounded AI activity ledgers.

qa_healthA

Read-only Hugomemo API/database health. Does not require a user token.

qa_reset_test_userC

Reset a test user through the opt-in local fixture control plane.

Inputs: confirm (required), user_id (required).

qa_seed_questionsB

Seed test questions through the opt-in local fixture control plane.

Inputs: confirm (required), levels, game_id.

qa_set_game_levelC

Set one test game level config through the opt-in local fixture control plane.

Inputs: level (required), config (required), confirm (required), game_id (required).

qa_set_subscriptionA

Set a test subscription through the opt-in local fixture control plane.

Inputs: status (required), confirm (required), plan_id (required), user_id (required).

qa_validate_app_contractA

Run bounded read-only contract checks against health and all authenticated application-truth endpoints.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 18 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes, with the qa_get_* family splitting out entitlement, usage, session, round, attempts, ratings, and sync status. A few could cause mild confusion—get_app_snapshot overlaps with individual getters, and get_attempts vs get_round_detail both touch attempt data—but the descriptions provide enough separation.

    Naming Consistency5/5

    All tools share a consistent qa_ prefix and use snake_case verb_object naming: qa_get_* for reads, qa_set_*/qa_reset_*/qa_seed_*/qa_force_* for fixture mutations, and qa_validate_* for contract checks. The pattern is uniform and predictable.

    Tool Count4/5

    Eighteen tools is on the heavier side for a typical MCP server, but the count is justified by the QA instrumentation scope: many read-only truth endpoints plus a distinct fixture control-plane group. There is no obvious filler or redundancy that would make the set feel bloated.

    Completeness4/5

    The surface covers health, entitlement/usage, session/round/attempt data, skill/memory ratings, sync status, contract validation, and test-user fixtures. Minor gaps exist—such as no explicit create-test-user tool or read-back for seeded questions—but the core QA and test-fixture workflows are well supported.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      This MCP server provides a stateful, resettable, verifiable API runtime that gates every tool call, enabling agents to run long workflows against provider-shaped environments without live provider write access. It records decisions, side effects, and outcome evidence for replayable, verifiable benchmark runs.
      Apache 2.0
    • A
      license
      B
      quality
      D
      maintenance
      Enables bounded, deterministic triage verdicts for server health, fleet status, and timeline investigation through a simulated execution-boundary MCP server.
      3
      5
      MIT