MCP
[wip] Module for building MCP-compliant ai agents and tools in PowerShell.
Overview
MCP is a core framework designed for building MCP-compliant AI agents and tools using PowerShell.
To use MCP, install the module via PowerShell with the command Install-Module MCP, then import it using Import-Module MCP to start building your applications.
- JSON-RPC 2.0 compliant message classes for communication. - Full support for MCP enumeration and protocol version negotiation. - Session management with connection lifecycle handling. - Multiple transport layers for communication (process-based and HTTP/SSE). - Type safety and serialization features for JSON and POCO conversion. - Structured error handling with protocol-compliant error codes.
- Developing AI agents that require compliant communication protocols.
- Building tools that need robust session management and error handling.
- Implementing applications that utilize JSON-RPC for messaging.
Add to your AI client
Use these steps to connect MCP in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-chadnpc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-chadnpc"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-chadnpc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-chadnpc"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-chadnpc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-chadnpc"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-chadnpc": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-chadnpc"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-chadnpc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-chadnpc"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-chadnpc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-chadnpc"
]
}
}
}FAQ
What is the primary purpose of MCP?
MCP serves as a framework for creating AI agents and tools that adhere to the MCP protocol.
Is MCP compatible with all versions of PowerShell?
MCP requires PowerShell 7 or higher for certain async features.
What transport methods does MCP support?
MCP supports both process-based communication and HTTP/SSE streaming.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2891,"uuid":"2e127416-6a7c-4310-8222-30076daf4473","name":"MCP","title":"MCP","description":"[wip] Module for building MCP-compliant ai agents and tools in PowerShell.","avatar_url":"https://avatars.githubusercontent.com/u/79479952?v=4","created_at":"2025-03-16T03:39:18.981Z","updated_at":"2025-03-16T03:56:38.436Z","status":"created","author_name":"chadnpc","author_avatar_url":"https://avatars.githubusercontent.com/u/79479952?v=4","tags":"mcp-server,mcp-client","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/chadnpc/MCP","target":"_self","content":"$29","summary":"$2a","img_url":"https://github.com/chadnpc/MCP/raw/main/docs/images/MCP.png","type":null,"metadata":"{\"star\":\"1\",\"license\":\"WTFPL license\",\"language\":\"PowerShell\",\"is_official\":false,\"latest_commit_time\":\"2025-04-03 02:29:33\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]