Skip to content
| Marketplace
Sign in
Visual Studio Code>Machine Learning>MCP Sharp STAF SeleniumNew to Visual Studio Code? Get it now.
MCP Sharp STAF Selenium

MCP Sharp STAF Selenium

Sooraj Ramachandran

|
3 installs
| (0) | Free
MCP server for Selenium WebDriver: runtime browser automation and STAF-based C# code generation. Bundles a self-contained win-x64 executable (Windows only).
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

MCP Sharp STAF Selenium – Extension

Self-contained MCP server build for easy reuse. Copy this extension folder into your test project and reference the exe from your MCP configuration, or install the .vsix from the Visual Studio Marketplace (after publishing).

Visual Studio Code (Marketplace / .vsix)

This folder is a VS Code extension that registers an MCP server via vscode.lm.registerMcpServerDefinitionProvider (see MCP extension guide).

  • Windows only: the bundled server is a self-contained win-x64 executable (publish/mcp-sharp-staf-selenium.exe). On macOS/Linux the extension will not register a server.
  • Build the .vsix from the repo root: .\build-extension.ps1 (override publisher with -Publisher <id> if it differs from your Marketplace publisher id, which may not match your display name).
  • Upload: sign in at marketplace.visualstudio.com/manage and upload the generated mcp-sharp-staf-selenium-<version>.vsix.

Contents

  • publish/ – Published build (win-x64, self-contained). Run the publish command below to populate.
    • mcp-sharp-staf-selenium.exe – MCP server (stdio transport)

Usage

1. Copy extension into your project

Copy the entire extension folder into your test project root:

YourTestProject/
├── extension/
│   └── publish/
│       └── mcp-sharp-staf-selenium.exe
├── YourTests.csproj
└── ...

2. Add MCP configuration

Point your MCP client to the exe. The server uses stdio transport (stdin/stdout).

Cursor – Add to .cursor/mcp.json or Cursor Settings → MCP:

{
  "mcpServers": {
    "selenium-staf": {
      "command": "extension/publish/mcp-sharp-staf-selenium.exe",
      "args": []
    }
  }
}

Claude Desktop – Add to claude_desktop_config.json:

{
  "mcpServers": {
    "selenium-staf": {
      "command": "extension/publish/mcp-sharp-staf-selenium.exe",
      "args": []
    }
  }
}

Use an absolute path if needed:

"command": "C:/path/to/YourTestProject/extension/publish/mcp-sharp-staf-selenium.exe"

Rebuilding

To regenerate the publish folder:

dotnet publish mcp-sharp-staf-selenium/mcp-sharp-staf-selenium.csproj -c Release -r win-x64 --self-contained true -o extension/publish
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft