Skip to content
| Marketplace
Sign in
Visual Studio Code>Data Science>PaywallDataAgentNew to Visual Studio Code? Get it now.
PaywallDataAgent

PaywallDataAgent

PaywallDataAgent

|
40 installs
| (1) | Free
Ask paywall questions in plain English. Get guarded Kusto analysis, experiment context, and polished Excel results through official Azure MCP.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PaywallDataAgent

Ask a paywall question. Get a guarded, reproducible answer.

PaywallDataAgent turns GitHub Copilot Agent mode into a paywall data analyst. It builds read-only KQL, queries Kusto through the official Azure MCP Server, finds experiment allocations, and exports polished Excel results only when you approve.

What You Get

  • Paywall funnels, trends, error breakdowns, and entry-point analysis.
  • Android, iOS, and macOS schema context with proven KQL patterns.
  • Experiment search plus active flight and allocation details.
  • Conservative validation before every live Kusto query.
  • Eight familiar PaywallDataAgent tools, now backed by official Azure MCP.

Architecture

VS Code Copilot
  -> PaywallDataAgent (Azure MCP), eight tools over stdio
      -> Official Azure MCP executable, Kusto-only read-only stdio session
          -> Aria gateway -> Office Android / Office Apple
      -> Existing experiment portal integration
      -> Local result files and opt-in Excel export

The extension depends on ms-azuretools.vscode-azure-mcp-server and locates its platform executable using VS Code's extension registry. It starts a separate MCP session using that executable; it does not attach to VS Code's existing Azure MCP session, copy the Azure binary, or implement Kusto authentication/HTTP itself. The documented server/azmcp layout is an upstream dependency. A configurable executable path and tool discovery provide a clear compatibility check.

The original sample-query context, experiment lookup, and Excel formatting are retained. Python azure-identity is used only by experiment lookup, not Kusto.

Tools

  • get_sample_queries: Android, iOS, and macOS domain context and query patterns.
  • validate_kql: Conservative local read-only checks, not a full syntax parser.
  • query_kusto_live: Azure MCP execution with row_count, columns, result_file, and a 20-row preview.
  • kusto_list_tables: Azure MCP table discovery through the gateway metadata database.
  • kusto_get_schema: Cross-cluster schema queries through Azure MCP.
  • search_experiment: Existing fuzzy experiment lookup.
  • get_experiment_allocations: Existing flights, audiences, and running allocations.
  • export_to_excel: User-approved export of this wrapper's result files to Downloads.

Prerequisites

Requirement Why it is needed
VS Code 1.101 or later Hosts the MCP definition provider
GitHub Copilot with Agent mode Runs the PaywallDataAgent tools
Python 3.10 or later Runs the domain wrapper
Official Azure MCP Server extension Executes Kusto and handles Kusto authentication
Kusto access and required corporate network/VPN Authorizes target telemetry access

Node.js and npm are needed only for source development, not normal VSIX use.

Install From Marketplace

  1. Open Extensions in VS Code and search for PaywallDataAgent.
  2. Select the extension published by PaywallDataAgent and choose Install.
  3. Allow VS Code to install and enable the required official Azure MCP Server extension.
  4. Run Developer: Reload Window when prompted and trust the workspace.
  5. Run PaywallDataAgent: Set Up and Check Dependencies from the Command Palette.
  6. Open Copilot Chat in Agent mode and enable PaywallDataAgent (Azure MCP).
  7. Approve the normal MCP server and tool prompts, then ask a paywall question.

Install From VSIX

  1. In VS Code, run Extensions: Install from VSIX.
  2. Select paywall-data-agent-2.0.0.vsix.
  3. Allow VS Code to install and enable the required official Azure MCP Server extension.
  4. Run Developer: Reload Window when prompted and trust the workspace.
  5. Run PaywallDataAgent: Set Up and Check Dependencies from the Command Palette.
  6. Open Copilot Chat in Agent mode and enable PaywallDataAgent (Azure MCP).
  7. Approve the normal MCP server and tool prompts, then ask a paywall question.

The setup command creates an isolated Python environment in this extension's private VS Code storage and installs every package in requirements.txt. The first MCP start also runs setup automatically. Later starts reuse the environment and reinstall only when requirements change.

Kusto authentication belongs to official Azure MCP. Follow its sign-in prompt and use an identity with access to the configured execution database. Experiment lookup uses Python DefaultAzureCredential; if only the experiment tools cannot authenticate, sign in with a supported credential such as Azure CLI and retry.

Manual Setup: macOS

These commands are for running from source or recovering a local setup:

./setup.sh
./run-server.sh

setup.sh finds Python 3.10+, creates .venv, installs all requirements, and verifies every required import. If Python is missing and Homebrew is available, it installs Python 3.12. Otherwise, install Python from https://www.python.org/downloads/ and rerun the script.

