Skip to content

Commit 4da8ecd

Browse files
committed
update readme and mcp demo
1 parent 8c5a5f7 commit 4da8ecd

File tree

4 files changed

+50
-31
lines changed

4 files changed

+50
-31
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,30 @@ Here are some tasks you can try with OWL:
422422

423423
OWL's MCP integration provides a standardized way for AI models to interact with various tools and data sources:
424424

425+
Before using MCP, you need to install Node.js first.
426+
### **Install Node.js**
427+
### Windows
428+
429+
Download the official installer: [Node.js](https://nodejs.org/en).
430+
431+
Check "Add to PATH" option during installation.
432+
433+
### Linux
434+
```bash
435+
sudo apt update
436+
sudo apt install nodejs npm -y
437+
```
438+
### Mac
439+
```bash
440+
brew install node
441+
```
442+
443+
### **Install Playwright MCP Service**
444+
```bash
445+
npm install -g @executeautomation/playwright-mcp-server
446+
npx playwright install-deps
447+
```
448+
425449
Try our comprehensive MCP example in `examples/run_mcp.py` to see these capabilities in action!
426450

427451
## Available Toolkits

README_zh.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,29 @@ OWL 将自动调用与文档相关的工具来处理文件并提取答案。
410410
## 模型上下文协议(MCP)
411411

412412
OWL 的 MCP 集成为 AI 模型与各种工具和数据源的交互提供了标准化的方式。
413+
在使用MCP前,需要先安装Node.js。
414+
### **安装 Node.js**
415+
### Windows
416+
417+
下载官方安装包:[Node.js](https://nodejs.org/zh-cn)
418+
419+
安装时,勾选 "Add to PATH" 选项。
420+
421+
### Linux
422+
```bash
423+
sudo apt update
424+
sudo apt install nodejs npm -y
425+
```
426+
### Mac
427+
```bash
428+
brew install node
429+
```
430+
431+
### **安装 MCP 服务**
432+
```bash
433+
npm install -g @executeautomation/playwright-mcp-server
434+
npx playwright install-deps
435+
```
413436

414437
查看我们的综合示例 `examples/run_mcp.py` 来体验这些功能!
415438

examples/mcp_servers_config.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
{
22
"mcpServers": {
3-
"desktop-commander": {
4-
"command": "npx",
5-
"args": [
6-
"-y",
7-
"@wonderwhy-er/desktop-commander",
8-
"--force-file-protocol"
9-
]
10-
},
113
"playwright": {
124
"command": "npx",
135
"args": ["-y", "@executeautomation/playwright-mcp-server"]

examples/run_mcp.py

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,8 @@
2222
2323
2. MCP Server Setup:
2424
25-
2.1 MCP Desktop Commander (File System Service):
26-
Prerequisites: Node.js and npm
27-
```bash
28-
# Install MCP service
29-
npx -y @smithery/cli install @wonderwhy-er/desktop-commander --client claude
30-
npx -y @wonderwhy-er/desktop-commander setup --force-file-protocol
31-
32-
# Configure in owl/examples/mcp_servers_config.json:
33-
{
34-
"desktop-commander": {
35-
"command": "npx",
36-
"args": [
37-
"-y",
38-
"@wonderwhy-er/desktop-commander",
39-
"--force-file-protocol"
40-
]
41-
}
42-
}
43-
```
4425
45-
2.2 MCP Playwright Service:
26+
2.1 MCP Playwright Service:
4627
```bash
4728
# Install MCP service
4829
npm install -g @executeautomation/playwright-mcp-server
@@ -59,7 +40,7 @@
5940
}
6041
```
6142
62-
2.3 MCP Fetch Service (Optional - for better retrieval):
43+
2.2 MCP Fetch Service (Optional - for better retrieval):
6344
```bash
6445
# Install MCP service
6546
pip install mcp-server-fetch
@@ -168,8 +149,7 @@ async def main():
168149
question = (
169150
"I'd like a academic report about Andrew Ng, including "
170151
"his research direction, published papers (At least 3),"
171-
" institutions, etc.Then organize the report in Markdown "
172-
"format and save it to my desktop"
152+
" institutions, etc. "
173153
)
174154

175155
# Connect to all MCP toolkits

0 commit comments

Comments
 (0)