GG

gitguardian/ggmcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

41 stars 15 forks 质量 86 趋势 26MIT

MCP 服务器,用于利用 GitGuardian 的 API 修复硬编码的秘密。它检测超过 600 种秘密类型,并在代码公开前防止凭证泄露。

概览

将GitGuardian的秘密检测和事件管理引入你的AI代理。在凭证泄露前扫描代码,分流现有事件,生成蜜令牌,修复发现——所有这些都能在你的IDE或聊天客户端内完成,由GitGuardian的500+检测器支持。 MCP服务器是一项新兴技术。代理代表你行动,并由你负责。使用可信的MCP服务器,并在代理与工具交互时审查其操作。为了限制爆炸半径,服务器默认采用只读倾向的权限;实际暴露的内容由你持有的OAuth权限决定。 - — 主动扫描文件以防泄露凭证。- — 列出、过滤、分配、解决和标记事件(包括内部和公开监控事件)。- — 生成蜜令牌并列出现有的。- — 打开拉取请求,修复你工作空间监控的仓库中的秘密。

概述(AI 翻译)

将GitGuardian的秘密检测和事件管理带入您的AI代理中。 在凭证泄露前扫描代码,分流现有事件,生成 honeytokens和修复发现——全部在你的IDE或聊天客户端内, 并由GitGuardian的500+检测器支持。

[!注意] MCP服务器是一项新兴技术。代理代表你和你行事 你的责任。使用可信的MCP服务器,并在以下情况下审查代理操作 它们会与工具交互。为了限制爆炸半径,服务器默认为 仅读倾向的权限;实际被暴露的内容由以下方式决定 OAuth会对你的访问令牌持有范围进行范围。

它的作用

  • 秘密扫描 — 主动扫描文件以查找泄露的凭证。
  • 事件管理 — 列出、筛选、分配、解决和标记事件 (包括内部和公众监控事件)。
  • Honeytokens — 生成honeytokens并列出现有的honeytokens。
  • 代码修复自动化 — 用于修复秘密的开放拉取请求 存储库,监控你的工作空间。

具体暴露给你的代理的工具集取决于OAuth的示波器 授予你的访问令牌。

提示示例

快速开始

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

GitGuardian MCP Server

Bring GitGuardian’s secret detection and incident management into your AI agent. Scan code for credentials before they leak, triage existing incidents, generate honeytokens, and remediate findings — all from inside your IDE or chat client, backed by GitGuardian’s 500+ detectors.

[!CAUTION] MCP servers are an emerging technology. Agents act on your behalf and under your responsibility. Use trusted MCP servers and review agent actions when they interact with tools. To limit blast radius the server defaults to read-only-leaning permissions; what is actually exposed is determined by the OAuth scopes your access token holds.

What it does

  • Secret scanning — proactively scan files for leaked credentials.
  • Incident management — list, filter, assign, resolve, and tag incidents (both internal and Public Monitoring incidents).
  • Honeytokens — generate honeytokens and list existing ones.
  • Code-fix automation — open pull requests that remediate secrets in repositories your workspace monitors.

The exact set of tools exposed to your agent depends on the OAuth scopes granted to your access token.

Prompt examples

Scan this codebase for any leaked secrets or credentials.
Remediate all incidents related to my project.
Check if there are any new security incidents assigned to me.
Help me understand this security incident and provide remediation steps.
List all my active honeytokens.
Generate a new honeytoken for monitoring AWS credential access.
Create a honeytoken named 'dev-database' and hide it in config files.

Quick start

The recommended way to run the GitGuardian MCP server is to point your MCP client at the hosted server. The MCP client handles OAuth automatically; no local install, no token to manage, no uvx.

Pick the URL that matches your GitGuardian region:

Region URL
US SaaS https://mcp.gitguardian.com/mcp
EU SaaS https://mcp.eu1.gitguardian.com/mcp
Self-hosted See Self-hosting the MCP server

Cursor

Edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "GitGuardian": {
      "type": "http",
      "url": "https://mcp.gitguardian.com/mcp"
    }
  }
}

Claude Desktop

Edit ~/Library/Application Support/Claude Desktop/mcp.json (macOS) or %APPDATA%\Claude Desktop\mcp.json (Windows). Same JSON as Cursor. Claude Desktop versions that pre-date HTTP MCP support need the Local stdio fallback.

Claude.ai (web)

Add the server in Settings → Connectors → Add custom connector with the URL above. OAuth is handled in the browser tab.

Windsurf

在 GitHub 查看完整 README

安装

uvx --from git+https://github.com/GitGuardian/ggmcp.git gg-mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "GitGuardian": { "type": "http", "url": "https://mcp.gitguardian.com/mcp" } } }