Playwright-style automation for .NET desktop apps: an MCP server that lets AI agents see, operate and test WPF, WinForms and WinUI apps.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add netwright -- dnx Netwright --yes~/.codex/config.toml
[mcp_servers.netwright]
command = "dnx"
args = ["Netwright", "--yes"]
# codex mcp add netwright -- dnx Netwright --yes~/.cursor/mcp.json
{
"mcpServers": {
"netwright": {
"command": "dnx",
"args": [
"Netwright",
"--yes"
]
}
}
}.vscode/mcp.json
{
"servers": {
"netwright": {
"type": "stdio",
"command": "dnx",
"args": [
"Netwright",
"--yes"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"netwright": {
"command": "dnx",
"args": [
"Netwright",
"--yes"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"netwright": {
"command": "dnx",
"args": [
"Netwright",
"--yes"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"netwright": {
"command": "dnx",
"args": [
"Netwright",
"--yes"
]
}
}
}