Mutmut MCP

by wdm0006
MIT License
Integrations
  • Enables cloning repositories for running mutation tests on Python projects stored on GitHub.

  • Used as the default test runner for mutation testing, allowing assessment of test coverage and quality against mutations.

  • Provides mutation testing capabilities specifically for Python modules and packages.

穆特穆特 MCP

用于管理使用mutmut进行突变测试的模型上下文协议 (MCP) 服务器。该工具提供了一组编程 API,用于运行突变测试、分析结果以及提高 Python 项目中的测试覆盖率。

特征

  • 在任何 Python 模块或包上运行突变测试会话
  • 显示整体突变检测结果和存活突变
  • 建议需要更好测试覆盖的领域
  • 对特定幸存者或所有幸存者重新运行 mutmut
  • 清理 mutmut 缓存
  • 专为自动化和与其他 MCP 工具集成而设计

安装

  1. 克隆存储库:
    git clone https://github.com/wdm0006/mutmut-mcp.git cd mutmut-mcp
  2. 安装依赖项:
    python3 -m venv .venv source .venv/bin/activate pip install -U pip pip install mcp[cli] mutmut

用法

您可以直接运行 MCP 服务器:

python mutmut_mcp.py

或者与uv一起使用:

uv run --with mcp --with mutmut mutmut_mcp.py

API / 工具

可以使用以下工具:

  • run_mutmut(target, test_command="pytest", options="", venv_path=None) – 运行突变测试
  • show_results(venv_path=None) – 显示总体结果
  • show_survivors(venv_path=None) – 列出幸存的突变
  • generate_test_suggestion(venv_path=None) – 建议需要更好测试覆盖的区域
  • rerun_mutmut_on_survivor(mutation_id=None, venv_path=None) – 在幸存者上重新运行 mutmut
  • clean_mutmut_cache(venv_path=None) – 清理 mutmut 缓存

执照

本项目遵循 MIT 许可证。详情请参阅许可证

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

模型上下文协议服务器提供编程 API,用于使用 mutmut 运行突变测试、分析结果并提高 Python 项目中的测试覆盖率。

  1. 特征
    1. 安装
      1. 用法
        1. API / 工具
          1. 执照

            Related MCP Servers

            • 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 Model Context Protocol server that integrates with the Qase test management platform, allowing users to create and retrieve test cases, manage test runs, and interact with Qase projects.
              Last updated -
              1
              JavaScript
            • -
              security
              A
              license
              -
              quality
              Model Context Protocol server to run Python code in a sandbox.
              Last updated -
              1,462
              9,633
              Python
              MIT License
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server designed for testing backend APIs for security vulnerabilities like authentication bypass, injection attacks, and data leakage.
              Last updated -
              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/wdm0006/mutmut-mcp'

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