Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
291 lines (291 loc) · 11.8 KB
/
Copy pathpackage.json
File metadata and controls
291 lines (291 loc) · 11.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
{
"name": "vsc-agentbridge",
"displayName": "VSC AgentBridge",
"description": "Expose your VS Code workspace tools (files, terminal, LSP, diagnostics) to web-based AI assistants that support MCP (GPT, Arena, etc.) via a public HTTPS tunnel.",
"version": "0.1.17",
"publisher": "agentbridge",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/5258MF/AgentBridge"
},
"homepage": "https://github.com/5258MF/AgentBridge#readme",
"bugs": {
"url": "https://github.com/5258MF/AgentBridge/issues"
},
"keywords": [
"mcp",
"chatgpt",
"claude",
"cursor",
"cline",
"tunnel",
"cloudflare",
"ngrok",
"remote-agent",
"vision"
],
"galleryBanner": {
"color": "#0e0e10",
"theme": "dark"
},
"engines": {
"vscode": "^1.95.0"
},
"categories": [
"AI",
"Other"
],
"main": "./dist/extension.js",
"extensionKind": [
"workspace"
],
"icon": "media/icon.png",
"activationEvents": [
"onStartupFinished",
"onCommand:agentbridge.bridge.start",
"onCommand:agentbridge.bridge.stop",
"onCommand:agentbridge.bridge.checkTunnel",
"onCommand:agentbridge.bridge.checkNgrok",
"onCommand:agentbridge.bridge.installCloudflared",
"onCommand:agentbridge.bridge.configure",
"onCommand:agentbridge.bridge.configureNamedTunnel",
"onCommand:agentbridge.bridge.clearNamedTunnelToken",
"onCommand:agentbridge.bridge.setTunnelProvider",
"onCommand:agentbridge.bridge.rotateEndpoint",
"onCommand:agentbridge.bridge.getStatus",
"onCommand:agentbridge.bridge.showOutput",
"onCommand:agentbridge.bridge.openResource",
"onCommand:agentbridge.bridge.openDiff",
"onCommand:agentbridge.bridge.openTerminal",
"onView:agentbridge.bridge.panel"
],
"contributes": {
"jsonValidation": [
{
"fileMatch": ["**/.agentbridge/mcp.json"],
"url": "./schemas/mcp-config.schema.json"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "agentbridge",
"title": "AgentBridge",
"icon": "media/agentbridge.svg"
}
]
},
"views": {
"agentbridge": [
{
"type": "webview",
"id": "agentbridge.bridge.panel",
"name": "Bridge"
}
]
},
"commands": [
{
"command": "agentbridge.bridge.start",
"title": "%agentbridge.command.start.title%",
"icon": "$(radio-tower)"
},
{
"command": "agentbridge.bridge.stop",
"title": "%agentbridge.command.stop.title%",
"icon": "$(debug-stop)"
},
{
"command": "agentbridge.bridge.checkTunnel",
"title": "%agentbridge.command.checkTunnel.title%",
"icon": "$(check)"
},
{
"command": "agentbridge.bridge.installCloudflared",
"title": "%agentbridge.command.installCloudflared.title%",
"icon": "$(cloud-download)"
},
{
"command": "agentbridge.bridge.configureNamedTunnel",
"title": "%agentbridge.command.configureNamedTunnel.title%",
"icon": "$(cloud)"
},
{
"command": "agentbridge.bridge.clearNamedTunnelToken",
"title": "%agentbridge.command.clearNamedTunnelToken.title%",
"icon": "$(clear-all)"
},
{
"command": "agentbridge.bridge.setTunnelProvider",
"title": "%agentbridge.command.setTunnelProvider.title%",
"icon": "$(settings-gear)"
},
{
"command": "agentbridge.bridge.rotateEndpoint",
"title": "%agentbridge.command.rotateEndpoint.title%",
"icon": "$(key)"
},
{
"command": "agentbridge.bridge.showOutput",
"title": "%agentbridge.command.showOutput.title%",
"icon": "$(output)"
},
{
"command": "agentbridge.bridge.configure",
"title": "%agentbridge.command.configureNgrokDomain.title%",
"icon": "$(globe)"
},
{
"command": "agentbridge.bridge.checkNgrok",
"title": "%agentbridge.command.checkNgrok.title%",
"icon": "$(check)"
}
],
"configuration": {
"title": "AgentBridge",
"properties": {
"agentbridge.language": {
"type": "string",
"enum": [
"auto",
"zh-CN",
"en"
],
"enumDescriptions": [
"Follow the VS Code display language.",
"Force AgentBridge's own interface and runtime messages to Simplified Chinese.",
"Force AgentBridge's own interface and runtime messages to English."
],
"default": "auto",
"scope": "application",
"description": "Controls the language of AgentBridge's own panel and runtime messages. VS Code-native command and settings titles continue to follow the VS Code display language."
},
"agentbridge.bridge.ngrokDomain": {
"type": "string",
"default": "",
"scope": "application",
"description": "Reserved ngrok HTTPS hostname used by the Bridge, for example your-name.ngrok-free.dev. Stored as an application-wide user setting so a workspace cannot override the Bridge's public identity."
},
"agentbridge.bridge.cloudflareNamedDomain": {
"type": "string",
"default": "",
"scope": "application",
"description": "Fixed HTTPS hostname configured as a Cloudflare Tunnel published application, for example mcp.example.com. Stored as an application-wide user setting so a workspace cannot override the Bridge's public identity."
},
"agentbridge.bridge.cloudflareNamedLocalPort": {
"type": "integer",
"default": 48271,
"minimum": 1024,
"maximum": 65535,
"scope": "machine",
"description": "Fixed localhost port used by Cloudflare Named Tunnel on this machine. This machine-specific setting is not synchronized or workspace-overridable. Configure the Cloudflare published application Service URL as http://127.0.0.1:<port>."
},
"agentbridge.bridge.managedShell.windows": {
"type": "string",
"default": "",
"scope": "machine-overridable",
"description": "Absolute path to the shell executable that AgentBridge managed PTY terminals will launch on Windows (e.g. C:\\Program Files\\PowerShell\\7\\pwsh.exe for PowerShell 7+, or C:\\Windows\\System32\\cmd.exe for cmd). Leave empty to use the default system Windows PowerShell (powershell.exe). AgentBridge validates the path at apply time and silently falls back to the default with a warning in the panel when the override cannot be launched."
},
"agentbridge.bridge.managedShell.unix": {
"type": "string",
"default": "",
"scope": "machine-overridable",
"description": "Absolute path or PATH-resolvable name of the shell executable that AgentBridge managed PTY terminals will launch on POSIX systems (e.g. /bin/zsh, /usr/bin/fish, or simply bash). Leave empty to use the default /bin/bash (or /bin/sh when bash is unavailable). AgentBridge resolves the binary via PATH when the value is not absolute and silently falls back to the default with a warning in the panel when the override cannot be launched."
},
"agentbridge.bridge.openInternalBrowser": {
"type": "string",
"enum": [
"auto",
"all",
"external"
],
"enumDescriptions": [
"ChatGPT and arena.ai open inside the VS Code Simple Browser; other external links jump to the OS default browser.",
"Every external link opens inside the VS Code Simple Browser, including Cloudflare/ngrok dashboards. OAuth login flows may be blocked by iframe X-Frame-Options restrictions.",
"Every external link jumps to the OS default browser. Equivalent to the pre-stage-14 behavior."
],
"default": "auto",
"scope": "machine-overridable",
"description": "Decides how external URL links clicked in the AgentBridge panel (ChatGPT/Arena buttons, Cloudflare/ngrok dashboard buttons, etc.) are opened."
},
"agentbridge.bridge.tunnelProvider": {
"type": "string",
"enum": [
"cloudflare",
"cloudflare-named",
"ngrok"
],
"enumDescriptions": [
"Cloudflare Quick Tunnel. No account or domain required; the public URL changes after restart.",
"Cloudflare Named Tunnel. Stable hostname; requires a Cloudflare account, managed domain, Tunnel Token, and published application route.",
"ngrok reserved domain. Requires an ngrok account, Authtoken, and configured domain."
],
"default": "cloudflare",
"scope": "application",
"description": "Public tunnel provider used by AgentBridge."
},
"agentbridge.bridge.tunnelProtocol": {
"type": "string",
"enum": [
"auto",
"quic",
"http2"
],
"enumDescriptions": [
"cloudflared chooses the transport itself (QUIC first, HTTP/2 fallback). QUIC handshakes can pass on networks that later drop sustained UDP flows, so this may stay unstable on some campus/corporate networks.",
"Force QUIC over UDP 7844. Fastest when the network allows long-lived UDP flows; rarely survives restrictive networks.",
"Force HTTP/2 over TCP 7844. Recommended on networks where QUIC is unstable or blocked (campus/corporate networks, VPNs). Cloudflare's edge accepts both transports on the same port."
],
"default": "auto",
"scope": "application",
"description": "Transport protocol between cloudflared and the Cloudflare edge. Cloudflare tunnels only (ignored for ngrok). Read when the tunnel process spawns, so changes apply on the next tunnel start or automatic reconnect without restarting the Bridge."
},
"agentbridge.bridge.persistentMode": {
"type": "boolean",
"default": false,
"scope": "application",
"description": "Automatically start the Bridge after the extension activates."
},
"agentbridge.bridge.readOnlyMode": {
"type": "boolean",
"default": false,
"scope": "application",
"description": "Plan mode (read-only). When active, tools that modify files or drive running commands are blocked at call time, and run_command only runs allowlisted read-only commands, tests, and builds. The tool list stays the same, and the change takes effect immediately. Every Bridge start resets this to false (Build mode)."
},
"agentbridge.bridge.trustedBrowserOrigins": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"maxItems": 32,
"default": [],
"scope": "machine",
"description": "Exact browser origins allowed to access the MCP endpoint through CORS, for example chrome-extension://extension-id. Supports http, https, chrome-extension, and moz-extension origins only. Wildcards and URL paths are not allowed. Stored only on this machine; changes apply immediately to subsequent requests."
}
}
}
},
"scripts": {
"build": "node build.mjs",
"build:watch": "node build.mjs --watch",
"test": "node tests/run-tests.mjs",
"tool-catalog": "node tests/run-tests.mjs --match tool-catalog --skip-package --update-catalog"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.12.0",
"@silvia-odwyer/photon-node": "^0.3.4",
"@vscode/ripgrep": "^1.0.4",
"proper-lockfile": "4.1.2"
},
"devDependencies": {
"@types/node": "^22.0.0",
"@types/proper-lockfile": "4.1.4",
"@types/vscode": "^1.95.0",
"@vscode/vsce": "3.9.2",
"esbuild": "^0.28.2",
"typescript": "^5.5.0"
}
}