@extension.dev/mcp 10.10.10 → 10.10.12
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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +44 -0
- package/README.md +2 -2
- package/claude/rules/mcp-tools.md +9 -9
- package/dist/module.js +470 -87
- package/dist/src/lib/artifacts-api.d.ts +1 -0
- package/dist/src/lib/cdp-devtools.d.ts +4 -0
- package/dist/src/lib/cdp-extension-page.d.ts +12 -0
- package/dist/src/lib/common-schema.d.ts +1 -1
- package/dist/src/lib/exec.d.ts +1 -0
- package/dist/src/lib/process-identity.d.ts +6 -0
- package/dist/src/lib/process-manager.d.ts +1 -1
- package/dist/src/lib/registry.d.ts +3 -0
- package/dist/src/tools/assert.d.ts +1 -1
- package/dist/src/tools/dom-snapshot.d.ts +1 -1
- package/dist/src/tools/eval.d.ts +1 -1
- package/dist/src/tools/inspect-gecko.d.ts +1 -0
- package/dist/src/tools/logs-filter.d.ts +1 -0
- package/dist/src/tools/open.d.ts +1 -1
- package/dist/src/tools/reload.d.ts +1 -1
- package/dist/src/tools/stop.d.ts +1 -0
- package/dist/src/tools/storage.d.ts +1 -1
- package/package.json +7 -3
- package/server.json +2 -2
|
@@ -7,6 +7,8 @@ export type DevToolsPanelOutcome = {
|
|
|
7
7
|
targetId: string;
|
|
8
8
|
url: string;
|
|
9
9
|
} | null;
|
|
10
|
+
panelTargetInferred?: boolean;
|
|
11
|
+
panelFrameCandidates?: number;
|
|
10
12
|
panels: string[];
|
|
11
13
|
reloadedInspected: boolean;
|
|
12
14
|
} | {
|
|
@@ -15,6 +17,8 @@ export type DevToolsPanelOutcome = {
|
|
|
15
17
|
reason: string;
|
|
16
18
|
devtoolsTargetId?: string;
|
|
17
19
|
panels?: string[];
|
|
20
|
+
registryUnreadable?: string;
|
|
21
|
+
devtoolsPageLoaded?: boolean;
|
|
18
22
|
};
|
|
19
23
|
export declare function panelIdPrefix(extensionId: string): string;
|
|
20
24
|
export declare function panelTitleFromId(panelId: string, extensionId: string): string;
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { type PageTarget } from "./cdp-targets";
|
|
2
|
+
type RemoteObject = {
|
|
3
|
+
type?: string;
|
|
4
|
+
subtype?: string;
|
|
5
|
+
objectId?: string;
|
|
6
|
+
value?: unknown;
|
|
7
|
+
description?: string;
|
|
8
|
+
unserializableValue?: string;
|
|
9
|
+
};
|
|
2
10
|
export type ExtensionPageEval = {
|
|
3
11
|
ok: true;
|
|
4
12
|
value: unknown;
|
|
13
|
+
note?: string;
|
|
5
14
|
} | {
|
|
6
15
|
ok: false;
|
|
7
16
|
message: string;
|
|
@@ -10,6 +19,7 @@ export type ExtensionPageEval = {
|
|
|
10
19
|
};
|
|
11
20
|
export declare function matchExtensionPageTargets(targets: PageTarget[], wantedUrl: string): PageTarget[];
|
|
12
21
|
export declare const WORKER_TARGET_TYPES: Set<string>;
|
|
22
|
+
export declare const BACKGROUND_TARGET_TYPES: Set<string>;
|
|
13
23
|
export type TargetsRead<T> = {
|
|
14
24
|
targets: T[];
|
|
15
25
|
} | {
|
|
@@ -39,6 +49,7 @@ export type WorkerWake = {
|
|
|
39
49
|
export declare function wakeExtensionWorker(port: number, extensionId: string): Promise<WorkerWake>;
|
|
40
50
|
export declare function readExtensionPageTargets(port: number, wantedUrl: string): Promise<TargetsRead<PageTarget>>;
|
|
41
51
|
export declare function findExtensionPageTargets(port: number, wantedUrl: string): Promise<PageTarget[]>;
|
|
52
|
+
export declare function remoteValueNote(result: RemoteObject | undefined): string | undefined;
|
|
42
53
|
export declare function evaluateOnExtensionPage(port: number, targetId: string, expression: string, timeoutMs?: number): Promise<ExtensionPageEval>;
|
|
43
54
|
export type SidePanelGestureOutcome = {
|
|
44
55
|
opened: true;
|
|
@@ -49,3 +60,4 @@ export type SidePanelGestureOutcome = {
|
|
|
49
60
|
reason: string;
|
|
50
61
|
};
|
|
51
62
|
export declare function openSidePanelWithSyntheticGesture(port: number, hostUrl: string, excludeTargetIds?: ReadonlySet<string>): Promise<SidePanelGestureOutcome>;
|
|
63
|
+
export {};
|
|
@@ -15,7 +15,7 @@ export declare const SESSION_BROWSER: {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const CALL_TIMEOUT: {
|
|
17
17
|
readonly type: "number";
|
|
18
|
-
readonly description: "Command timeout in ms
|
|
18
|
+
readonly description: "Command timeout in ms. When omitted, the default depends on the route: 30000 through the dev session's control channel, 10000 over the Firefox debugger protocol, and 15000 per command over the Chromium debug port.";
|
|
19
19
|
};
|
|
20
20
|
export declare const API_BASE: {
|
|
21
21
|
readonly type: "string";
|
package/dist/src/lib/exec.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export type PidState = "alive" | "dead" | "foreign";
|
|
2
2
|
export declare const PLAUSIBLE_SESSION_BINARY: RegExp;
|
|
3
|
+
export interface WindowsProcessRow {
|
|
4
|
+
pid: number;
|
|
5
|
+
name: string;
|
|
6
|
+
commandLine: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function readWindowsProcessTable(): WindowsProcessRow[] | null;
|
|
3
9
|
export declare function processCommand(pid: number): string;
|
|
4
10
|
export declare function pidState(pid: number): PidState;
|
|
5
11
|
export declare function describeForeignPid(pid: number): string;
|
|
@@ -6,7 +6,7 @@ export declare function readSessionMarkers(): {
|
|
|
6
6
|
unreadable: string | null;
|
|
7
7
|
};
|
|
8
8
|
export declare function listSessionMarkers(): ProcessInfo[];
|
|
9
|
-
export declare function registerSession(info: ProcessInfo):
|
|
9
|
+
export declare function registerSession(info: ProcessInfo): string | null;
|
|
10
10
|
export declare function sessionSinceMs(projectPath: string, browser: string): number | null;
|
|
11
11
|
export declare function getSession(projectPath: string, browser: string): ProcessInfo | undefined;
|
|
12
12
|
export declare function findSessionInfo(projectPath: string, browser: string): ProcessInfo | undefined;
|
|
@@ -28,6 +28,9 @@ export type RegistryFetchResult<T> = {
|
|
|
28
28
|
ok: true;
|
|
29
29
|
json: T;
|
|
30
30
|
} | RegistryFetchRefusal;
|
|
31
|
+
export declare function channelsShapeProblem(json: unknown): string | null;
|
|
32
|
+
export declare function buildIndexShapeProblem(json: unknown): string | null;
|
|
33
|
+
export declare function requireShape<T>(read: RegistryFetchResult<T>, problem: (json: unknown) => string | null): RegistryFetchResult<T>;
|
|
31
34
|
export declare function fetchRegistryJson<T = unknown>(url: string, fetchImpl?: typeof fetch, options?: {
|
|
32
35
|
ref?: ProjectRef | null;
|
|
33
36
|
api?: string;
|
|
@@ -28,7 +28,7 @@ export declare const schema: {
|
|
|
28
28
|
};
|
|
29
29
|
timeout: {
|
|
30
30
|
readonly type: "number";
|
|
31
|
-
readonly description: "Command timeout in ms
|
|
31
|
+
readonly description: "Command timeout in ms. When omitted, the default depends on the route: 30000 through the dev session's control channel, 10000 over the Firefox debugger protocol, and 15000 per command over the Chromium debug port.";
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
required: string[];
|
|
@@ -60,7 +60,7 @@ export declare const schema: {
|
|
|
60
60
|
};
|
|
61
61
|
timeout: {
|
|
62
62
|
readonly type: "number";
|
|
63
|
-
readonly description: "Command timeout in ms
|
|
63
|
+
readonly description: "Command timeout in ms. When omitted, the default depends on the route: 30000 through the dev session's control channel, 10000 over the Firefox debugger protocol, and 15000 per command over the Chromium debug port.";
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
required: string[];
|
package/dist/src/tools/eval.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export declare const schema: {
|
|
|
33
33
|
};
|
|
34
34
|
timeout: {
|
|
35
35
|
readonly type: "number";
|
|
36
|
-
readonly description: "Command timeout in ms
|
|
36
|
+
readonly description: "Command timeout in ms. When omitted, the default depends on the route: 30000 through the dev session's control channel, 10000 over the Firefox debugger protocol, and 15000 per command over the Chromium debug port.";
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
39
|
required: string[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { surfaceForExtensionUrl } from "../lib/extension-surfaces";
|
|
2
2
|
export { surfaceForExtensionUrl };
|
|
3
|
+
export declare function matchPatternRegexSource(pattern: string): string;
|
|
3
4
|
export declare function executeScriptExpression(urlFilter: string | undefined, code: string, tabId?: number): string;
|
|
4
5
|
export declare function inspectViaBridge(args: {
|
|
5
6
|
projectPath: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { readLogEvents as engineReadLogEvents, type LogQuery } from "extension-develop/bridge";
|
|
2
2
|
export { type LogQuery };
|
|
3
3
|
export declare function readLogEvents(projectPath: string, browser: string, query: LogQuery): ReturnType<typeof engineReadLogEvents>;
|
|
4
|
+
export declare function readLogDropped(projectPath: string, browser: string): number;
|
|
4
5
|
export interface LogsArgs {
|
|
5
6
|
projectPath: string;
|
|
6
7
|
browser?: string;
|
package/dist/src/tools/open.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ export declare const schema: {
|
|
|
68
68
|
};
|
|
69
69
|
timeout: {
|
|
70
70
|
readonly type: "number";
|
|
71
|
-
readonly description: "Command timeout in ms
|
|
71
|
+
readonly description: "Command timeout in ms. When omitted, the default depends on the route: 30000 through the dev session's control channel, 10000 over the Firefox debugger protocol, and 15000 per command over the Chromium debug port.";
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
74
|
required: string[];
|
|
@@ -24,7 +24,7 @@ export declare const schema: {
|
|
|
24
24
|
};
|
|
25
25
|
timeout: {
|
|
26
26
|
readonly type: "number";
|
|
27
|
-
readonly description: "Command timeout in ms
|
|
27
|
+
readonly description: "Command timeout in ms. When omitted, the default depends on the route: 30000 through the dev session's control channel, 10000 over the Firefox debugger protocol, and 15000 per command over the Chromium debug port.";
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
required: string[];
|
package/dist/src/tools/stop.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export declare const schema: {
|
|
|
32
32
|
};
|
|
33
33
|
timeout: {
|
|
34
34
|
readonly type: "number";
|
|
35
|
-
readonly description: "Command timeout in ms
|
|
35
|
+
readonly description: "Command timeout in ms. When omitted, the default depends on the route: 30000 through the dev session's control channel, 10000 over the Firefox debugger protocol, and 15000 per command over the Chromium debug port.";
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
required: string[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@extension.dev/mcp",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "10.10.
|
|
4
|
+
"version": "10.10.12",
|
|
5
5
|
"description": "MCP server that lets AI agents (Claude Code, Claude Desktop, Cursor, Copilot, Codex) build, run, inspect, and publish browser extensions. 32 tools for scaffolding, live DOM inspection, log streaming, and store-ready builds across Chrome, Edge, Firefox, Safari, and every Chromium- or Gecko-based browser (Brave, Opera, Vivaldi, Yandex, Waterfox, LibreWolf). Powered by extension.dev and Extension.js.",
|
|
6
6
|
"mcpName": "io.github.extensiondev/mcp",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"LICENSE"
|
|
50
50
|
],
|
|
51
51
|
"scripts": {
|
|
52
|
-
"docs:tools": "
|
|
52
|
+
"docs:tools": "WRITE_TOOLS_DOC=1 vitest run src/__tests__/docs-match-the-code.test.ts",
|
|
53
53
|
"clean": "rm -rf dist",
|
|
54
54
|
"readme:clients": "UPDATE_README=1 vitest run src/__tests__/readme-clients.test.ts",
|
|
55
55
|
"watch": "rslib build --watch",
|
|
@@ -132,7 +132,11 @@
|
|
|
132
132
|
"brace-expansion@5": "^5.0.12",
|
|
133
133
|
"nanoid@3": "^3.3.19",
|
|
134
134
|
"devalue@5": "^5.9.2",
|
|
135
|
-
"postcss-selector-parser@7": "^7.1.6"
|
|
135
|
+
"postcss-selector-parser@7": "^7.1.6",
|
|
136
|
+
"proxy-addr@2": "^2.0.8",
|
|
137
|
+
"source-map-js@1": "^1.2.2",
|
|
138
|
+
"vue@3": "^3.5.43",
|
|
139
|
+
"@vue/compiler-sfc@3": "^3.5.43"
|
|
136
140
|
}
|
|
137
141
|
}
|
|
138
142
|
}
|
package/server.json
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
9
|
"websiteUrl": "https://extension.dev",
|
|
10
|
-
"version": "10.10.
|
|
10
|
+
"version": "10.10.12",
|
|
11
11
|
"packages": [
|
|
12
12
|
{
|
|
13
13
|
"registryType": "npm",
|
|
14
14
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
15
15
|
"identifier": "@extension.dev/mcp",
|
|
16
|
-
"version": "10.10.
|
|
16
|
+
"version": "10.10.12",
|
|
17
17
|
"runtimeHint": "npx",
|
|
18
18
|
"transport": {
|
|
19
19
|
"type": "stdio"
|