毒性試験MCPサーバー
pytest を使用したプロジェクト内で tox コマンドを実行し、Python テストを実行する MCP サーバーです。このサーバーは、モデルコンテキストプロトコル (MCP) を介して Python テストを実行および管理するための便利な方法を提供します。
特徴
ツール
run_tox_tests
- さまざまなモードとオプションで毒性テストを実行する- さまざまな実行モードをサポートします:
all
: すべてのテストまたは特定のグループのテストを実行しますfile
: 特定のファイルからテストを実行するcase
: 特定のテストケースを実行するdirectory
: 指定されたディレクトリ内のすべてのテストを実行する
- サポートされているテスト グループ:
clients
:クライアント関連のテストapi
: APIエンドポイントテストauth
: 認証テストuploads
: アップロード機能テストroutes
: ルートハンドラーテスト
- さまざまな実行モードをサポートします:
発達
依存関係をインストールします:
サーバーを構築します。
自動リビルドを使用した開発の場合:
インストール
VSCode で使用するには、次の MCP 設定ファイルにサーバー構成を追加します: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
設定オプション
env.TOX_TIMEOUT
: (オプション) テスト実行の完了を待つ最大時間(秒)。テスト実行がこのタイムアウト時間を超えた場合、テストは終了します。デフォルトは600秒(10分)です。env.TOX_APP_DIR
: (必須) tox.ini ファイルを含むディレクトリ。tox コマンドはここから実行されます。パスは、tox.ini が配置されている Python プロジェクトのルートを指す必要があります。
タイムアウトは特に次の場合に重要です。
- テストプロセスのハングを防ぐ
- 長期にわたる統合テストの管理
- CI/CDパイプラインが停止しないようにする
使用法
サーバーは、さまざまなモードで使用できる単一のツールrun_tox_tests
を提供します。
ツール引数
Clineと併用
このMCPをClineと併用する場合、Clineのカスタム命令を設定することでテスト実行を効率的に行うことができます。推奨されるワークフローは以下のとおりです。
このワークフローにより、次のことが保証されます。
- すべてのテストを最初に実行することで包括的なテストカバレッジを実現します
- 失敗したテストケースを分離して集中的にデバッグする
- 個々のケースを再テストして修正を検証する
- すべてのテストを再度実行して最終検証する
Cline とのやり取りの例:
貢献
行動規範とプル リクエストの送信プロセスの詳細については、 CONTRIBUTING.md を参照してください。
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
tox コマンドを実行し、pytest を使用してプロジェクト内で Python テストを実行する MCP サーバー。これにより、ユーザーはすべてのテストまたは特定のテスト グループ、ファイル、ケース、ディレクトリを実行できます。
Related Resources
Related MCP Servers
- -securityFlicense-qualityA Node.js server that integrates with pytest to facilitate the ModelContextProtocol (MCP) service tools, enabling test execution recording and environment tracking.Last updated -JavaScript
- -securityFlicense-qualityThis is an MCP server that facilitates building tools for interacting with various APIs and workflows, supporting Python-based development with potential for customizable prompts and user configurations.Last updated -Python
- AsecurityAlicenseAqualityA TypeScript-based MCP server that provides integration with the Qase test management platform, allowing you to manage projects, test cases, runs, results, plans, suites, and shared steps.Last updated -264JavaScriptMIT License
- -securityFlicense-qualityA Python-based server that helps users easily install and configure other MCP servers across different platforms.Last updated -2Python