Skip to main content
Glama

tailtest-cline

あなたがビルドし、私たちがカバーする。8つ以上のエディタで同時に。

tailtest-clineは、Clineがソースファイルを編集するたびに自動的にテストを生成・実行するClineプラグインです。他のtailtestバリアントと同じR1-R15ルールレイヤーを備えています。敵対的テストモード(V13)は初日から実装されています。

Clineの対応範囲: VS Code、Cursor、JetBrains IDE、Antigravity、Zed、Neovim、VSCodium、Windsurf、およびCline CLI。1つのプラグインで8つ以上のエディタに対応します。

完全なドキュメントはこちら: tailtest.com/docs/cline

他のバリアントとの違い

Clineにはフック(Claude CodeのPostToolUse、CursorのafterFileEdit、CodexのStopなど)がありません。その代わり、tailtest-clineは3つのClineネイティブなプリミティブを使用します。

  • .clinerules/: ルールレイヤー(R1-R14 + R15敵対的モード)を保持します

  • tailtest-mcpサーバー(本リポジトリ): エージェント向けに構造化されたツールを提供します: tailtest_setup、tailtest_scenario_plan、tailtest_classify_failures、tailtest_pick_template、tailtest_ping

  • Memory Bank (tailtestContext.md): Clineセッション全体でプロジェクトごとのプロファイルを保持します

決定論的なポリシー(深度階層、R15敵対的カウント、フレームワークテンプレート、ファイルパス)は、ルールテキストではなくMCPサーバーのコード内に存在します。エージェントは、長いセッションを通じてルールを記憶に頼るのではなく、足場が必要なときにツールを呼び出します。

Related MCP server: Qlane MCP

インストール

3つのインストール方法があります:

1. Cline MCPマーケットプレイス(推奨:ワンクリック)

IDE内のClineの拡張機能パネルを開きます。「tailtest」を検索し、インストールをクリックします。Clineが自動的にクローン、依存関係のインストール、cline_mcp_settings.jsonへのサーバー登録を行います。

2. GitHubからの直接インストール

ClineのMCPサーバーインストールダイアログに https://github.com/avansaber/tailtest-cline を貼り付けます。Clineが同様のクローン・インストール・登録フローを実行します。

3. cline_mcp_settings.jsonの手動編集

{
  "mcpServers": {
    "tailtest": {
      "command": "python",
      "args": ["-m", "src.server"],
      "cwd": "/path/to/tailtest-cline/mcp_server",
      "alwaysAllow": [
        "tailtest_ping",
        "tailtest_scenario_plan",
        "tailtest_classify_failures",
        "tailtest_pick_template"
      ]
    }
  }
}

初回実行

インストール後、Clineのチャットで "set up tailtest in this project" と入力してください。

Clineが tailtest_setup を呼び出します。このツールは言語/フレームワーク/ランナーを検出し、.clinerules/、.clinerules/workflows/ を書き込み、memory-bank/tailtestContext.md をシードし、.tailtest/config.json と .tailtest/session.json を初期化します。冪等性があるため、既存のファイルは保持されます。

重要: Clineは会話の途中で .clinerules を自動再読み込みしません。有効にするには、新しい会話を開始するか、ウィンドウをリロードしてください。

2つの動作モード

手動モード(デフォルト)

テストサイクルを明示的に呼び出します:

  • /tailtest-test <file> -- 特定のファイルに対してサイクルを実行

  • /tailtest hunt <file> -- 特定のファイルに対して1回限りの敵対的パスを実行

  • または自然言語(「編集したばかりのファイルをテストして」)

各ステップ(ファイル書き込み、ターミナルコマンド、MCP呼び出し)で承認が求められます。初回ユーザーにとってより安全なデフォルト設定です。

自動モード(オプトイン)

Clineの自動承認設定で「ファイルの編集(ワークスペース)」「安全なコマンドの実行」「MCPサーバーの使用」を有効にします。その後、/tailtest-mode auto を実行してリロードします。編集のたびに、tailtestが自動的にテストサイクルを開始します。

Plan / Actモード(ClineネイティブUXの利点)

ClineのPlan / Act切り替えは、tailtestのSCENARIO PLAN規約にマッピングされます。PlanモードはSCENARIO PLAN(読み取り専用)を作成し、確認と修正を行います。Actモードはテストファイルを書き込み、実行し、R12分類を適用します。重要なファイルに対して推奨されます。

