
Defenter Proxy
io.github.Defenter-AI由 GitHub 账号 Defenter-AI 发布v0.0.96更新于 Oct 24, 2026
Real-time semantic security for AI coding agents and MCP tools
概览
Defenter Proxy 是一个本地 Python 代理,拦截 AI 编程助手的提示词、MCP 调用、文件读取和 shell 命令,并按安全策略执行放行、脱敏或拦截。
- 可以做什么
- 拦截并包装 MCP 工具调用与响应以供检查
- 监控编程助手的提示词与回复
- 监视助手触发的文件读取和 shell 命令
- 分析载荷中的密钥、个人数据、数据泄露、上下文污染和提示注入
- 实时给出放行、脱敏、需更多信息或拦截的决定
- 在 IDE 中显示助手操作与决策的实时监控视图
- 适用场景
- 适用于在 VS Code、Cursor 或 Claude Code 中运行 AI 编程助手或 MCP 服务器,并希望在操作发生前检查助手发送和执行内容的场景,尤其是防止泄露密钥或客户数据。
- 运行要求
- 以本地 Python 进程运行,可从 PyPI 安装并用 uvx 启动。README 说明常规方式是安装 Defenter 的 IDE 扩展或 Claude Code 插件,由该代理作为本地中间层。云端策略引擎会接收脱敏后的载荷进行分类,因此需要网络访问。未声明环境变量或请求头。
安装
在 SourceWeft 中
- 打开 控制台中的 Defenter Proxy,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Defenter
Real-time semantic security for AI coding agents and MCP tools in VS Code, Claude Code and Cursor.
Defenter monitors every prompt, every coding agent tool call, every MCP server call, and key file and shell operations in your IDE. It acts as a semantic policy broker that understands what agents are doing, not just where they send data, so you can use AI coding agents without leaking secrets or customer data.
🚀 How to use
The simplest way to use Defenter is to install the VS Code or Cursor extension:
- VS Code Marketplace: Install Defenter
- Open VSX (Cursor and others): Install Defenter
- Claude Code: install Defenter plugin
Once installed, the extension automatically intercepts and protects:
- MCP server calls
- Coding agent prompts and responses
- File reads and shell commands triggered by the agent
No manual MCP configuration is needed.
Overview
Defenter is a semantic policy broker for AI coding agents. It adds an intelligent security layer inside your IDE that:
- Intercepts every coding agent prompt and action
- Wraps every MCP tool call and response
- Analyzes the payload for sensitive information and risky behavior in real time
- Enforces your security policies with allow, redact, or block decisions
Traditional security tools cannot see what an agent is about to share or execute. They look at apps and destinations, not at the intent and content of an agent’s actions.
Defenter bridges this gap by:
- Preventing data leaks and context contamination
- Providing clear, visual monitoring of every agent decision
Architecture and how it works
This repository contains the Defenter proxy and related components that secure MCP and coding agent traffic.
Defenter is built as a Python based proxy and local middleware that the IDE extension uses to enforce policy. At a high level:
-
Local middleware layer
- Runs on the developer machine
- Hooks coding agent prompts, file reads, and shell executions
- Intercepts all MCP tool calls and responses
- Performs client side redaction of secrets and PII
-
Cloud powered policy engine
- Receives a minimal, redacted payload
- Uses a classifier and analyzer to check for data leaks, context contamination, and prompt injection
- Returns Allow, Redact, Need more info, or Block decisions in real time
- Works with low latency to make sure the development flow in without friction
-
IDE integration
- Seamless integration with VS Code and Cursor extensions
- Shows a live monitoring view of all agent actions and Defenter decisions directly inside the IDE
Together, these pieces let you harness AI coding agents and MCP tools without compromising the security of your code, data, or workflows.
References
Python Proxy: See src/README.md for detailed implementation documentation
VSC Extension: See targets/vsc-extension/README.md for installation and user guide
来源:README.md,提交 b6415f6
工具
0版本历史
1- v0.0.96最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分