MCP
Provides core framework for building MCP-compliant AI agents and tools in PowerShell.
Added on 3/28/2025
MCP
Provides core framework for building MCP-compliant AI agents and tools in PowerShell.
Usage
Install-Module MCP
then
Import-Module MCP
# do stuff here.
v0.1.0 Changelog
-
Core Protocol Implementation
- JSON-RPC 2.0 compliant message classes (
JSONRPCRequest,JSONRPCResponse,JSONRPCNotification) - Full MCP enumeration support (
ErrorCodes,Role,LoggingLevel, etc.) - Protocol version negotiation (
2024-11-05as default)
- JSON-RPC 2.0 compliant message classes (
-
Session Management
McpSessionclass with:- Connection lifecycle management (connect/reconnect/close)
- Async message queuing and processing
- Request/response correlation
- Notification handler registry
-
Transport Layer
StdioClientTransportfor process-based communicationHttpClientTransportfor HTTP/SSE streaming- Thread-safe message serialization/deserialization
-
Type Safety & Serialization
ObjectMapperclass for JSON ↔ POCO conversion- Automatic enum parsing
- Nested object support in
JsonSchema
-
Error Handling
- Structured
McpErrorexceptions - Protocol-compliant error codes
- Timeout and cancellation support
- Structured
Limitations and TODOs
- HTTP transport lacks retry logic
- Limited schema validation for tool inputs
- Async/await pattern requires PowerShell 7+
- Server-side implementation
- Advanced resource templating
- Built-in telemetry
- CI/CD pipeline support
License
This project is licensed under the WTFPL License.
Similar Resources
Developer Tools