Back to Home
shields icon

lgtmcp

Verified Safe

by shields

Overview

An AI-powered Model Context Protocol (MCP) server that reviews code changes and can automatically commit them or provide detailed feedback.

Installation

Run Command
lgtmcp

Environment Variables

  • GOOGLE_APPLICATION_CREDENTIALS

Security Notes

The server demonstrates robust security practices, particularly in file access and path validation. The `handleFileRetrieval` function in `review.go` includes critical checks for path traversal vulnerabilities (`..`), resolves absolute paths, ensures access is within the repository boundaries, respects `.gitignore` rules using `git check-ignore`, and explicitly handles symlinks to prevent them from pointing outside the repository. Gitleaks is integrated for built-in secret detection on changed code, and the tool uses `exec.CommandContext` for git operations with timeouts. Test secrets are ROT13 encoded to prevent accidental triggers. Authentication to the Gemini API relies on user-provided API keys or Application Default Credentials, preventing hardcoded credentials within the application itself.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens5000
Stars0
Forks0
Last Update2026-01-18

Tags

AICode ReviewGeminiMCPGit