Skip to content

Commit cb0f182

Browse files
committed
fix: resolve lint errors and regenerate docs for CI
1 parent 4661c7a commit cb0f182

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
@@ -202,7 +202,9 @@ export class McpContext implements Context {
202202
this.#devtoolsUniverseManager.dispose();
203203
for (const ctx of this.#browserContexts.values()) {
204204
if (!ctx.closed) {
205-
void ctx.close().catch(() => {});
205+
void ctx.close().catch(() => {
206+
// Swallow errors during cleanup.
207+
});
206208
}
207209
}
208210
this.#browserContexts.clear();

0 commit comments

Comments
 (0)