Particular due to Amy Chang, Arjun Sambamoorthy, Ruchika Pandey, Ben Risher, Adam Swanda
AI-powered built-in developer environments (IDEs) like Cursor, VS Code, and Windsurf now embody brokers that make the most of Mannequin Context Protocol (MCP) servers, run expertise, and generate total codebases. However as these instruments achieve entry to file methods, APIs, and shell instructions, a harmful mannequin of implicit belief has emerged. Builders are handing over the keys to their environments, and probably accepting third-party instruments and dependencies with out verifying if they’re safe.
Now we have built-in our open supply scanners, together with our hottest instruments (Talent Scanner and MCP Scanner), into an IDE extension. The AI Agent Safety Scanner for IDEs brings safety visibility and management to the AI improvement toolchain proper into your improvement setting. Along with scanning MCP servers, agent expertise, and AI-generated code, it additionally features a software referred to as Watchdog, which helps forestall context manipulation by making certain delicate recordsdata are repeatedly tracked and notifying customers of any adjustments, serving to mitigate points like persistent reminiscence poisoning.
The Drawback: New Assault Surfaces
MCP servers have develop into the connective tissue between AI brokers and exterior companies. A single MCP server can grant an AI agent entry to databases, file methods, cloud APIs, and shell instructions. Agent expertise—reusable instruction units that form AI habits—also can inject arbitrary prompts, execute scriptsand modify system configurations. Whereas integral options for our AI-enabled world, in addition they create a new assault floor. Some identified examples of compromise embody:
- Immediate injection by way of software descriptions: A compromised MCP server can embed hidden directions in software metadata that redirect agent habits with out the developer’s information.
- Integrating compromised instruments: Attackers can compromise even trusted instruments to execute malicious features akin to information wiping.
- Provide chain poisoning: Tampered ability definitions or MCP configurations can persist throughout periods, affecting each developer on a group.
- Configuration tampering: Hook injectionauto-memory poisoning, and shell alias manipulation can compromise the IDE setting itself.
Conventional utility safety instruments weren’t designed for this. Static Utility Safety Testing (SAST) scanners analyze supply code syntax.
Software program Composition Evaluation (SCA) instruments examine dependency variations. Neither understands the semantic layer the place MCP software descriptions, agent prompts, and ability definitions function.
How the AI Agent Safety Scanner for IDEs Works
The scanner operates on a defense-in-depth mannequin, consisting of proactive vulnerability prevention throughout code era, static evaluation of server configurations, behavioral inspection of agent expertise, and steady post-setup integrity monitoring. This multi-layered technique is executed by 4 built-in capabilities:
- MCP Server Scanning
The scanner discovers and analyzes MCP server configurations in your machine. It inspects software descriptions, server configurations, and endpoints for hidden directions, exfiltration patterns, cross-tool assault chains, and suspicious instructions. - Agent Talent Scanning
Abilities for Cursor, Claude Code, Codex, and Antigravity are analyzed for command injection, obfuscation, privilege escalation, and provide chain indicators. The scanner examines ability definitions and any referenced scripts or binaries with out executing them. - Safe AI-generated code
Undertaking CodeGuard’s safety guidelines are embedded straight into the agent’s context, overlaying 20+ safety domains starting from enter validation and authentication to cryptography and session administration. These guidelines information AI-generated code towards safe patterns from the beginning, slightly than catching vulnerabilities after the very fact. - Watchdog
Watchdog repeatedly displays vital AI configuration recordsdata for unauthorized modifications. It detects hook injection, auto-memory poisoning, shell alias injection, and MCP configuration tampering utilizing SHA-256 snapshots with HMAC verification. When a change is detected, builders can view diffs, restore from snapshots, or settle for the change as a brand new baseline.
A number of Evaluation Engines, Native-First by Default
The scanner layers a number of evaluation engines for complete protection:

Constructed for the Developer Workflow
The scanner integrates natively into the IDE expertise:
- Safety Dashboard with at-a-glance severity overview and pattern evaluation
- Inline decorations in MCP configuration recordsdata highlighting particular findings
- Findings tree with one-click navigation to affected instruments and descriptions
- Watchdog panel with diff views and snapshot restoration
- CodeLens annotations on MCP server definitions
- Export to JSON, Markdown, or CSV for integration with safety workflows
- Scan comparability to trace safety posture over time
- Allowlist administration for trusted servers, instruments, and expertise
- Cursor hooks that implement scan outcomes at MCP execution time — blocking, warning, or prompting based mostly on configurable severity thresholds

Determine 1: Screenshot of the IDE Extension panel displaying scan historical past and different panels.
Privateness by Design
The scanner was constructed with a transparent privateness precept: your code stays in your machine.
- No supply code is transmitted throughout scanning
- MCP instruments and ability code are by no means executed — solely metadata and descriptions are analyzed
- API keys are saved within the OS keychain by way of VS Code SecretStorage
- VirusTotal checks use hash-only lookups by default; file add requires specific opt-in
- Telemetry is non-compulsory and incorporates no scan content material, API keys, file paths, or PII
Getting Began
- Set up from the VS Code Market or search “AI Agent Safety Scanner for IDEs” in your IDE
- Run the Setup Wizard (launches robotically on first set up)
- Open the Command Palette and run Scan All (MCP + Abilities)
Inside seconds, you’ll have visibility into the safety posture of MCP servers and agent expertise in your setting.
The AI agent ecosystem is evolving quickly. The safety instruments defending it must evolve simply as quick. We invite the developer and safety communities to attempt the scanner, file points, contribute, and assist us construct the safety layer that AI-assisted improvement deserves.
Take a look at the documentation and extra info out there right here.
