Skip to content

Commit 29c0800

Browse files
committed
fix: resolve lint errors and regenerate docs for CI
1 parent b69327d commit 29c0800

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

docs/tool-reference.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- AUTO GENERATED DO NOT EDIT - run 'npm run docs' to update-->
22

3-
# Chrome DevTools MCP Tool Reference (~6661 cl100k_base tokens)
3+
# Chrome DevTools MCP Tool Reference (~6718 cl100k_base tokens)
44

55
- **[Input automation](#input-automation)** (8 tools)
66
- [`click`](#click)
@@ -172,6 +172,7 @@
172172

173173
- **url** (string) **(required)**: URL to load in a new page.
174174
- **background** (boolean) _(optional)_: Whether to open the page in the background without bringing it to the front. Default is false (foreground).
175+
- **browserContext** (string) _(optional)_: If specified, the page is created in an isolated browser context with the given name. Pages in the same browser context share cookies and storage. Pages in different browser contexts are fully isolated.
175176
- **timeout** (integer) _(optional)_: Maximum wait time in milliseconds. If set to 0, the default timeout will be used.
176177

177178
---

src/DevtoolsUtils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {Mutex} from './Mutex.js';
99
import type {TargetEventEmitter} from './PageCollector.js';
1010
import {DevTools} from './third_party/index.js';
1111
import type {
12-
Browser,
1312
ConsoleMessage,
1413
Page,
1514
Protocol,

src/McpContext.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ export class McpContext implements Context {
195195
this.#devtoolsUniverseManager.dispose();
196196
for (const ctx of this.#browserContexts.values()) {
197197
if (!ctx.closed) {
198-
void ctx.close().catch(() => {});
198+
void ctx.close().catch(() => {
199+
// Swallow errors during cleanup.
200+
});
199201
}
200202
}
201203
this.#browserContexts.clear();

0 commit comments

Comments
 (0)