Skip to main content
Glama

@assert-click/mcp

Assert용 MCP 서버 — AI 코딩 에이전트가 채팅창을 벗어나지 않고도 E2E 테스트를 생성, 실행 및 검사할 수 있게 해줍니다.

사용자 흐름을 평문 영어로 설명하세요. Assert는 Playwright 테스트를 생성하고, 실제 브라우저에서 실행하며, 단계별 결과와 실패 스크린샷을 반환합니다. 이 모든 과정은 Cursor, Claude, Windsurf 또는 MCP 호환 에이전트의 단일 도구 호출로 이루어집니다.

**assert.click에서 무료로 가입**하여 이 패키지를 사용하기 전에 API 키와 프로젝트 ID를 받으세요.

에이전트가 할 수 있는 작업

  • 생성(Generate) — 흐름을 설명하고, 저장 및 실행 준비가 된 마크다운 시나리오를 받습니다.

  • 실행(Run) — 저장된 시나리오나 임시 마크다운을 실제 Chromium 브라우저에서 실행합니다.

  • 검사(Inspect) — 단계별 성공/실패 여부, 오류 메시지, 실패 스크린샷 URL을 가져옵니다.

  • 목록(List) — 프로젝트에 저장된 시나리오를 탐색합니다.

Related MCP server: aiTest MCP Server

요구 사항

  • Node.js >=18.17

  • 프로젝트 범위의 Assert 키 — assert.click에서 발급받으세요.

설정

1. 저장소에 assert.config.json 생성:

{
  "projectApiKey": "assert_project_key_here",
  "projectId": "project_123"
}

2. 에이전트 설정에 MCP 서버 추가:

{
  "mcpServers": {
    "assert": {
      "command": "npx",
      "args": ["-y", "@assert-click/mcp"],
      "env": {
        "ASSERT_CONFIG": "/absolute/path/to/assert.config.json"
      }
    }
  }
}

이제 끝입니다. 에이전트가 4가지 Assert 도구 모두에 액세스할 수 있게 되었습니다.

환경 변수

  • ASSERT_API_KEY: API 키 (assert.config.json에 저장하는 대신 사용)

  • ASSERT_PROJECT_ID: 선택적 기본 프로젝트 ID

  • ASSERT_CONFIG: 설정 파일 또는 디렉토리에 대한 선택적 경로

설정 파일

MCP 서버는 현재 디렉토리에서 상위 디렉토리 방향으로 다음 파일들을 찾습니다:

  • assert.config.json

  • assert.config.local.json

assert.config.local.json은 assert.config.json 위에 병합됩니다.

키를 커밋하는 대신 환경 변수 기반의 보안 정보를 선호하는 경우:

{
  "projectApiKeyEnv": "ASSERT_API_KEY",
  "projectId": "project_123"
}

도구

assert_generate

평문 영어 설명으로부터 마크다운 시나리오를 생성합니다.

입력:

  • description: string — 사용자가 수행할 수 있어야 하는 작업

  • url: string — 시작 URL

  • project_id?: string

  • save?: boolean — 프로젝트에 저장 (기본값: true)

반환:

{
  "scenario_id": "scenario_123",
  "markdown": "URL: https://example.com/login\nSCENARIO: Login\nPROCESS:\n  - Fill \"email\" with \"user@example.com\"\nEXPECT: Dashboard",
  "saved": true
}

assert_run

저장된 시나리오나 임시 마크다운을 실제 브라우저에서 실행합니다.

입력:

  • scenario_id?: string

  • markdown?: string

  • project_id?: string

  • request_id?: string

scenario_id 또는 markdown 중 하나는 반드시 제공되어야 합니다.

반환:

{
  "run_id": "run_123",
  "status": "queued",
  "estimated_duration_seconds": null
}

assert_status

실행에 대한 단계별 결과를 가져옵니다.

입력:

  • run_id: string

반환:

{
  "run_id": "run_123",
  "status": "passed",
  "duration_ms": 4200,
  "steps": [
    {
      "description": "Fill email",
      "status": "passed",
      "error": null,
      "screenshot_url": null
    }
  ],
  "failure_summary": null,
  "full_log_url": null
}

assert_list

프로젝트에 저장된 시나리오 목록을 가져옵니다.

입력:

  • project_id?: string

  • cursor?: string

  • limit?: number

반환:

{
  "scenarios": [
    {
      "id": "scenario_123",
      "name": "Login flow",
      "project_id": "project_123",
      "last_run_status": "passed",
      "last_run_at": "2026-03-31T10:00:00.000Z",
      "url": "https://example.com/login"
    }
  ],
  "next_cursor": null
}

오류

오류는 구조화된 JSON으로 반환됩니다:

{
  "error": {
    "code": "INVALID_API_KEY",
    "message": "The ASSERT_API_KEY is invalid or missing.",
    "field": null
  }
}

공통 코드:

  • INVALID_API_KEY

  • SCENARIO_NOT_FOUND

  • RUN_NOT_FOUND

  • VALIDATION_ERROR

  • UPSTREAM_ERROR

라이선스

MIT

Available Tools

4 tools
assert_generateA

Generate a ready-to-run E2E test scenario in Assert Markdown format from a plain-English description. Optionally save it to Assert for later execution.

Inputs: description (required), url (required), project_id, save.

assert_listA

List existing E2E test scenarios saved in Assert. Use this to audit coverage before generating new tests. Supports filtering by project and pagination.

Inputs: project_id, cursor, limit.

assert_runA

Execute a test scenario and return a run ID. Accepts either a saved scenario_id or ad-hoc markdown. Runs are async — use assert_status to poll for completion.

Inputs: scenario_id, markdown, project_id, request_id.

assert_statusA

Poll a test run for its current status and step-level results. Returns pass/fail with actionable failure details and screenshot URLs for failed steps.

Inputs: run_id (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap: generate creates tests, list retrieves existing ones, run executes tests, and status checks results. The descriptions explicitly differentiate their functions, making it easy for an agent to select the right tool without confusion.

    Naming Consistency5/5

    All tool names follow a consistent 'assert_verb' pattern (assert_generate, assert_list, assert_run, assert_status), using snake_case and clear action verbs. This predictability enhances usability and reduces cognitive load for agents.

    Tool Count5/5

    With 4 tools, the server is well-scoped for E2E test management, covering the full lifecycle: generate, list, run, and status check. Each tool earns its place without bloat, making the set efficient and focused on its domain.

    Completeness5/5

    The toolset provides complete CRUD-like coverage for E2E test scenarios: create (generate), read (list), execute (run), and monitor (status). There are no obvious gaps, as it supports both saved and ad-hoc tests with actionable feedback, enabling seamless agent workflows.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers