@bsbofmusic/agent-browser-mcp-opencode 0.1.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/README.md +246 -0
- package/THIRD_PARTY_NOTICES.md +291 -0
- package/index.js +186 -0
- package/package.json +33 -18
- package/src/detect.js +286 -0
- package/src/doctor.js +387 -0
- package/src/ensure.js +425 -0
- package/src/tools/actions/click.js +77 -0
- package/src/tools/actions/close.js +45 -0
- package/src/tools/actions/fill.js +77 -0
- package/src/tools/actions/find.js +107 -0
- package/src/tools/actions/getText.js +70 -0
- package/src/tools/actions/open.js +96 -0
- package/src/tools/actions/screenshot.js +81 -0
- package/src/tools/actions/snapshot.js +94 -0
- package/src/tools/actions/tab.js +91 -0
- package/src/tools/actions/wait.js +85 -0
- package/src/tools/doctor.js +42 -0
- package/src/tools/ensure.js +46 -0
- package/src/tools/exec.js +120 -0
- package/src/tools/help.js +76 -0
- package/src/tools/index.js +50 -0
- package/src/tools/version.js +83 -0
- package/dist/bootstrap.js +0 -72
- package/dist/index.js +0 -121
- package/src/bootstrap.ts +0 -75
- package/src/index.ts +0 -162
- package/tsconfig.json +0 -14
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [1.0.0] - 2026-02-27
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- Initial release
|
|
9
|
+
- MCP server implementation for agent-browser
|
|
10
|
+
- Core tools: browser_ensure, browser_doctor, browser_help, browser_version, browser_exec
|
|
11
|
+
- Structured actions: browser_open, browser_snapshot, browser_click, browser_fill, browser_screenshot, browser_close, browser_get_text, browser_find, browser_wait, browser_tab
|
|
12
|
+
- Bootstrap auto-installation on startup
|
|
13
|
+
- ensureLatest() for automatic updates
|
|
14
|
+
- Process lock to prevent concurrent installations
|
|
15
|
+
- Full environment detection (OS, runtime, network, permissions)
|
|
16
|
+
- Doctor diagnostics covering 7 issue categories
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
- One-click deployment via npx
|
|
20
|
+
- Idempotent ensure operation
|
|
21
|
+
- Structured output with logs and nextSteps
|
|
22
|
+
- Support for ALWAYS_LATEST environment variable
|
|
23
|
+
- Exec tool for full CLI capability passthrough
|
|
24
|
+
|
|
25
|
+
### Dependencies
|
|
26
|
+
- @modelcontextprotocol/server-stdio: ^1.0.0
|
|
27
|
+
- execa: ^9.5.2
|
|
28
|
+
- conf: ^12.0.0
|
|
29
|
+
- semver: ^7.7.1
|
package/README.md
ADDED
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
# @bsbofmusic/agent-browser-mcp-opencode
|
|
2
|
+
|
|
3
|
+
MCP server for Vercel agent-browser - browser automation CLI for AI agents.
|
|
4
|
+
|
|
5
|
+
## 什么是 MCP Server
|
|
6
|
+
|
|
7
|
+
MCP (Model Context Protocol) Server 是一个中间层,允许 AI 助手(如 OpenCode、Claude Code 等)通过标准化接口调用外部工具。
|
|
8
|
+
|
|
9
|
+
## 这是什么
|
|
10
|
+
|
|
11
|
+
本项目是对 [vercel-labs/agent-browser](https://github.com/vercel-labs/agent-browser) 的 MCP 封装(Wrapper),通过 MCP 接口提供浏览器自动化能力。
|
|
12
|
+
|
|
13
|
+
## 功能特性
|
|
14
|
+
|
|
15
|
+
- **一键部署**: 启用 MCP 后自动安装 agent-browser 和 Chromium
|
|
16
|
+
- **自检自愈**: 内置 `browser_ensure` 和 `browser_doctor` 工具,自动检测和修复问题
|
|
17
|
+
- **自动更新**: 支持 `always-latest` 模式,每次调用前检查更新
|
|
18
|
+
- **结构化工具**: 提供常用动作的封装(open、snapshot、click、fill 等)
|
|
19
|
+
- **通用透传**: 通过 `browser_exec` 执行任意 agent-browser 命令
|
|
20
|
+
|
|
21
|
+
## 一键启用
|
|
22
|
+
|
|
23
|
+
### OpenCode 配置
|
|
24
|
+
|
|
25
|
+
在 `opencode.json` 中添加:
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"mcp": {
|
|
30
|
+
"agent-browser-mcp-opencode": {
|
|
31
|
+
"command": ["npx", "-y", "@bsbofmusic/agent-browser-mcp-opencode"],
|
|
32
|
+
"enabled": true,
|
|
33
|
+
"type": "local"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### 直接运行
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npx @bsbofmusic/agent-browser-mcp-opencode
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### 全局安装
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
npm install -g @bsbofmusic/agent-browser-mcp-opencode
|
|
49
|
+
agent-browser-mcp-opencode
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## 工具列表
|
|
53
|
+
|
|
54
|
+
### 核心工具
|
|
55
|
+
|
|
56
|
+
| 工具名 | 描述 |
|
|
57
|
+
|--------|------|
|
|
58
|
+
| `browser_ensure` | 手动触发全量自愈(安装/修复/升级) |
|
|
59
|
+
| `browser_doctor` | 诊断环境问题并输出修复建议 |
|
|
60
|
+
| `browser_help` | 列出所有可用命令 |
|
|
61
|
+
| `browser_version` | 显示版本信息 |
|
|
62
|
+
| `browser_exec` | 执行任意 agent-browser CLI 命令 |
|
|
63
|
+
|
|
64
|
+
### 结构化动作
|
|
65
|
+
|
|
66
|
+
| 工具名 | 描述 |
|
|
67
|
+
|--------|------|
|
|
68
|
+
| `browser_open` | 导航到 URL |
|
|
69
|
+
| `browser_snapshot` | 获取页面可访问性树(带 refs) |
|
|
70
|
+
| `browser_click` | 点击元素 |
|
|
71
|
+
| `browser_fill` | 填写表单字段 |
|
|
72
|
+
| `browser_screenshot` | 截图 |
|
|
73
|
+
| `browser_close` | 关闭浏览器 |
|
|
74
|
+
| `browser_get_text` | 获取元素文本 |
|
|
75
|
+
| `browser_find` | 语义定位查找元素 |
|
|
76
|
+
| `browser_wait` | 等待元素/文本/URL/时间 |
|
|
77
|
+
| `browser_tab` | 管理浏览器标签页 |
|
|
78
|
+
|
|
79
|
+
## 使用示例
|
|
80
|
+
|
|
81
|
+
### 基本流程
|
|
82
|
+
|
|
83
|
+
```json
|
|
84
|
+
{
|
|
85
|
+
"name": "browser_open",
|
|
86
|
+
"arguments": {"url": "https://example.com"}
|
|
87
|
+
}
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
```json
|
|
91
|
+
{
|
|
92
|
+
"name": "browser_snapshot",
|
|
93
|
+
"arguments": {"interactive": true}
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
```json
|
|
98
|
+
{
|
|
99
|
+
"name": "browser_click",
|
|
100
|
+
"arguments": {"selector": "@e1"}
|
|
101
|
+
}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### 使用透传
|
|
105
|
+
|
|
106
|
+
```json
|
|
107
|
+
{
|
|
108
|
+
"name": "browser_exec",
|
|
109
|
+
"arguments": {
|
|
110
|
+
"command": "open example.com && agent-browser find role button click --name Submit"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## 自动更新策略
|
|
116
|
+
|
|
117
|
+
### 环境变量
|
|
118
|
+
|
|
119
|
+
| 变量 | 默认值 | 描述 |
|
|
120
|
+
|------|--------|------|
|
|
121
|
+
| `ALWAYS_LATEST` | `1` | 每次调用前检查更新 |
|
|
122
|
+
| `UPDATE_STRATEGY` | `simple` | 更新策略: `atomic` 或 `simple` |
|
|
123
|
+
| `LOG_LEVEL` | `info` | 日志级别: `error`, `warn`, `info`, `debug` |
|
|
124
|
+
| `CACHE_DIR` | 系统 temp | 缓存目录 |
|
|
125
|
+
| `RUNTIME_DIR` | `~/.agent-browser` | 运行时目录 |
|
|
126
|
+
|
|
127
|
+
### Atomic 更新策略
|
|
128
|
+
|
|
129
|
+
使用双目录(`runtime_active/` + `runtime_staging/`)实现原子更新:
|
|
130
|
+
1. 在 staging 目录执行更新
|
|
131
|
+
2. 验证成功后切换到新版本
|
|
132
|
+
3. 失败则回滚到原版本
|
|
133
|
+
|
|
134
|
+
### Simple 更新策略
|
|
135
|
+
|
|
136
|
+
直接覆盖安装,不支持回滚。
|
|
137
|
+
|
|
138
|
+
## 运行目录
|
|
139
|
+
|
|
140
|
+
- **配置目录**: `~/.agent-browser/`
|
|
141
|
+
- **状态文件**: `~/.agent-browser/sessions/`
|
|
142
|
+
- **加密密钥**: `~/.agent-browser/.encryption-key`
|
|
143
|
+
|
|
144
|
+
这些目录会在首次运行时自动创建。
|
|
145
|
+
|
|
146
|
+
## 常见错误与排障
|
|
147
|
+
|
|
148
|
+
### 运行 `browser_doctor` 获取诊断信息
|
|
149
|
+
|
|
150
|
+
```json
|
|
151
|
+
{
|
|
152
|
+
"name": "browser_doctor"
|
|
153
|
+
}
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
输出包含:
|
|
157
|
+
- 问题分类(网络/权限/依赖/系统库/可执行文件/浏览器)
|
|
158
|
+
- 严重程度(critical/high/medium)
|
|
159
|
+
- 修复建议(nextSteps)
|
|
160
|
+
|
|
161
|
+
### 常见问题
|
|
162
|
+
|
|
163
|
+
1. **agent-browser 未安装**
|
|
164
|
+
- 运行: `browser_ensure`
|
|
165
|
+
- 或: `npx agent-browser install`
|
|
166
|
+
|
|
167
|
+
2. **Chromium 未安装**
|
|
168
|
+
- 运行: `npx agent-browser install`
|
|
169
|
+
|
|
170
|
+
3. **权限错误**
|
|
171
|
+
- 检查 npm 全局目录权限
|
|
172
|
+
- 考虑使用 npx 而非全局安装
|
|
173
|
+
|
|
174
|
+
4. **网络问题**
|
|
175
|
+
- 配置 npm 镜像: `npm config set registry https://registry.npmmirror.com`
|
|
176
|
+
- 检查代理设置: `npm config get proxy`
|
|
177
|
+
|
|
178
|
+
## 验证计划
|
|
179
|
+
|
|
180
|
+
### 6.1 一键部署
|
|
181
|
+
```bash
|
|
182
|
+
npx @bsbofmusic/agent-browser-mcp-opencode
|
|
183
|
+
```
|
|
184
|
+
预期: 自动完成依赖安装,无需手动操作
|
|
185
|
+
|
|
186
|
+
### 6.2 完美复刻
|
|
187
|
+
使用 5+ 核心命令验证:
|
|
188
|
+
- `browser_open` - 导航
|
|
189
|
+
- `browser_snapshot` - 获取树
|
|
190
|
+
- `browser_click` - 点击
|
|
191
|
+
- `browser_fill` - 填写
|
|
192
|
+
- `browser_screenshot` - 截图
|
|
193
|
+
- `browser_exec` - 透传
|
|
194
|
+
|
|
195
|
+
### 6.3 稳定健全
|
|
196
|
+
- `browser_doctor` 输出 7 类问题分类
|
|
197
|
+
- `browser_ensure` 幂等可重复执行
|
|
198
|
+
- 失败时返回结构化错误+nextSteps
|
|
199
|
+
|
|
200
|
+
### 6.4 自动更新
|
|
201
|
+
- `browser_version` 显示版本信息
|
|
202
|
+
- `ALWAYS_LATEST=1` 时每次调用前检查更新
|
|
203
|
+
|
|
204
|
+
### 6.5 部署即用
|
|
205
|
+
- MCP 启动后无需额外配置
|
|
206
|
+
- 重启后自动恢复可用状态
|
|
207
|
+
|
|
208
|
+
### 6.6 失败场景
|
|
209
|
+
- 断网: 返回网络错误+nextSteps
|
|
210
|
+
- 无权限: 返回权限错误+nextSteps
|
|
211
|
+
- 缺依赖: 返回依赖错误+nextSteps
|
|
212
|
+
|
|
213
|
+
## 合规与封装声明
|
|
214
|
+
|
|
215
|
+
### 封装声明 / Wrapper Notice
|
|
216
|
+
|
|
217
|
+
本项目是对上游项目 **agent-browser** 的 MCP 封装(wrapper),用于通过 MCP 接口调用其功能。
|
|
218
|
+
|
|
219
|
+
- 上游项目地址: https://github.com/vercel-labs/agent-browser
|
|
220
|
+
- 本项目不是上游项目的官方发布
|
|
221
|
+
- 上游项目的名称、商标与版权归其各自权利人所有
|
|
222
|
+
- 上游项目按其许可证条款授权使用;本项目已在 THIRD_PARTY_NOTICES.md 中包含上游许可证与必要声明
|
|
223
|
+
|
|
224
|
+
### 上游许可证
|
|
225
|
+
|
|
226
|
+
agent-browser 使用 **Apache-2.0** 许可证。
|
|
227
|
+
|
|
228
|
+
详见 [THIRD_PARTY_NOTICES.md](./THIRD_PARTY_NOTICES.md)
|
|
229
|
+
|
|
230
|
+
## 版本历史
|
|
231
|
+
|
|
232
|
+
详见 [CHANGELOG.md](./CHANGELOG.md)
|
|
233
|
+
|
|
234
|
+
## 许可证
|
|
235
|
+
|
|
236
|
+
Apache-2.0 License
|
|
237
|
+
|
|
238
|
+
Copyright (c) 2024-2025 bsbofmusic
|
|
239
|
+
|
|
240
|
+
This project includes code from the upstream project agent-browser which is licensed under Apache-2.0.
|
|
241
|
+
|
|
242
|
+
## 支持
|
|
243
|
+
|
|
244
|
+
如有问题,请提交 Issue:
|
|
245
|
+
- MCP 问题: https://github.com/issues
|
|
246
|
+
- agent-browser 问题: https://github.com/vercel-labs/agent-browser/issues
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
# Third Party Notices
|
|
2
|
+
|
|
3
|
+
This file contains third party copyright notices and license information for dependencies used in this project.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## agent-browser
|
|
8
|
+
|
|
9
|
+
**Project**: https://github.com/vercel-labs/agent-browser
|
|
10
|
+
**License**: Apache-2.0
|
|
11
|
+
**Copyright**: Copyright (c) Vercel Inc.
|
|
12
|
+
|
|
13
|
+
### Apache-2.0 License
|
|
14
|
+
|
|
15
|
+
Apache License
|
|
16
|
+
Version 2.0, January 2004
|
|
17
|
+
http://www.apache.org/licenses/
|
|
18
|
+
|
|
19
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
20
|
+
|
|
21
|
+
1. Definitions.
|
|
22
|
+
|
|
23
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
24
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
25
|
+
|
|
26
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
27
|
+
the copyright owner that is granting the License.
|
|
28
|
+
|
|
29
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
30
|
+
other entities that control, are controlled by, or are under common
|
|
31
|
+
control with that entity. For the purposes of this definition,
|
|
32
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
33
|
+
direction or management of such entity, whether by contract or
|
|
34
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
35
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
36
|
+
|
|
37
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
38
|
+
exercising permissions granted by this License.
|
|
39
|
+
|
|
40
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
41
|
+
including but not limited to software source code, documentation
|
|
42
|
+
source, and configuration files.
|
|
43
|
+
|
|
44
|
+
"Object" form shall mean any form resulting from mechanical
|
|
45
|
+
transformation or translation of a Source form, including but
|
|
46
|
+
not limited to compiled object code, generated documentation,
|
|
47
|
+
and conversions to other media types.
|
|
48
|
+
|
|
49
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
50
|
+
Object form, made available under the License, as indicated by a
|
|
51
|
+
copyright notice that is included in or attached to the work
|
|
52
|
+
(an example is provided in the Appendix below).
|
|
53
|
+
|
|
54
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
55
|
+
form, that is based on (or derived from) the Work and for which the
|
|
56
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
57
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
58
|
+
of this License, Derivative Works shall not include works that remain
|
|
59
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
60
|
+
the Work and Derivative Works thereof.
|
|
61
|
+
|
|
62
|
+
"Contribution" shall mean any work of authorship, including
|
|
63
|
+
the original version of the Work and any modifications or additions
|
|
64
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
65
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
66
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
67
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
68
|
+
means any form of electronic, verbal, or written communication sent
|
|
69
|
+
to the Licensor or its representatives, including but not limited to
|
|
70
|
+
communication on electronic mailing lists, source code control systems,
|
|
71
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
72
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
73
|
+
excluding communication that is conspicuously marked or otherwise
|
|
74
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
75
|
+
|
|
76
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
77
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
78
|
+
subsequently incorporated within the Work.
|
|
79
|
+
|
|
80
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
81
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
82
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
83
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
84
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
85
|
+
Work and such Derivative Works in Source or Object form.
|
|
86
|
+
|
|
87
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
88
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
89
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
90
|
+
(except as stated in this section) patent license to make, have made,
|
|
91
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
92
|
+
where such license applies only to those patent claims licensable
|
|
93
|
+
by such Contributor that are necessarily infringed by their
|
|
94
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
95
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
96
|
+
institute patent litigation against any entity (including a
|
|
97
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
98
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
99
|
+
or contributory patent infringement, then any patent licenses
|
|
100
|
+
granted to You under this License for that Work shall terminate
|
|
101
|
+
as of the date such litigation is filed.
|
|
102
|
+
|
|
103
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
104
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
105
|
+
modifications, and in Source or Object form, provided that You
|
|
106
|
+
meet the following conditions:
|
|
107
|
+
|
|
108
|
+
(a) You must give any other recipients of the Work or
|
|
109
|
+
Derivative Works a copy of this License; and
|
|
110
|
+
|
|
111
|
+
(b) You must cause any modified files to carry prominent notices
|
|
112
|
+
stating that You changed the files; and
|
|
113
|
+
|
|
114
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
115
|
+
that You distribute, all copyright, patent, trademark, and
|
|
116
|
+
attribution notices from the Source form of the Work,
|
|
117
|
+
excluding those notices that do not pertain to any part of
|
|
118
|
+
the Derivative Works; and
|
|
119
|
+
|
|
120
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
121
|
+
distribution, then any Derivative Works that You distribute must
|
|
122
|
+
include a readable copy of the attribution notices contained
|
|
123
|
+
within such NOTICE file, excluding those notices that do not
|
|
124
|
+
pertain to any part of the Derivative Works, in at least one
|
|
125
|
+
of the following places: within a NOTICE text file distributed
|
|
126
|
+
as part of the Derivative Works; within the Source form or
|
|
127
|
+
documentation, if provided along with the Derivative Works; or,
|
|
128
|
+
within a display generated by the Derivative Works, if and
|
|
129
|
+
wherever such third-party notices normally appear. The contents
|
|
130
|
+
of the NOTICE file are for informational purposes only and
|
|
131
|
+
do not modify the License. You may add Your own attribution
|
|
132
|
+
notices within Derivative Works that You distribute, alongside
|
|
133
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
134
|
+
that such additional attribution notices cannot be construed
|
|
135
|
+
as modifying the License.
|
|
136
|
+
|
|
137
|
+
You may add Your own copyright statement to Your modifications and
|
|
138
|
+
may provide additional or different license terms and conditions
|
|
139
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
140
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
141
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
142
|
+
the conditions stated in this License.
|
|
143
|
+
|
|
144
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
145
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
146
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
147
|
+
this License, without any additional terms or conditions.
|
|
148
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
149
|
+
the terms of any separate license agreement you may have executed
|
|
150
|
+
with Licensor regarding such Contributions.
|
|
151
|
+
|
|
152
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
153
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
154
|
+
except as required for reasonable and customary use in describing the
|
|
155
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
156
|
+
|
|
157
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
158
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
159
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
160
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
161
|
+
implied, including, without limitation, any warranties or conditions
|
|
162
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
163
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
164
|
+
appropriateness of using or redistributing the Work and assume any
|
|
165
|
+
risks associated with Your exercise of permissions under this License.
|
|
166
|
+
|
|
167
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
168
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
169
|
+
unless required by applicable law (such as deliberate and grossly
|
|
170
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
171
|
+
liable to You for damages, including any direct, indirect, special,
|
|
172
|
+
incidental, or consequential damages of any character arising as a
|
|
173
|
+
result of this License or out of the use or inability to use the
|
|
174
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
175
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
176
|
+
other commercial damages or losses), even if such Contributor
|
|
177
|
+
has been advised of the possibility of such damages.
|
|
178
|
+
|
|
179
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
180
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
181
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
182
|
+
or other liability obligations and/or rights consistent with this
|
|
183
|
+
License. However, in accepting such obligations, You may act only
|
|
184
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
185
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
186
|
+
defend, and hold each Contributor harmless for any liability
|
|
187
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
188
|
+
of your accepting any such warranty or additional liability.
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
## @modelcontextprotocol/server-stdio
|
|
193
|
+
|
|
194
|
+
**Project**: https://github.com/modelcontextprotocol/modelcontextprotocol
|
|
195
|
+
**License**: MIT
|
|
196
|
+
**Copyright**: Anthropic Inc.
|
|
197
|
+
|
|
198
|
+
MIT License
|
|
199
|
+
|
|
200
|
+
Copyright (c) 2024 Anthropic Inc.
|
|
201
|
+
|
|
202
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
203
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
204
|
+
in the Software without restriction, including without limitation the rights
|
|
205
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
206
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
207
|
+
furnished to do so, subject to the following conditions:
|
|
208
|
+
|
|
209
|
+
The above copyright notice and this permission notice shall be included in all
|
|
210
|
+
copies or substantial portions of the Software.
|
|
211
|
+
|
|
212
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
213
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
214
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
215
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
216
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
217
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
218
|
+
SOFTWARE.
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## execa
|
|
223
|
+
|
|
224
|
+
**Project**: https://github.com/sindresorhus/execa
|
|
225
|
+
**License**: MIT
|
|
226
|
+
**Copyright**: Copyright (c) Sindre Sorhus
|
|
227
|
+
|
|
228
|
+
MIT License
|
|
229
|
+
|
|
230
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
231
|
+
|
|
232
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
233
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
234
|
+
in the Software without restriction, including without limitation the rights
|
|
235
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
236
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
237
|
+
furnished to do so, subject to the following conditions:
|
|
238
|
+
|
|
239
|
+
The above copyright notice and this permission notice shall be included in all
|
|
240
|
+
copies or substantial portions of the Software.
|
|
241
|
+
|
|
242
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
243
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
244
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
245
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
246
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
247
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
248
|
+
SOFTWARE.
|
|
249
|
+
|
|
250
|
+
---
|
|
251
|
+
|
|
252
|
+
## conf
|
|
253
|
+
|
|
254
|
+
**Project**: https://github.com/sindresorhus/conf
|
|
255
|
+
**License**: MIT
|
|
256
|
+
**Copyright**: Copyright (c) Sindre Sorhus
|
|
257
|
+
|
|
258
|
+
MIT License - see execa section
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
## semver
|
|
263
|
+
|
|
264
|
+
**Project**: https://github.com/npm/node-semver
|
|
265
|
+
**License**: ISC
|
|
266
|
+
**Copyright**: Copyright (c) Isaac Z. Schlueter
|
|
267
|
+
|
|
268
|
+
ISC License
|
|
269
|
+
|
|
270
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
271
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
272
|
+
copyright notice and this permission notice appear in all copies.
|
|
273
|
+
|
|
274
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
275
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
276
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
277
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
278
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
279
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
280
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
281
|
+
|
|
282
|
+
---
|
|
283
|
+
|
|
284
|
+
## 封装声明
|
|
285
|
+
|
|
286
|
+
本项目 `@bsbofmusic/agent-browser-mcp-opencode` 是对上游项目 [agent-browser](https://github.com/vercel-labs/agent-browser) 的 MCP 封装。
|
|
287
|
+
|
|
288
|
+
- 本项目不是上游项目的官方发布
|
|
289
|
+
- 上游项目的名称、商标与版权归其各自权利人所有
|
|
290
|
+
- 上游项目按 Apache-2.0 许可证授权使用
|
|
291
|
+
- 本项目包含上述许可证的完整文本
|