設定

.tailtest/config.json:

{
  "depth": "standard",
  "mode": "manual"
}

深度オプション:

  • simple -- 2〜3のハッピーパスシナリオ

  • standard -- 2つ以上の敵対的プローブを含む5〜8のシナリオ(デフォルト)

  • thorough -- 4つ以上の敵対的プローブを含む10〜15のシナリオ

  • adversarial -- 破壊を目的とした8〜12のシナリオ

すべてのオプションについては tailtest.com/docs/config を、敵対的モードの詳細については tailtest.com/docs/adversarial を参照してください。

その他のtailtestバリアント

同じR1-R15ルールレイヤー、同じ敵対的テストモードを備え、ホスト統合が異なります。本リポジトリはClineバリアントです。

  • tailtest -- Claude Codeプラグイン(フック駆動)

  • tailtest-cursor -- Cursorプラグイン(フック駆動)

  • tailtest-codex -- Codex CLIプラグイン(フック駆動)

  • tailtest-cline -- Clineプラグイン(MCP駆動; 本リポジトリ)

このバリアントのライブウォークスルーについては tailtest.com/demo/cline を、4つすべての機能マトリックスについては tailtest.com/comparison を参照してください。

ライセンス

MIT。

Available Tools

5 tools
tailtest_classify_failuresA

Parse runner output (pytest, jest, etc.) into structured failure records and apply heuristic R12 classification. Returns failures with type (real_bug / environment / test_bug / unknown), reason, test name, file, line, error type, message, and a summary count per R12 category. The agent verifies or overrides the heuristic when context warrants.

Inputs: runner_output (required), runner.

tailtest_pick_templateA

Return the full framework R2 template for a given source file: language baseline scenarios, framework baseline scenarios, framework-specific test pattern (e.g., NestJS Test.createTestingModule, Spring @WebMvcTest, Flask test_client), and test file path pattern. Returns just language baseline when no framework matches.

Inputs: file_path (required), project_root.

tailtest_pingA

Health check. Returns server version and confirms the MCP server is reachable.

Inputs: no named parameters.

tailtest_scenario_planA

Return structured scaffolding the agent uses to write its SCENARIO PLAN: language, framework, depth, R15 adversarial count requirement, language and framework baseline scenarios, test file path, and prose instructions. The agent uses this scaffolding to compose the actual SCENARIO PLAN scenario lines.

Inputs: file_path (required), project_root.

tailtest_setupA

Bootstrap entry point for tailtest in a Cline project. Detects language / framework / runner, writes the .clinerules/ rule pack, writes .clinerules/workflows/ slash workflows, seeds Memory Bank with tailtestContext.md (a 7th file alongside the 6 core ones; existing files are not overwritten), and initialises .tailtest/config.json + session.json. Returns a structured report including the user-facing 'reload required' warning (Cline does not auto-reload .clinerules mid-conversation).

Inputs: project_root, mode.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool serves a distinct purpose: setup, health check, template selection, scenario planning, and failure classification. There is no overlap or ambiguity between them.

    Naming Consistency5/5

    All tools follow a consistent snake_case pattern with the prefix 'tailtest_' and a verb_noun structure (e.g., tailtest_classify_failures, tailtest_pick_template). No deviations.

    Tool Count5/5

    With 5 tools, the server is tightly scoped to test analysis and scaffolding. Each tool earns its place without being too few or too many for the domain.

    Completeness4/5

    The tools cover setup, health, template selection, scenario planning, and failure classification. While not a full test framework, it appears complete for its intended planning/analysis purpose. Minor gap: no tool for running tests or generating code.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      OpenTester is a testing execution engine designed for AI coding tools (Claude Code, Cursor, OpenCode, etc.). It provides a unified DSL format and MCP interface, enabling Agents to generate, execute, and manage test cases, achieving an automated "code-test-fix" workflow.
      29
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Integrates Qlane test management into AI coding editors, enabling agents to view projects, test targets, and test case counts, and plan tests for local diffs.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Provides coding agents with visibility into test health through tools for flaky test detection, test quality linting, and LLM evaluation harness, enabling them to triage failures, review test quality, and check prompt changes for regressions.
      9
      Apache 2.0