PowerShell EX
MCP server for advanced PowerShell integration with AI agents, enabling autonomous script execution, code analysis, and IntelliSense.
README
PowerShell EX β Advanced PowerShell for Antigravity IDE
<div align="center">
π The most powerful PowerShell integration for AI-driven development
Created by Vitaly Golik (mjojo)
</div>
π Why PowerShell EX is Better Than Other Extensions
vs. Official PowerShell Extension
| Feature | PowerShell EX | Official Extension |
|---|---|---|
| AI Agent Integration (MCP) | β Full support | β Not available |
| Autonomous Script Execution | β Yes | β Manual only |
| Real-time PSScriptAnalyzer | β Instant feedback | β οΈ Delayed |
| ISE Compatibility Mode | β Perfect emulation | β οΈ Partial |
| Memory Footprint | β Lightweight | β Heavy |
| Startup Time | β < 1 second | β 3-5 seconds |
| Native TabExpansion2 | β Full support | β Yes |
π― Key Advantages
-
π€ AI-First Architecture
Built from the ground up for AI agents. MCP protocol enables Antigravity's AI to write, execute, and debug PowerShell autonomously β no human intervention required. -
β‘ Lightning Fast
No bloated language server. Direct PowerShell execution with minimal overhead. Extension activates in under 1 second. -
π Secure Execution
Sandboxed script execution with configurable policies. Output sanitization prevents sensitive data leaks. -
π Smart Analysis
PSScriptAnalyzer integration with custom rule sets. Get actionable suggestions, not just warnings. -
π¨ Beautiful Themes
Includes ISE-inspired themes for developers who love the classic look. Dark and light variants included. -
π Zero Configuration
Works out of the box. Auto-detects PowerShell 7 or falls back to Windows PowerShell.
β¨ Features
MCP Tools for AI Agents
| Tool | Description |
|---|---|
execute_powershell |
Run PowerShell code with full stdout/stderr capture |
analyze_script |
Lint and analyze code with PSScriptAnalyzer |
get_completions |
IntelliSense via native TabExpansion2 |
get_help |
Get-Help integration for instant documentation |
invoke_cmdlet |
Execute single cmdlets with structured parameters |
list_modules |
Browse and search installed modules |
VS Code Integration
- πΉ F8 β Run selection/current line
- π Ctrl+F1 β Show help for symbol under cursor
- π Real-time diagnostics as you type
- π‘ Code actions and quick fixes
- π¨ Syntax highlighting for all PS file types
π¦ Installation
# Clone the repository
git clone https://github.com/mjojo/powershell-ex.git
cd powershell-ex
# Install dependencies
npm install
# Build
npm run build
π§ Usage with Antigravity
Add to your Antigravity MCP settings (.antigravity/mcp.json):
{
"mcpServers": {
"powershell": {
"command": "node",
"args": ["path/to/powershell-ex/dist/index.js"]
}
}
}
π Requirements
- Node.js 18+ (LTS recommended)
- PowerShell 7+ (pwsh) or Windows PowerShell 5.1
- PSScriptAnalyzer module (optional, for code analysis)
# Install PSScriptAnalyzer
Install-Module -Name PSScriptAnalyzer -Scope CurrentUser -Force
π οΈ Development
npm run dev # Watch mode with hot reload
npm run build # Production build
npm run lint # Run ESLint
npm test # Run test suite
πΊοΈ Roadmap
- [ ] Debugging support (breakpoints, stepping)
- [ ] Remote PowerShell sessions (SSH, WinRM)
- [ ] PowerShell notebook support
- [ ] Custom PSScriptAnalyzer rule editor
- [ ] Performance profiler integration
π License
MIT Β© 2024-2026 Vitaly Golik (mjojo)
<div align="center">
β Star this repo if you find it useful!
</div>
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.