This repo supports two reliable ways to test the WinDiag MCP Server (Streamable HTTP at /mcp with API key):
- Automated smoke test script (fast, automatable)
- MCP Inspector (visual UI, best for development/debugging)
Fastest way to verify the server works end-to-end (no LLM required):
./test-mcp-server.ps1This script:
- Builds the server
- Starts it locally
- Performs an MCP handshake
- Discovers tools
- Executes
get_system_info
Use this for quick verification and automation.
Inspector is the best way to explore tools/resources/prompts and to debug protocol issues visually.
npm install -g @modelcontextprotocol/inspector./launch-inspector.ps1- Click Connect
- Open the Tools tab
- Select get_system_info
- Click Call Tool
Tip: The Logs tab is great for inspecting raw JSON-RPC requests/responses.
| Method | Setup | Visual UI | Real-time | Best For |
|---|---|---|---|---|
| test-mcp-server.ps1 | ⭐ Easy | ❌ No | ❌ No | Quick tests |
| Inspector | ⭐⭐ Medium | ✅ Yes | ✅ Yes | Learning |
Run the full test suite:
.\test-mcp-server.ps1This script:
- Builds the server
- Tests connectivity
- Lists tools
- Executes
get_system_info - Validates output
{
"machineName": "HOMEALON11",
"userName": "alon",
"osDescription": "Microsoft Windows 10.0.22631",
"osArchitecture": "X64",
"processArchitecture": "X64",
"processorCount": 44,
"frameworkDescription": ".NET 10.0.0",
"currentDirectory": "C:\\Dev\\MCPDemo",
"systemUpTime": "14.10:10:59.7340000"
}# Check build errors
dotnet build
# Run directly to see output
dotnet run --project WinDiagMcpServer/WinDiagMcpServer.csproj- Rebuild the server:
dotnet clean; dotnet build - Re-run
./test-mcp-server.ps1to confirm the server responds - In Inspector, reconnect and check the Logs tab for errors
- Make sure you clicked "Connect" button
- Check server is building successfully
- Look at "Server Notifications" for errors
- Try restarting: Ctrl+C and run
.\launch-inspector.ps1again
- Confirm Node.js is installed:
node --version(16+) - Reinstall Inspector:
npm install -g @modelcontextprotocol/inspector
- Manually open:
http://localhost:5173
- Inspector uses port
5173by default - Stop the other process using that port, then re-run
./launch-inspector.ps1
# Example GitHub Actions
- name: Test MCP Server
run: |
pwsh -File ./test-mcp-server.ps1- MCP Specification - Official protocol docs