Techne

•
2
•

Validates proposed Python workspace changes by applying patches to temporary shadow copies and running quality checks before any modifications to the actual repository.

Techne is a Python 3.12+ MCP server designed to rigorously validate proposed file changes within a Python workspace. It operates by applying incoming text unified diffs to isolated, temporary shadow copies of the repository, ensuring that the real workspace remains untouched. The server then executes a predefined quality toolchain, including `uv`, `ruff`, and `pyright`, against these modified shadow copies. The outcome is a set of structured diagnostics and audit summaries, returned to agents, enabling them to assess code quality and potential issues before committing any mutations to the production workspace state. Its robust security model prevents unauthorized file system access and restricts subprocess execution to an allowlist, providing a secure environment for pre-mutation checks.

主要功能

01Provides structured diagnostics, warnings, and security audit summaries for informed decision-making.
02Integrates a quality toolchain including `uv`, `ruff`, and `pyright` for comprehensive code analysis.
031 GitHub stars
04Validates proposed code changes in temporary, isolated shadow workspaces without modifying the real repository.
05Enforces a strict security model with path validation, minimal subprocess environments, and output redaction.
06Supports flexible configuration through `pyproject.toml` and request-specific overrides for validation modes and safety.

使用案例

01Pre-commit validation for AI agents or automated code generation systems.
02Previewing proposed safe fixes without altering the main codebase for quality assurance.
03Securely inspecting workspace metadata and configurations without exposing source contents.