Skip to main content

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

Metadata

Release files for defenter-proxy 0.0.96

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for defenter-proxy 0.0.96
File Size Uploaded
defenter_proxy-0.0.96.tar.gz 89.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for defenter-proxy 0.0.96
File Interpreter ABI Platform
defenter_proxy-0.0.96-py3-none-any.whl Python 3 none any Details

Total release size: 199.2 kB

Release files / defenter_proxy-0.0.96.tar.gz

Download URL defenter_proxy-0.0.96.tar.gz
Size 89.2 kB
Tags Source
SHA-256 checksum
How to use checksums
24ac0189d98d2ac55354f8e1fc8a0b6d3e9cc4d35a869c15245e29968a4587f1
BLAKE2b-256 checksum
How to use checksums
a564d7b919125323c85c7a9c6a1222a6e2e0e985625b0fe1fa1c5e4673e59772
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / defenter_proxy-0.0.96-py3-none-any.whl

Download URL defenter_proxy-0.0.96-py3-none-any.whl
Size 110.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ea0c1b30e26409a10eb59e46fe05e5a8e724e5157ecab584a210c7cb687d4d2
BLAKE2b-256 checksum
How to use checksums
6e5813551cbf5a3eb15dba7555b0af70992cf6b787f3d83174a23e81968bbe9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.0.96 This release

2 release files

0.0.95

2 release files

0.0.94

2 release files

0.0.93

2 release files

0.0.92

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page