Skip to main content

NIA AI - Web Evaluation Agent for browser testing and UX analysis

Project description

๐Ÿš€ NIA AI web-eval-agent MCP Server

Let the coding agent debug itself, you've got better things to do.

Demo

๐Ÿ”ฅ Supercharge Your Debugging

NIA AI's MCP Server launches a browser-use powered agent to autonomously execute and debug web apps directly in your code editor.

โšก Features

  • ๐ŸŒ Navigate your webapp using BrowserUse (2x faster with NIA backend)
  • ๐Ÿ“Š Capture network traffic - requests are intelligently filtered and returned into the context window
  • ๐Ÿšจ Collect console errors - captures logs & errors
  • ๐Ÿค– Autonomous debugging - the Cursor agent calls the web QA agent mcp server to test if the code it wrote works as epected end-to-end.

๐Ÿงฐ MCP Tool Reference

Tool Purpose
web_eval_agent ๐Ÿค– Automated UX evaluator that drives the browser, captures screenshots, console & network logs, and returns a rich UX report.
setup_browser_state ๐Ÿ”’ Opens an interactive (non-headless) browser so you can sign in once; the saved cookies/local-storage are reused by subsequent web_eval_agent runs.

Key arguments

  • web_eval_agent

    • url (required) โ€“ address of the running app (e.g. http://localhost:3000)
    • task (required) โ€“ natural-language description of what to test ("run through the signup flow and note any UX issues")
    • headless_browser (optional, default false) โ€“ set to true to hide the browser window
  • setup_browser_state

    • url (optional) โ€“ page to open first (handy to land directly on a login screen)

You can trigger these tools straight from your IDE chat, for example:

Evaluate my app at http://localhost:3000 โ€“ run web_eval_agent with the task "Try the full signup flow and report UX issues".

๐Ÿ Quick Start (macOS/Linux)

  1. Pre-requisites (typically not needed):
  • brew: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • npm: (brew install npm)
  • jq: brew install jq
  1. Run the installer after getting an api key (free)
curl -LSf https://trynia.ai/install.sh -o install.sh && bash install.sh && rm install.sh
  1. Visit your favorite IDE and restart to apply the changes
  2. Send a prompt in chat mode to call the web eval agent tool! e.g.
Test my app on http://localhost:3000. Use web-eval-agent.

๐Ÿ› ๏ธ Manual Installation

  1. Get your API key at trynia.ai
  2. Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh)
  1. Install playwright:
npm install -g chromium playwright && uvx --with playwright playwright install --with-deps
  1. Add below JSON to your relevant code editor with api key
  2. Restart your code editor

๐Ÿ”ƒ Updating

  • uv cache clean
  • refresh MCP server
    "web-eval-agent": {
      "command": "uvx",
      "args": [
        "--refresh-package",
        "webEvalAgent",
        "--from",
        "git+https://github.com/nia-ai-app/web-eval-agent.git",
        "webEvalAgent"
      ],
      "env": {
        "NIA_API_KEY": "<YOUR_KEY>"
      }
    }

NIA AI Discord Server

๐Ÿ› ๏ธ Manual Installation (Mac + Cursor/Cline/Windsurf)

  1. Get your API key at trynia.ai
  2. Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh)
  1. Install playwright:
npm install -g chromium playwright && uvx --with playwright playwright install --with-deps
  1. Add below JSON to your relevant code editor with api key
  2. Restart your code editor

Manual Installation (Windows + Cursor/Cline/Windsurf)

