Git 파일 포렌식 MCP
개별 파일 분석에 중점을 두고 저장소 전체 작업이 아닌 파일 기록, 변경 사항 및 패턴에 대한 자세한 통찰력을 얻는 데 도움이 되는 심층적인 git 파일 수준 포렌식을 위한 MCP 도구입니다.
설치
서버를 복제하고 빌드합니다.
지엑스피1
MCP 설정에 다음을 추가합니다( ~/Library/Application Support/Code/User/globalStorage/david-dafu-dev.dafu/settings/cline_mcp_settings.json ):
{
"mcpServers": {
"git-file-forensics": {
"command": "/opt/homebrew/bin/node",
"args": ["/path/to/git-file-forensics/build/index.js"],
"alwaysAllow": []
}
}
}
Related MCP server: MCP Forensic Toolkit
사용 가능한 도구
1. 트랙_파일_버전
이름 변경 및 이동을 포함하여 특정 파일의 전체 버전 기록을 추적합니다.
{
"method": "tools/call",
"params": {
"name": "track_file_versions",
"arguments": {
"repoPath": "/path/to/repo",
"file": "path/to/file",
"outputPath": "output.json"
}
}
}
2. 파일 차이 분석
파일의 두 버전 사이의 구체적인 변경 사항을 분석합니다.
{
"method": "tools/call",
"params": {
"name": "analyze_file_diff",
"arguments": {
"repoPath": "/path/to/repo",
"file": "path/to/file",
"versions": {
"from": "commit-hash-1",
"to": "commit-hash-2"
},
"outputPath": "output.json"
}
}
}
3. 파일 컨텍스트 분석
특정 커밋의 파일 변경 사항에 대한 더 광범위한 맥락을 분석합니다.
{
"method": "tools/call",
"params": {
"name": "analyze_file_context",
"arguments": {
"repoPath": "/path/to/repo",
"file": "path/to/file",
"commit": "commit-hash",
"outputPath": "output.json"
}
}
}
4. 파일 의미론 분석
파일 기록의 의미적 변화와 패턴을 분석합니다.
{
"method": "tools/call",
"params": {
"name": "analyze_file_semantics",
"arguments": {
"repoPath": "/path/to/repo",
"file": "path/to/file",
"outputPath": "output.json"
}
}
}
출력 형식
모든 도구는 다음을 포함하는 JSON 파일을 출력합니다.
상세 분석 결과
요약 통계
패턴과 관계 변경
위험 평가(해당되는 경우)
요구 사항
노드.js
Git(설치 및 접근 가능해야 함)
MCP SDK
특허
이 프로젝트는 Apache 라이선스 버전 2.0에 따라 라이선스가 부여되었습니다. 자세한 내용은 LICENSE.txt 파일을 참조하세요.
저작권 davidorex.ai. Apache 라이선스 버전 2.0에 따라 라이선스가 부여되었습니다. 라이선스를 준수하지 않는 한 이 프로젝트를 사용할 수 없습니다. 라이선스 사본은 http://www.apache.org/licenses/LICENSE-2.0 에서 확인하실 수 있습니다.