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

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

Defenter Proxy 是本地 Python 代理,會攔截 AI 程式助理的提示詞、MCP 呼叫、檔案讀取與 shell 指令,並依安全策略放行、遮蔽或阻擋。

可以做什麼
  • 攔截並包裝 MCP 工具呼叫與回應以供檢查
  • 監控程式助理的提示詞與回覆
  • 監看助理觸發的檔案讀取與 shell 指令
  • 分析內容中的機密、個人資料、資料外洩、上下文污染與提示注入
  • 即時給出放行、遮蔽、需要更多資訊或阻擋的決定
  • 在 IDE 中顯示助理動作與決策的即時監控檢視
適用情境
適合在 VS Code、Cursor 或 Claude Code 中執行 AI 程式助理或 MCP 伺服器,並希望在動作發生前檢查助理送出與執行內容的情境,尤其是避免外洩機密或客戶資料。
執行需求
以本機 Python 程序執行,可從 PyPI 安裝並以 uvx 啟動。README 指出常見做法是安裝 Defenter 的 IDE 擴充套件或 Claude Code 外掛,由這個代理擔任本機中介層。雲端策略引擎會接收遮蔽後的內容進行分類,因此需要網路連線。未宣告環境變數或標頭。
安裝前請注意
它位於每次提示詞、MCP 呼叫、檔案讀取與 shell 指令的路徑上,可能遮蔽或阻擋動作並影響工作流程。內容會送到雲端策略引擎分析,README 稱在用戶端遮蔽機密與個人資料後只傳送最小化內容。使用前應確認傳輸內容與預設策略。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Defenter Proxy,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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:

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
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.0.96最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分