← 开源
OTA-Tech-AI

web-agent-protocol

🌐Web Agent Protocol (WAP) - Record and replay user interactions in the browser with MCP support

AI EngineeringProtocolsPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
506
Star
91
Fork
+0
本周
2
贡献者
创建于 2025-05-17 · 更新于 2026-10-02 · 今日第 18173 名
主要开发者
JeanTakOTA-Tech-AI

OTA-Tech-AI/web-agent-protocol 排名第 18,173,有 506 个星标。

同类别比较

OTA-Tech-AI/web-agent-protocol 排名第 18,173,此处有 8 个同类条目;viettran-edgeAI/codex_workflow 排名第 18,166。

同类别比较
名称排名指标
freee/freee-mcp18,156
语言:
TypeScript
星标数:
507
分叉数:
59
简介:
Model Context Protocol (MCP) server for freee API integration
mingsky-ai/ComfyUI-MingNodes18,158
语言:
Python
星标数:
507
分叉数:
24
简介:
some practical comfyui nodes
tt-a1i/simplify-codebase18,165
语言:
HTML
星标数:
507
分叉数:
26
简介:
Prove and remove accidental codebase complexity without breaking behavior.
viettran-edgeAI/codex_workflow18,166
语言:
Python
星标数:
507
分叉数:
36
简介:
A swarm orchestration system in Codex - use less quota, get more done.
deadbits/vigil-llm18,182
语言:
Python
星标数:
506
分叉数:
57
简介:
⚡ Vigil ⚡ Detect prompt injections, jailbreaks, and other potentially risky Large Language Model (LLM) inputs
langchain-ai/langchain-aiplugin18,189
语言:
Python
星标数:
506
分叉数:
40
liu00222/Open-Prompt-Injection18,190
语言:
Python
星标数:
506
分叉数:
82
简介:
This repository provides a benchmark for prompt injection attacks and defenses in LLMs
ollama4j/ollama4j18,192
语言:
Java
星标数:
506
分叉数:
85
简介:
A simple Java library for interacting with Ollama server.
关键参数与规格
关键参数与规格
参数值
语言Python
类别AI Engineering
子类别Protocols
关键词Browser, MCP
星标数506
分叉数91
贡献者2
创建日期2025-05-17
更新日期2026-10-02
1 天星标数0
7 天星标数0
排名18,173
上次排名17,934
排名变化-239
7 天星标排名16,513
上次 7 天星标排名16,526
7 天星标排名变化13
总星标排名19,176
上次总星标排名19,158
总星标排名变化-18
README 摘录

Web Agent Protocol Overview The Web Agent Protocol (WAP) is a standardized framework designed to enable seamless interaction between users, web agents, and browsers by recording and replaying browser actions. It separates the concerns of action recording and execution, allowing for efficient automation and reusability. The Python SDK for WAP implements the full specification, making it easy to: 1. **Collect** user‑interaction data with the OTA‑WAP Chrome extension. **Convert** the raw event stream into either **_exact‑replay_** or **_smart

‑replay_** action lists. **Convert** recorded actions into **_MCP_** servers for reuse by any agent or user 4. **Replay** those lists using the **_WAP-Replay_** protocol to ensure accurate browser operations. WAP FULL DEMO Without WAP WAP Record WAP Replay Example using WAP Setup Install the dependencies with the following command: Create a conda env Activate the conda env Install the dependencies Setup your repo source path: Create **. env** file under the repo root directory with your own API keys: Record

WAP record extension Please refer to OTA‑WAP Chrome Extension to setup action capturer in your Chrome browser. Start data‑collection server Run the following command to start the server to collect data from the extension: **Once the server is up, you can start to record from the page using WAP Chrome extension. ** The server listens on by default, please make sure the Host and Port in the extension settings match this server config. Output structure: Replay For **smart-replay

**, replace the path with a smart‑replay JSON to test this mode. Convert to MCP Server converted MCP servers will be located under folder Replay with MCP You would need 2 terminals to replay with MCP. In the first termnial In the second termnial Then enter your prompt in the second terminal Replay with our Desktop App We provide out-of-box desktop app for running replay lists. It is easy to install and you don't need any extra steps

for setup and deployments. Visit WAP Replay Tool releases for more details. Troubleshooting **ModuleNotFoundError** – run commands from the project root or export PYTHONPATH=. “no task‑start file” – ensure the extension recorded a full session; the generators require exactly one task-start and one task-finish record. Acknowledgement Browser-Use: MCP: DOM Extension:

常见问题

记录了多少星标和分叉?

OTA-Tech-AI/web-agent-protocol 有 506 个星标和 91 个分叉。

仓库排名是多少?

OTA-Tech-AI/web-agent-protocol 排名第 18,173。

