Skip to main content
Glama

k6-mcp-server

🚀 ⚡️ k6-mcp-サーバー

k6 負荷テストを実行するためのモデル コンテキスト プロトコル (MCP) サーバー実装。

✨ 特徴

  • モデルコンテキストプロトコルフレームワークとのシンプルな統合
  • カスタムテスト期間と仮想ユーザー(VU)のサポート
  • k6 負荷テストを実行するための使いやすい API
  • 環境変数で設定可能
  • リアルタイムテスト実行出力

🔧 前提条件

始める前に、以下がインストールされていることを確認してください。

📦 インストール

  1. リポジトリをクローンします。
git clone https://github.com/yourusername/k6-mcp-server.git
  1. 必要な依存関係をインストールします。
uv pip install -r requirements.txt
  1. 環境変数を設定する (オプション): プロジェクト ルートに.envファイルを作成します。
K6_BIN=/path/to/k6 # Optional: defaults to 'k6' in system PATH

🚀 はじめに

  1. k6 テスト スクリプト (例: test.js ) を作成します。
import http from "k6/http"; import { sleep } from "k6"; export default function () { http.get("http://test.k6.io"); sleep(1); }
  1. お気に入りの MCP クライアント (Claude Desktop、Cursor、Windsurf など) で以下の仕様を使用して MCP サーバーを構成します。
{ "mcpServers": { "k6": { "command": "/Users/naveenkumar/.local/bin/uv", "args": [ "--directory", "/Users/naveenkumar/Gits/k6-mcp-server", "run", "k6_server.py" ] } } }
  1. LLMにテストの実行を指示します。例えば、 run k6 test for hello.js 。k6 mcpサーバーは、以下のいずれかのツールを利用してテストを開始します。
  • execute_k6_test : デフォルトのオプションでテストを実行します(30秒の期間、10 VU)
  • execute_k6_test_with_options : カスタム期間と VU でテストを実行する

k6-MCP

📝 APIリファレンス

K6テストを実行する

execute_k6_test( script_file: str, duration: str = "30s", # Optional vus: int = 10 # Optional )

カスタムオプションでK6テストを実行する

execute_k6_test_with_options( script_file: str, duration: str, vus: int )

🤝 貢献する

貢献を歓迎します!お気軽にプルリクエストを送信してください。

📄 ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。

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

AI アシスタントが自然言語コマンドを通じて k6 負荷テストを実行できるようにし、カスタム テスト期間と仮想ユーザーをサポートするモデル コンテキスト プロトコル (MCP) サーバー実装。

  1. ✨ 特徴
    1. 🔧 前提条件
      1. 📦 インストール
        1. 🚀 はじめに
          1. 📝 APIリファレンス
            1. K6テストを実行する
            2. カスタムオプションでK6テストを実行する
          2. 🤝 貢献する
            1. 📄 ライセンス

              Related MCP Servers

              • A
                security
                F
                license
                A
                quality
                Model Context Protocol (MCP) server that integrates Redash with AI assistants like Claude, allowing them to query data, manage visualizations, and interact with dashboards through natural language.
                Last updated -
                10
                104
                21
                JavaScript
                • Apple
              • A
                security
                A
                license
                A
                quality
                A Model Context Protocol (MCP) server that enables AI assistants to control and interact with Android devices, allowing for device management, app debugging, system analysis, and UI automation through natural language commands.
                Last updated -
                29
                143
                Python
                Apache 2.0
                • Linux
                • Apple
              • A
                security
                F
                license
                A
                quality
                A Model Context Protocol server that allows AI assistants to execute and manage JMeter performance tests through natural language commands.
                Last updated -
                2
                27
                Python
              • A
                security
                A
                license
                A
                quality
                A Model Context Protocol (MCP) server for LeetCode that enables AI assistants to access LeetCode problems, user information, and contest data.
                Last updated -
                7
                1
                TypeScript
                MIT License

              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/QAInsights/k6-mcp-server'

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