run-server.sh discovers the official Azure MCP executable from common VS Code extension directories. Set AZURE_MCP_COMMAND only for a custom executable path.

Manual Setup: Windows

Open PowerShell in the project folder:

Set-ExecutionPolicy -Scope Process Bypass
.\setup.ps1
.\run-server.ps1

setup.ps1 finds Python through the Python Launcher, PATH, or standard install directories. If Python is missing and winget is available, it installs Python 3.12. It then creates .venv, installs all requirements, and verifies the imports. If winget is unavailable, install Python from https://www.python.org/downloads/windows/ and rerun the script.

run-server.ps1 discovers azmcp.exe from common VS Code extension directories. Set AZURE_MCP_COMMAND only for a custom executable path.

What Setup Does

The installed extension does not edit user or workspace MCP settings. On start it:

  1. Locates the official Azure MCP extension's platform executable.
  2. Finds Python 3.10+ or uses paywallAzureMcp.pythonPath.
  3. Creates a private virtual environment under VS Code global storage.
  4. Installs and verifies the Python dependencies.
  5. Starts Azure MCP with Kusto-only tools and --read-only.
  6. Starts PaywallDataAgent with clean Python environment variables.

Nothing is auto-approved. No token, password, environment file, result file, or virtual environment is included in the VSIX.

Configuration

Run PaywallDataAgent (Azure MCP): Open Settings to override the bootstrap Python executable, Azure MCP executable, gateway cluster, execution database, or tenant. These settings are machine-scoped and no existing global MCP registrations change.

For source development, use .env.example to create local .env overrides. Set AZURE_MCP_COMMAND only if the launch scripts cannot discover the installed Azure MCP executable. The installed extension provider discovers it automatically.

npm run setup
npm start

The standalone scripts use this project's .venv, not the original project's environment. PAYWALL_PYTHON can select the bootstrap Python executable. PAYWALL_RESULT_DIR can select the local directory for JSON query results.

The default gateway is https://kusto.aria.microsoft.com with accessible execution database 7e90593cb38e43c08344e14a8f21f1a7. Android KQL still uses cluster('oariashared').database('Office Android'). Table listing separately uses KUSTO_METADATA_DATABASE_ANDROID so changing the execution context does not accidentally enumerate another database. Equivalent iOS and macOS settings exist. No credentials or tokens belong in these files.

Troubleshooting

PaywallDataAgent does not appear in the tool picker

Enable the official Azure MCP Server dependency and PaywallDataAgent, trust the workspace, run the setup command, and reload the window. Do not enable a separate workspace debug registration at the same time or duplicate tools will appear.

Python 3.10+ was not found

Install Python or set paywallAzureMcp.pythonPath. From source, run ./setup.sh on macOS or .\setup.ps1 on Windows.

Azure MCP executable is missing

Repair or reinstall ms-azuretools.vscode-azure-mcp-server, or set paywallAzureMcp.azureMcpPath to server/azmcp (server/azmcp.exe on Windows).

Authentication, tenant, database, or network failure

Verify corporate network/VPN access and Kusto permissions, then consult https://aka.ms/azmcp/troubleshooting.

Safety and Limits

  • The upstream process exposes only Kusto tools with --read-only.
  • The wrapper permits only query and metadata calls, rejects management commands, and sets request_readonly=true on queries. Least-privilege Kusto permissions remain the authorization boundary; local validation is not a complete parser.
  • Conservative checks can reject management-like text inside strings/comments. Syntax validation happens at Azure Data Explorer during execution.
  • Queries must fit within 10,000 characters including the read-only option. The MCP query timeout is 250 seconds; the upstream service may time out earlier.
  • The 30-day window is query-authoring guidance, not a forced filter over arbitrary KQL.
  • Query JSON stays locally until removed. Excel export accepts only this wrapper's result directory and safe filename prefixes. Exports are never automatic.
  • Azure MCP handles Kusto credentials. Experiment lookup uses its own existing identity integration. The upstream process follows VS Code's telemetry preference.

If the Azure executable is missing or not executable, repair/start the official extension or supply a valid path; the wrapper will not download or modify its binary. For account, tenant, or network errors, consult https://aka.ms/azmcp/troubleshooting and verify access to the execution database.

Source Control

Commit source, context, tests, requirements, and the npm lockfile. Keep node_modules, .venv, out, local .env files, result files, and VSIX packages out of Git. npm ci restores build dependencies. Packaging uses an allowlist and includes only the launch/setup files, extension runtime, Python modules, requirements, and domain context.

Build and Package

npm ci
npm run setup
npm test
npm run package

npm start uses launch-server.js, which selects run-server.sh on macOS/Linux and run-server.ps1 on Windows.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft