Skip to main content
Glama

MCP Frontend Testing Server

MCP フロントエンドテストサーバー

説明

この MCP サーバーは、次のようなフロントエンド テスト用のツールを提供します。

  • コード分析: JavaScript/TypeScript コードを分析して適切なテスト戦略を決定します。
  • テスト生成: Jest および Cypress のユニット テストとコンポーネント テストを生成します。
  • テスト実行: Jest と Cypress を使用してテストを実行し、結果を返します。
  • コンポーネント テスト: React コンポーネントをテストするための専用ツールを提供します。

はじめる

インストール

  1. リポジトリをクローンします: `git clone mcp-frontend-testing`
  2. プロジェクトディレクトリに移動します: `cd mcp-frontend-testing`
  3. 依存関係をインストール: `npm install`

サーバーの実行

HTTPトランスポート

```バッシュ

サーバーを構築する

npm 実行ビルド

HTTPトランスポートでサーバーを起動する

npm 実行開始:http ```

Stdioトランスポート

```バッシュ

サーバーを構築する

npm 実行ビルド

Stdioトランスポートでサーバーを起動する

npm 実行開始:stdio ```

使用法

ツール

  • analyzeCode : コードを分析し、分析結果を返します。
    • パラメータ:
      • `code` (文字列、必須): 分析するソースコード。
      • `language` (列挙型、オプション): コードの言語 (`javascript` | `typescript` | `jsx` | `tsx`、デフォルト: `javascript`)。
  • generateTest : ソース コードとフレームワークに基づいてテスト コードを生成します。
    • パラメータ:
      • `code` (文字列、必須): テストを生成するソース コード。
      • `framework` (列挙型、必須): テスト フレームワーク (`jest` | `cypress`)。
      • `type` (列挙型、必須): テストのタイプ (`unit` | `component` | `e2e`)。
      • `language` (列挙型、オプション): コードの言語 (`javascript` | `typescript` | `jsx` | `tsx`、デフォルト: `javascript`)。
      • `description` (文字列、オプション): テストケースの説明。
  • runTest : テストを実行し、結果を返します。
    • パラメータ:
      • `sourceCode` (文字列、必須): テスト対象のソース コード。
      • `testCode` (文字列、必須): 実行するテスト コード。
      • `framework` (列挙型、必須): テスト フレームワーク (`jest` | `cypress`)。
      • `type` (列挙型、必須): テストのタイプ (`unit` | `component` | `e2e`)。
      • `config` (レコード、オプション): テスト実行用の構成オブジェクト。
  • testReactComponent : React コンポーネント専用のコンポーネント テストを実行します。
    • パラメータ:
      • `componentCode` (文字列、必須): React コンポーネントのソースコード。
      • `testCode` (文字列、オプション): コンポーネントのテスト コード (指定されていない場合は自動生成されます)。
      • `framework` (列挙型、オプション): テスト フレームワーク (`jest` | `cypress`、デフォルト: `jest`)。
      • `props` (レコード、オプション): テスト中にコンポーネントに渡すプロパティ。
      • `autoGenerateTest` (ブール値、オプション): 指定されていない場合はテスト コードを自動的に生成します (デフォルト: `true`)。

リソース

  • templates : テストテンプレートを提供します。
    • URI : `templates://{framework}/{type}`
    • パラメータ:
      • `framework` (文字列、必須): テスト フレームワーク (`jest` | `cypress`)。
      • `type` (文字列、必須): テンプレートのタイプ (`unit` | `component`)。
  • docs : テストフレームワークに関するドキュメントを提供します。
    • URI : `docs://{topic}`
    • パラメータ:
      • `topic` (文字列、必須): ドキュメントのトピック (`jest` | `cypress` | `react-testing-library`)。

展開

ドッカー

Docker を使用してサーバーをビルドして実行します。

```bash docker build -t mcp-frontend-testing . docker run -p 3000:3000 mcp-frontend-testing ```

サーバーレスまたはコンテナ化されたデプロイメントのために、AWS Lambda、Google Cloud Run、Azure Functions などのクラウド プラットフォームにデプロイします。


: このサーバーは、MCP クライアントと共に使用して、LLM がフロントエンド テスト タスクを実行できるように設計されています。

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

コード分析、テスト生成、テスト実行、Jest および Cypress フレームワークの React コンポーネント テストなどのフロントエンド テスト用のツールを提供します。

  1. 説明
    1. はじめる
      1. インストール
      2. サーバーの実行
    2. サーバーを構築する
      1. HTTPトランスポートでサーバーを起動する
        1. Stdioトランスポート
      2. サーバーを構築する
        1. Stdioトランスポートでサーバーを起動する
          1. 使用法
          2. 展開

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          A TypeScript-based MCP server that enables testing of REST APIs through Cline. This tool allows you to test and interact with any REST API endpoints directly from your development environment.
          Last updated -
          1
          10
          23
          JavaScript
          MIT License
          • Apple
        • -
          security
          F
          license
          -
          quality
          A Node.js server that integrates with pytest to facilitate the ModelContextProtocol (MCP) service tools, enabling test execution recording and environment tracking.
          Last updated -
          JavaScript
        • A
          security
          A
          license
          A
          quality
          Facilitates unified execution and result parsing for various testing frameworks, including Bats, Pytest, Flutter, Jest, and Go, through a Model Context Protocol interface.
          Last updated -
          1
          12
          TypeScript
          MIT License
          • Apple
          • Linux
        • -
          security
          F
          license
          -
          quality
          A Node.js and TypeScript server project that provides a simple starter example with Express.js web server, supporting hot-reload, testing, and modular structure.
          Last updated -
          TypeScript

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/StudentOfJS/mcp-frontend-testing'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server