@extension.dev/mcp 4.9.0 → 5.1.1
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 +172 -22
- package/README.md +3 -3
- package/claude/ARCHITECTURE.md +2 -2
- package/claude/CLAUDE.md +15 -15
- package/claude/README.md +8 -8
- package/claude/commands/extension-add.md +10 -10
- package/claude/commands/extension-debug.md +10 -10
- package/claude/commands/extension.md +8 -8
- package/claude/examples/add-sidebar.md +2 -2
- package/claude/examples/create-extension.md +2 -2
- package/claude/rules/cross-browser.md +1 -1
- package/claude/rules/extension-dev.md +12 -12
- package/claude/rules/mcp-tools.md +45 -45
- package/dist/module.js +1071 -353
- package/dist/src/lib/exec.d.ts +6 -1
- package/dist/src/lib/session-browser.d.ts +7 -1
- package/dist/src/lib/types.d.ts +3 -1
- package/dist/src/tools/build.d.ts +6 -0
- package/dist/src/tools/deploy.d.ts +1 -0
- package/dist/src/tools/doctor.d.ts +1 -0
- package/dist/src/tools/dom-inspect.d.ts +13 -2
- package/dist/src/tools/open.d.ts +11 -0
- package/package.json +6 -4
- package/server.json +2 -2
package/dist/src/lib/exec.d.ts
CHANGED
|
@@ -12,7 +12,12 @@ export declare function runExtensionCli(args: string[], options?: {
|
|
|
12
12
|
cwd?: string;
|
|
13
13
|
timeoutMs?: number;
|
|
14
14
|
}): Promise<CliResult>;
|
|
15
|
+
export interface SpawnedCli {
|
|
16
|
+
child: ChildProcess;
|
|
17
|
+
logPath: string;
|
|
18
|
+
readOutput: () => string;
|
|
19
|
+
}
|
|
15
20
|
export declare function spawnExtensionCli(args: string[], options?: {
|
|
16
21
|
cwd?: string;
|
|
17
22
|
projectDir?: string;
|
|
18
|
-
}):
|
|
23
|
+
}): SpawnedCli;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
export interface ResolvedBrowser {
|
|
2
2
|
browser: string;
|
|
3
|
-
source: "explicit" | "session" | "contract" | "fallback";
|
|
3
|
+
source: "explicit" | "session" | "contract" | "stale" | "fallback";
|
|
4
4
|
}
|
|
5
5
|
export declare function knownSessionBrowsers(projectPath: string): string[];
|
|
6
6
|
export declare function deadReadySession(projectPath: string): {
|
|
7
7
|
browser: string;
|
|
8
8
|
pid: number;
|
|
9
9
|
} | null;
|
|
10
|
+
export interface BrowserExitStamp {
|
|
11
|
+
code?: string;
|
|
12
|
+
browserExitCode?: number | null;
|
|
13
|
+
browserExitedAt?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function browserExitStamp(projectPath: string, browser: string, since: number): BrowserExitStamp | null;
|
|
10
16
|
export declare function resolveSessionBrowser(projectPath: string, explicit: string | undefined, fallback?: string): ResolvedBrowser;
|
package/dist/src/lib/types.d.ts
CHANGED
|
@@ -43,10 +43,12 @@ export interface TemplatesMetaV2 {
|
|
|
43
43
|
templates: TemplateMeta[];
|
|
44
44
|
}
|
|
45
45
|
export interface ReadyContract {
|
|
46
|
-
status: "ready" | "error";
|
|
46
|
+
status: "ready" | "error" | "stopped";
|
|
47
47
|
message?: string;
|
|
48
48
|
errors?: string[];
|
|
49
49
|
code?: string;
|
|
50
|
+
browserExitCode?: number | null;
|
|
51
|
+
browserExitedAt?: string;
|
|
50
52
|
command: "dev" | "start";
|
|
51
53
|
browser: string;
|
|
52
54
|
runId?: string;
|
|
@@ -44,6 +44,11 @@ export declare const schema: {
|
|
|
44
44
|
default: string;
|
|
45
45
|
description: string;
|
|
46
46
|
};
|
|
47
|
+
skipValidation: {
|
|
48
|
+
type: string;
|
|
49
|
+
default: boolean;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
47
52
|
};
|
|
48
53
|
required: string[];
|
|
49
54
|
};
|
|
@@ -57,4 +62,5 @@ export declare function handler(args: {
|
|
|
57
62
|
polyfill?: boolean;
|
|
58
63
|
silent?: boolean;
|
|
59
64
|
mode?: "development" | "production" | "none";
|
|
65
|
+
skipValidation?: boolean;
|
|
60
66
|
}): Promise<string>;
|
|
@@ -13,6 +13,15 @@ export declare const schema: {
|
|
|
13
13
|
type: string;
|
|
14
14
|
description: string;
|
|
15
15
|
};
|
|
16
|
+
url: {
|
|
17
|
+
type: string;
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
listTabs: {
|
|
21
|
+
type: string;
|
|
22
|
+
default: boolean;
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
16
25
|
context: {
|
|
17
26
|
type: string;
|
|
18
27
|
enum: string[];
|
|
@@ -33,7 +42,7 @@ export declare const schema: {
|
|
|
33
42
|
default: number;
|
|
34
43
|
};
|
|
35
44
|
withConsole: {
|
|
36
|
-
type: string;
|
|
45
|
+
type: string[];
|
|
37
46
|
description: string;
|
|
38
47
|
};
|
|
39
48
|
browser: {
|
|
@@ -50,7 +59,9 @@ export declare const schema: {
|
|
|
50
59
|
};
|
|
51
60
|
export declare function handler(args: ActArgs & {
|
|
52
61
|
tab?: number;
|
|
62
|
+
url?: string;
|
|
63
|
+
listTabs?: boolean;
|
|
53
64
|
include?: string[];
|
|
54
65
|
maxBytes?: number;
|
|
55
|
-
withConsole?: number;
|
|
66
|
+
withConsole?: number | boolean;
|
|
56
67
|
}): Promise<string>;
|
package/dist/src/tools/open.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { type ActArgs } from "../lib/act";
|
|
2
|
+
export declare function clampPopupBounds(width: number, height: number): {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
clamped: boolean;
|
|
6
|
+
};
|
|
2
7
|
export declare const schema: {
|
|
3
8
|
name: string;
|
|
4
9
|
description: string;
|
|
@@ -22,6 +27,11 @@ export declare const schema: {
|
|
|
22
27
|
type: string;
|
|
23
28
|
description: string;
|
|
24
29
|
};
|
|
30
|
+
asTab: {
|
|
31
|
+
type: string;
|
|
32
|
+
default: boolean;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
25
35
|
browser: {
|
|
26
36
|
type: string;
|
|
27
37
|
description: string;
|
|
@@ -38,4 +48,5 @@ export declare function handler(args: ActArgs & {
|
|
|
38
48
|
surface?: string;
|
|
39
49
|
name?: string;
|
|
40
50
|
url?: string;
|
|
51
|
+
asTab?: boolean;
|
|
41
52
|
}): Promise<string>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@extension.dev/mcp",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "5.1.1",
|
|
5
5
|
"description": "MCP server that lets AI agents (Claude Code, Claude Desktop, Cursor, Copilot, Codex) build, run, inspect, and publish browser extensions. 31 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": "MIT",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"build": "pnpm run compile",
|
|
51
51
|
"start": "node bin/extension-mcp.js",
|
|
52
52
|
"test": "vitest run",
|
|
53
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p src/__tests__/tsconfig.json",
|
|
53
54
|
"prepack": "node scripts/readme-logo-width.mjs npm",
|
|
54
55
|
"postpack": "node scripts/readme-logo-width.mjs github",
|
|
55
56
|
"prepublishOnly": "pnpm run test && pnpm run compile"
|
|
@@ -87,13 +88,14 @@
|
|
|
87
88
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
88
89
|
"browser-extension-manifest-fields": "^2.2.9",
|
|
89
90
|
"cross-spawn": "^7.0.6",
|
|
90
|
-
"extension-create": "^4.0.
|
|
91
|
-
"extension-develop": "^4.0.
|
|
92
|
-
"extension-install": "^4.0.
|
|
91
|
+
"extension-create": "^4.0.13",
|
|
92
|
+
"extension-develop": "^4.0.13",
|
|
93
|
+
"extension-install": "^4.0.13",
|
|
93
94
|
"ws": "^8.20.0"
|
|
94
95
|
},
|
|
95
96
|
"devDependencies": {
|
|
96
97
|
"@rslib/core": "^0.19.4",
|
|
98
|
+
"@types/cross-spawn": "^6.0.6",
|
|
97
99
|
"@types/node": "^25.2.0",
|
|
98
100
|
"@types/ws": "^8.18.1",
|
|
99
101
|
"typescript": "6.0.2",
|
package/server.json
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
9
|
"websiteUrl": "https://extension.dev",
|
|
10
|
-
"version": "
|
|
10
|
+
"version": "5.1.1",
|
|
11
11
|
"packages": [
|
|
12
12
|
{
|
|
13
13
|
"registryType": "npm",
|
|
14
14
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
15
15
|
"identifier": "@extension.dev/mcp",
|
|
16
|
-
"version": "
|
|
16
|
+
"version": "5.1.1",
|
|
17
17
|
"runtimeHint": "npx",
|
|
18
18
|
"transport": {
|
|
19
19
|
"type": "stdio"
|