We're refining this, please open an issue if you have any issues!

  1. Do all this in your code editor terminal
  2. curl -LSf https://trynia.ai/install.sh -o install.sh && bash install.sh && rm install.sh
  3. Get your API key at trynia.ai
  4. Install uv (curl -LsSf https://astral.sh/uv/install.sh | sh)
  5. uvx --from git+https://github.com/nia-ai-app/web-eval-agent.git playwright install
  6. Restart code editor

๐Ÿšจ Issues

  • Updates aren't being received in code editors, update or reinstall for latest version: Run uv cache clean for latest
  • Any issues feel free to open an Issue on this repo or in the discord!
  • 5/5 - static apps without changes weren't screencasting, fixed! uv clean + restart to get fix

Changelog

  • 4/29 - Agent overlay update - pause/play/stop agent run in the browser

๐Ÿ“‹ Example MCP Server Output Report

๐Ÿ“Š Web Evaluation Report for http://localhost:5173 complete!
๐Ÿ“ Task: Test the API-key deletion flow by navigating to the API Keys section, deleting a key, and judging the UX.

๐Ÿ” Agent Steps
  ๐Ÿ“ 1. Navigate โ†’ http://localhost:5173
  ๐Ÿ“ 2. Click     "Login"        (button index 2)
  ๐Ÿ“ 3. Click     "API Keys"     (button index 4)
  ๐Ÿ“ 4. Click     "Create Key"   (button index 9)
  ๐Ÿ“ 5. Type      "Test API Key" (input index 2)
  ๐Ÿ“ 6. Click     "Done"         (button index 3)
  ๐Ÿ“ 7. Click     "Delete"       (button index 10)
  ๐Ÿ“ 8. Click     "Delete"       (confirm index 3)
๐Ÿ Flow tested successfully โ€“ UX felt smooth and intuitive.

๐Ÿ–ฅ๏ธ Console Logs (10)
  1. [debug] [vite] connectingโ€ฆ
  2. [debug] [vite] connected.
  3. [info]  Download the React DevTools โ€ฆ
     โ€ฆ

๐ŸŒ Network Requests (10)
  1. GET /src/pages/SleepingMasks.tsx                   304
  2. GET /src/pages/MCPRegistryRegistry.tsx             304
     โ€ฆ

โฑ๏ธ Chronological Timeline
  01:16:23.293 ๐Ÿ–ฅ๏ธ Console [debug] [vite] connectingโ€ฆ
  01:16:23.303 ๐Ÿ–ฅ๏ธ Console [debug] [vite] connected.
  01:16:23.312 โžก๏ธ GET /src/pages/SleepingMasks.tsx
  01:16:23.318 โฌ…๏ธ 304 /src/pages/SleepingMasks.tsx
     โ€ฆ
  01:17:45.038 ๐Ÿค– ๐Ÿ Flow finished โ€“ deletion verified
  01:17:47.038 ๐Ÿค– ๐Ÿ“‹ Conclusion repeated above
๐Ÿ‘๏ธ  See the "NIA AI Control Center" dashboard for live logs.

Star History

Star History Chart


Built with <3 @ trynia.ai

NIA Web Eval Agent

AI-powered web application testing and UX evaluation tool. Automatically test user interfaces, analyze user experience, and provide detailed feedback using advanced AI agents.

๐Ÿš€ Quick Start

Installation

Install from PyPI:

pip install nia-web-eval-agent

Get Your API Key

  1. Visit https://trynia.ai
  2. Sign up for an account
  3. Get your NIA API key from the dashboard

Configuration for Cursor

Add this to your ~/.cursor/mcp.json:

{
  "mcpServers": {
    "NIA Web Eval": {
      "command": "nia-web-eval-agent",
      "env": {
        "NIA_API_KEY": "your_nia_api_key_here"
      }
    }
  }
}

Configuration for Claude Desktop

Add this to your ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "NIA Web Eval": {
      "command": "nia-web-eval-agent",
      "env": {
        "NIA_API_KEY": "your_nia_api_key_here"
      }
    }
  }
}

Usage

Once configured, restart your IDE and you can use the web evaluation tools:

Evaluate my app at http://localhost:3000 using web_eval_agent

๐Ÿงฐ MCP Tools

Tool Purpose
web_eval_agent ๐Ÿค– Automated UX evaluator that drives the browser, captures screenshots, console & network logs, and returns a rich UX report.
setup_browser_state ๐Ÿ”’ Opens an interactive browser for authentication; saves cookies/state for future runs.

Tool Arguments

  • web_eval_agent

    • url (required) โ€“ localhost URL of your app (e.g. http://localhost:3000)
    • task (required) โ€“ description of what to test ("test the signup flow and note UX issues")
    • headless_browser (optional, default false) โ€“ set to true to hide browser window
  • setup_browser_state

    • url (optional) โ€“ page to open first (useful for login screens)

๐Ÿ”„ Updating

To get the latest version:

pip install --upgrade nia-web-eval-agent

Then restart your IDE to pick up the changes.

๐Ÿ› ๏ธ Development & Contributing

For local development:

git clone https://github.com/nia-ai-app/web-eval-agent.git
cd web-eval-agent
pip install -e .

๐Ÿšจ Troubleshooting

  • Tools not appearing: Ensure you've restarted your IDE after configuration
  • API key issues: Get a valid key from trynia.ai
  • Browser issues: The tool will auto-install required browser dependencies

๐Ÿ“ž Support


Built with โค๏ธ by NIA AI

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nia_web_eval_agent-1.3.0.tar.gz (104.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nia_web_eval_agent-1.3.0-py3-none-any.whl (113.9 kB view details)

Uploaded Python 3

File details

Details for the file nia_web_eval_agent-1.3.0.tar.gz.

File metadata

  • Download URL: nia_web_eval_agent-1.3.0.tar.gz
  • Upload date:
  • Size: 104.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for nia_web_eval_agent-1.3.0.tar.gz
Algorithm Hash digest
SHA256 dc5953ddc45c5f6715eec8d4e11ddc32aa2c5f231d72ff46d4c3c7e51229e866
MD5 e7869a6738a4e7bd017fb792d4cccf40
BLAKE2b-256 1ea707bb7e515e196a7637f98fc1671d5f5c35e633b089a179c6fa6596a9212b

See more details on using hashes here.

File details

Details for the file nia_web_eval_agent-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nia_web_eval_agent-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4bc4e4144edc33916f9429d20385f29813079ad47b29c8f35ff8670908384be
MD5 cfaafeb026cc41432d1308ce69fd0e76
BLAKE2b-256 35641ff6d9643e59f2347fa5dbe943732b4b0bdd80cbe3e636a9892d1e41a4d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page