This directory contains the Trae IDE plugin for GitGuard-AI, providing advanced secret detection and management capabilities directly within your development environment.
- Secret detection using regex and optional LLM-based methods
- Modular Command Platform (MCP) integration
- Utilities for custom detection logic
- Integration and unit tests for plugin and API
trae-plugin/
├── dockerfile
├── gitguard/
│ ├── __init__.py
│ ├── mcp/
│ │ ├── README.md
│ │ ├── __init__.py
│ │ ├── create_mcp.py
│ │ └── secret_detection_script.py
│ └── utils/
│ ├── __init__.py
│ ├── llm_detect.py
│ └── regex_detector.py
├── pyproject.toml
├── requirements.txt
├── tests/
│ ├── novita-hf.py
│ ├── test.py
│ └── zilliz.py
└── uv.lock
- gitguard/: Core logic for secret detection and MCP integration. See gitguard/mcp/README.md for details on the MCP module.
- utils/: Utility modules for regex and LLM-based detection.
- tests/: Integration and unit tests for plugin and API.
- Python 3.12+
- See requirements.txt or pyproject.toml for dependencies.
Install dependencies:
pip install -r requirements.txtOr with poetry:
poetry installRefer to gitguard/mcp/README.md for instructions on running the MCP server and integrating with TraeAI IDE.