记录的语言和类别是什么?

OTA-Tech-AI/web-agent-protocol 有 506 个星标,语言为 Python,类别为 AI Engineering。

哪个仓库排名最接近?

OTA-Tech-AI/web-agent-protocol 与 viettran-edgeAI/codex_workflow 比较,后者排名第 18,166,有 507 个星标。

README

Web Agent Protocol

Overview

The Web Agent Protocol (WAP) is a standardized framework designed to enable seamless interaction between users, web agents, and browsers by recording and replaying browser actions. It separates the concerns of action recording and execution, allowing for efficient automation and reusability. The Python SDK for WAP implements the full specification, making it easy to:

  1. Collect user‑interaction data with the OTA‑WAP Chrome extension.
  2. Convert the raw event stream into either exact‑replay or smart‑replay action lists.
  3. Convert recorded actions into MCP servers for reuse by any agent or user
  4. Replay those lists using the WAP-Replay protocol to ensure accurate browser operations.

WAP FULL DEMO

Without WAP

WAP Record

WAP Replay

Example using WAP

Setup

Install the dependencies with the following command:

Create a conda env

conda create -n WAP python=3.11

Activate the conda env

conda activate WAP

Install the dependencies

pip install -r requirements.txt

Setup your repo source path:

set PYTHONPATH=C:/path/to/webagentprotocol # for Windows
export PYTHONPATH=/path/to/webagentprotocol # for Linux

Create .env file under the repo root directory with your own API keys:

OPENAI_API_KEY=sk-proj-...
DEEPSEEK_API_KEY=sk-...

Record

WAP record extension

Please refer to OTA‑WAP Chrome Extension to setup action capturer in your Chrome browser.

Start data‑collection server

Run the following command to start the server to collect data from the extension:

python action_collect_server.py

Once the server is up, you can start to record from the page using WAP Chrome extension.

The server listens on http://localhost:4934/action-data by default, please make sure the Host and Port in the extension settings match this server config. Each session will be saved to:

data/YYYYMMDD/taskid/summary_event_.json

An example of the formatted data which you will received in the WAP backend server is like:

{
  "taskId": "MkCAhQsHgXn7YgaK",
  "type": "click",
  "actionTimestamp": 1746325231479,
  "eventTarget": {
    "type": "click",
    "target": "[\n

...",
    "targetId": "mntl-card-list-card--extendable_3-0",
    "targetClass": "comp mntl-card-list-card--extendable mntl-universal-card mntl-document-card mntl-card card card--no-image"
  },
  "allEvents": {},
  "pageHTMLContent": "](\"https://www.allrecipes.com/recipe/68925/cheesy-baked-salmon/\")
..."
}

Generate replay lists

Mode Command
Exact replay – exactly reproduce every action python wap_replay/generate_exact_replay_list.py --data_dir_path data// --output_dir_path data_processed/exact_replay
Smart replay – condensed goal‑oriented steps python wap_replay/generate_smart_replay_list.py --data_dir_path data// --output_dir_path data_processed/smart_replay

Replace **** with the folder produced by the extension (e.g. em3h6UBDZykz0gnH).

Output structure:

data_processed/smart_replay/
 ├─ subgoals_/                     # intermediate prompts & replies
 └─ wap_smart_replay_list_.json   # final smart replay list for the agent

data_processed/exact_replay/
 └─ wap_smart_replay_list_.json   # final exact replay list for the agent

Replay

python run_replay.py --model-provider openai --wap_replay_list data_processed/exact_replay/wap_exact_replay_list_.json --max-concurrent 1

For smart-replay, replace the path with a smart‑replay JSON to test this mode.

Convert to MCP Server

python wap_replay\generate_mcp_server.py --task_id 

converted MCP servers will be located under mcp_servers folder

Replay with MCP

You would need 2 terminals to replay with MCP. In the first termnial

python wap_service.py

In the second termnial

python mcp_client.py

Then enter your prompt in the second terminal

example: find a top rated keyboard on amazon.ca using smart replay

Replay with our Desktop App

We provide out-of-box desktop app for running replay lists. It is easy to install and you don't need any extra steps for setup and deployments. Visit WAP Replay Tool releases for more details.

Troubleshooting

ModuleNotFoundError – run commands from the project root or export PYTHONPATH=. (set PYTHONPATH=. for Windows).

“no task‑start file” – ensure the extension recorded a full session; the generators require exactly one task-start and one task-finish record.

Acknowledgement

Browser-Use: https://github.com/browser-use/browser-use

MCP: https://github.com/modelcontextprotocol/python-sdk

DOM Extension: https://github.com/kdzwinel/DOMListenerExtension

排名相邻
同类项目