Back to Home
shields icon

lgtmcp

Verified Safe

by shields

Overview

An MCP server that performs AI-powered code reviews using Google Gemini 2.5 Pro, providing detailed feedback or automatic commit if approved.

Installation

Run Command
lgtmcp

Environment Variables

  • XDG_CONFIG_HOME
  • GOOGLE_APPLICATION_CREDENTIALS

Security Notes

The server demonstrates strong security practices for file access. The `handleFileRetrieval` function (used by Gemini for context) explicitly prevents path traversal (e.g., `../`), resolves symlinks to ensure they stay within the repository, and critically, uses `git check-ignore` to block access to gitignored files (like `.env`, `secrets.txt`). Integrated Gitleaks scans diffs for secrets proactively. API keys are handled via configuration (not hardcoded) and validated. No `eval` or obfuscation patterns are present.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens5000
Stars0
Forks0
Last Update2025-12-06

Tags

AICode ReviewGitAutomationModel Context ProtocolGemini