@extension.dev/mcp 7.0.0 → 9.0.0

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.
Files changed (60) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +224 -0
  4. package/README.md +13 -21
  5. package/claude/ARCHITECTURE.md +4 -4
  6. package/claude/CLAUDE.md +2 -2
  7. package/claude/README.md +1 -1
  8. package/claude/commands/extension-add.md +1 -1
  9. package/claude/commands/extension-debug.md +1 -1
  10. package/claude/commands/extension-publish.md +1 -1
  11. package/claude/commands/extension.md +3 -3
  12. package/claude/rules/mcp-tools.md +45 -49
  13. package/dist/module.js +1026 -1186
  14. package/dist/src/lib/common-schema.d.ts +28 -0
  15. package/dist/src/lib/launch-flags.d.ts +6 -6
  16. package/dist/src/lib/session-identity.d.ts +16 -0
  17. package/dist/src/tools/add-feature.d.ts +2 -2
  18. package/dist/src/tools/analyze.d.ts +29 -0
  19. package/dist/src/tools/auth.d.ts +33 -0
  20. package/dist/src/tools/browsers.d.ts +39 -0
  21. package/dist/src/tools/build.d.ts +5 -6
  22. package/dist/src/tools/detect-browsers.d.ts +1 -20
  23. package/dist/src/tools/dev.d.ts +11 -11
  24. package/dist/src/tools/{dom-inspect.d.ts → dom-snapshot.d.ts} +6 -6
  25. package/dist/src/tools/eval.d.ts +6 -6
  26. package/dist/src/tools/get-template-source.d.ts +1 -22
  27. package/dist/src/tools/inspect.d.ts +33 -5
  28. package/dist/src/tools/install-browser.d.ts +1 -18
  29. package/dist/src/tools/list-browsers.d.ts +1 -9
  30. package/dist/src/tools/list-extensions.d.ts +4 -4
  31. package/dist/src/tools/list-templates.d.ts +1 -35
  32. package/dist/src/tools/login.d.ts +1 -23
  33. package/dist/src/tools/logout.d.ts +1 -9
  34. package/dist/src/tools/logs-schema.d.ts +2 -2
  35. package/dist/src/tools/open.d.ts +6 -6
  36. package/dist/src/tools/preview-web.d.ts +4 -4
  37. package/dist/src/tools/publish.d.ts +2 -2
  38. package/dist/src/tools/release-list.d.ts +1 -23
  39. package/dist/src/tools/release-promote.d.ts +2 -2
  40. package/dist/src/tools/release-status.d.ts +37 -0
  41. package/dist/src/tools/reload.d.ts +6 -6
  42. package/dist/src/tools/shares.d.ts +2 -2
  43. package/dist/src/tools/start.d.ts +16 -10
  44. package/dist/src/tools/stop.d.ts +2 -2
  45. package/dist/src/tools/storage.d.ts +6 -6
  46. package/dist/src/tools/store-status.d.ts +1 -23
  47. package/dist/src/tools/{deploy.d.ts → submit.d.ts} +4 -4
  48. package/dist/src/tools/{source-inspect.d.ts → templates.d.ts} +27 -23
  49. package/dist/src/tools/uninstall-browser.d.ts +1 -21
  50. package/dist/src/tools/wait.d.ts +4 -4
  51. package/dist/src/tools/whoami.d.ts +1 -9
  52. package/extensions/live-preview/chromium/action/index.js +1 -9
  53. package/extensions/live-preview/chromium/background/service_worker.js +3 -11
  54. package/extensions/live-preview/chromium/manifest.json +1 -1
  55. package/package.json +2 -2
  56. package/server.json +3 -3
  57. package/dist/src/__tests__/fixtures/ready-contract.d.ts +0 -7
  58. package/dist/src/__tests__/setup-session-dir.d.ts +0 -1
  59. package/dist/src/tools/preview.d.ts +0 -66
  60. /package/dist/src/tools/{source-inspect-gecko.d.ts → inspect-gecko.d.ts} +0 -0
@@ -1,26 +1,4 @@
1
- export declare const schema: {
2
- name: string;
3
- description: string;
4
- inputSchema: {
5
- type: "object";
6
- properties: {
7
- workspace: {
8
- type: string;
9
- description: string;
10
- };
11
- project: {
12
- type: string;
13
- description: string;
14
- };
15
- api: {
16
- type: string;
17
- description: string;
18
- };
19
- };
20
- required: never[];
21
- };
22
- };
23
- export declare function handler(args: {
1
+ export declare function readReleases(args: {
24
2
  workspace?: string;
25
3
  project?: string;
26
4
  api?: string;
@@ -32,8 +32,8 @@ export declare const schema: {
32
32
  description: string;
33
33
  };
34
34
  api: {
35
- type: string;
36
- description: string;
35
+ readonly type: "string";
36
+ readonly description: "Platform base URL (default EXTENSION_DEV_API_URL, else https://www.extension.dev)";
37
37
  };
38
38
  };
39
39
  required: string[];
@@ -0,0 +1,37 @@
1
+ export declare const schema: {
2
+ name: string;
3
+ description: string;
4
+ inputSchema: {
5
+ type: "object";
6
+ properties: {
7
+ include: {
8
+ type: string;
9
+ items: {
10
+ type: string;
11
+ enum: string[];
12
+ };
13
+ default: string[];
14
+ description: string;
15
+ };
16
+ workspace: {
17
+ type: string;
18
+ description: string;
19
+ };
20
+ project: {
21
+ type: string;
22
+ description: string;
23
+ };
24
+ api: {
25
+ readonly type: "string";
26
+ readonly description: "Platform base URL (default EXTENSION_DEV_API_URL, else https://www.extension.dev)";
27
+ };
28
+ };
29
+ required: never[];
30
+ };
31
+ };
32
+ export declare function handler(args: {
33
+ include?: string[];
34
+ workspace?: string;
35
+ project?: string;
36
+ api?: string;
37
+ }): Promise<string>;
@@ -6,8 +6,8 @@ export declare const schema: {
6
6
  type: "object";
7
7
  properties: {
8
8
  projectPath: {
9
- type: string;
10
- description: string;
9
+ readonly type: "string";
10
+ readonly description: "Extension project root (needs a live dev session)";
11
11
  };
12
12
  context: {
13
13
  type: string;
@@ -19,12 +19,12 @@ export declare const schema: {
19
19
  description: string;
20
20
  };
21
21
  browser: {
22
- type: string;
23
- description: string;
22
+ readonly type: "string";
23
+ readonly description: "Session browser; defaults to this project's live session";
24
24
  };
25
25
  timeout: {
26
- type: string;
27
- description: string;
26
+ readonly type: "number";
27
+ readonly description: "Command timeout in ms (default 5000)";
28
28
  };
29
29
  };
30
30
  required: string[];
@@ -33,8 +33,8 @@ export declare const schema: {
33
33
  description: string;
34
34
  };
35
35
  api: {
36
- type: string;
37
- description: string;
36
+ readonly type: "string";
37
+ readonly description: "Platform base URL (default EXTENSION_DEV_API_URL, else https://www.extension.dev)";
38
38
  };
39
39
  };
40
40
  required: never[];
@@ -7,7 +7,7 @@ export declare const schema: {
7
7
  properties: {
8
8
  profile: {
9
9
  readonly type: "string";
10
- readonly description: "Browser profile path, or \"false\" to reuse the default user profile. Omit for a fresh throwaway profile.";
10
+ readonly description: "Profile path, or \"false\" to reuse the real user profile. Omit for a throwaway one.";
11
11
  };
12
12
  startingUrl: {
13
13
  readonly type: "string";
@@ -15,35 +15,40 @@ export declare const schema: {
15
15
  };
16
16
  chromiumBinary: {
17
17
  readonly type: "string";
18
- readonly description: "Path to a custom Chromium-based binary (overrides browser)";
18
+ readonly description: "Custom Chromium-based binary (overrides browser)";
19
19
  };
20
20
  geckoBinary: {
21
21
  readonly type: "string";
22
- readonly description: "Path to a custom Gecko/Firefox binary (overrides browser)";
22
+ readonly description: "Custom Gecko/Firefox binary (overrides browser)";
23
23
  };
24
24
  host: {
25
25
  readonly type: "string";
26
- readonly description: "Dev server bind host. Use 0.0.0.0 for Docker or devcontainers. Defaults to 127.0.0.1";
26
+ readonly description: "Bind host, default 127.0.0.1. Use 0.0.0.0 in Docker or devcontainers.";
27
27
  };
28
28
  publicHost: {
29
29
  readonly type: "string";
30
- readonly description: "Connectable host the browser dials for HMR and reload when it differs from the bind host";
30
+ readonly description: "Host the browser dials for HMR and reload when it differs from the bind host";
31
31
  };
32
32
  extensions: {
33
33
  readonly type: "array";
34
34
  readonly items: {
35
35
  readonly type: "string";
36
36
  };
37
- readonly description: "Companion extension paths or store URLs to load alongside the project";
37
+ readonly description: "Extra extension paths or store URLs to load alongside the project";
38
38
  };
39
39
  projectPath: {
40
- type: string;
41
- description: string;
40
+ readonly type: "string";
41
+ readonly description: "Extension project root";
42
42
  };
43
43
  browser: {
44
+ readonly type: "string";
45
+ readonly enum: readonly ["chrome", "chromium", "edge", "brave", "opera", "vivaldi", "yandex", "firefox", "waterfox", "librewolf", "safari", "chromium-based", "gecko-based", "firefox-based", "webkit-based"];
46
+ readonly default: "chrome";
47
+ };
48
+ build: {
44
49
  type: string;
45
- enum: string[];
46
- default: string;
50
+ default: boolean;
51
+ description: string;
47
52
  };
48
53
  polyfill: {
49
54
  type: string;
@@ -66,6 +71,7 @@ export declare const schema: {
66
71
  export declare function handler(args: {
67
72
  projectPath: string;
68
73
  browser?: string;
74
+ build?: boolean;
69
75
  polyfill?: boolean;
70
76
  port?: number;
71
77
  noBrowser?: boolean;
@@ -5,8 +5,8 @@ export declare const schema: {
5
5
  type: "object";
6
6
  properties: {
7
7
  projectPath: {
8
- type: string;
9
- description: string;
8
+ readonly type: "string";
9
+ readonly description: "Extension project root";
10
10
  };
11
11
  browser: {
12
12
  type: string;
@@ -6,8 +6,8 @@ export declare const schema: {
6
6
  type: "object";
7
7
  properties: {
8
8
  projectPath: {
9
- type: string;
10
- description: string;
9
+ readonly type: "string";
10
+ readonly description: "Extension project root (needs a live dev session)";
11
11
  };
12
12
  action: {
13
13
  type: string;
@@ -32,12 +32,12 @@ export declare const schema: {
32
32
  default: string;
33
33
  };
34
34
  browser: {
35
- type: string;
36
- description: string;
35
+ readonly type: "string";
36
+ readonly description: "Session browser; defaults to this project's live session";
37
37
  };
38
38
  timeout: {
39
- type: string;
40
- description: string;
39
+ readonly type: "number";
40
+ readonly description: "Command timeout in ms (default 5000)";
41
41
  };
42
42
  };
43
43
  required: string[];
@@ -1,25 +1,3 @@
1
- export declare const schema: {
2
- name: string;
3
- description: string;
4
- inputSchema: {
5
- type: "object";
6
- properties: {
7
- workspace: {
8
- type: string;
9
- description: string;
10
- };
11
- project: {
12
- type: string;
13
- description: string;
14
- };
15
- api: {
16
- type: string;
17
- description: string;
18
- };
19
- };
20
- required: never[];
21
- };
22
- };
23
1
  interface SubmissionView {
24
2
  version?: string;
25
3
  status?: string;
@@ -44,7 +22,7 @@ export interface NormalizedStoresStatus {
44
22
  lastPollAt?: string;
45
23
  }
46
24
  export declare function normalizeStoresStatus(json: unknown): NormalizedStoresStatus;
47
- export declare function handler(args: {
25
+ export declare function readStores(args: {
48
26
  workspace?: string;
49
27
  project?: string;
50
28
  api?: string;
@@ -1,5 +1,5 @@
1
1
  export declare function storeMdWarnings(browsers: string[], cwd: string): string[];
2
- export interface DeployToolArgs {
2
+ export interface SubmitToolArgs {
3
3
  browsers: string[];
4
4
  buildSha: string;
5
5
  channel?: string;
@@ -39,11 +39,11 @@ export declare const schema: {
39
39
  description: string;
40
40
  };
41
41
  api: {
42
- type: string;
43
- description: string;
42
+ readonly type: "string";
43
+ readonly description: "Platform base URL (default EXTENSION_DEV_API_URL, else https://www.extension.dev)";
44
44
  };
45
45
  };
46
46
  required: string[];
47
47
  };
48
48
  };
49
- export declare function handler(args: DeployToolArgs): Promise<string>;
49
+ export declare function handler(args: SubmitToolArgs): Promise<string>;
@@ -4,54 +4,58 @@ export declare const schema: {
4
4
  inputSchema: {
5
5
  type: "object";
6
6
  properties: {
7
- projectPath: {
7
+ action: {
8
8
  type: string;
9
- description: string;
9
+ enum: string[];
10
+ default: string;
10
11
  };
11
- url: {
12
+ slug: {
12
13
  type: string;
13
14
  description: string;
14
15
  };
15
- probe: {
16
+ files: {
16
17
  type: string;
17
18
  items: {
18
19
  type: string;
19
20
  };
20
21
  description: string;
21
22
  };
22
- include: {
23
+ query: {
23
24
  type: string;
24
- items: {
25
- type: string;
26
- enum: string[];
27
- };
28
- default: string[];
29
25
  description: string;
30
26
  };
31
- browser: {
27
+ surface: {
28
+ type: string;
29
+ enum: string[];
30
+ description: string;
31
+ };
32
+ framework: {
32
33
  type: string;
34
+ enum: string[];
33
35
  description: string;
34
36
  };
35
- maxBytes: {
37
+ tags: {
36
38
  type: string;
37
- default: number;
39
+ items: {
40
+ type: string;
41
+ };
38
42
  description: string;
39
43
  };
40
- deepDom: {
44
+ featured: {
41
45
  type: string;
42
- default: boolean;
43
46
  description: string;
44
47
  };
45
48
  };
46
- required: string[];
49
+ required: never[];
47
50
  };
48
51
  };
49
52
  export declare function handler(args: {
50
- projectPath: string;
51
- url?: string;
52
- probe?: string[];
53
- include?: string[];
54
- browser?: string;
55
- maxBytes?: number;
56
- deepDom?: boolean;
53
+ action?: string;
54
+ slug?: string;
55
+ files?: string[];
56
+ query?: string;
57
+ surface?: string;
58
+ framework?: string;
59
+ tags?: string[];
60
+ featured?: boolean;
57
61
  }): Promise<string>;
@@ -1,24 +1,4 @@
1
- export declare const schema: {
2
- name: string;
3
- description: string;
4
- inputSchema: {
5
- type: "object";
6
- properties: {
7
- browser: {
8
- type: string;
9
- enum: string[];
10
- description: string;
11
- };
12
- all: {
13
- type: string;
14
- default: boolean;
15
- description: string;
16
- };
17
- };
18
- required: never[];
19
- };
20
- };
21
- export declare function handler(args: {
1
+ export declare function uninstallManagedBrowser(args: {
22
2
  browser?: string;
23
3
  all?: boolean;
24
4
  }): Promise<string>;
@@ -5,12 +5,12 @@ export declare const schema: {
5
5
  type: "object";
6
6
  properties: {
7
7
  projectPath: {
8
- type: string;
9
- description: string;
8
+ readonly type: "string";
9
+ readonly description: "Extension project root";
10
10
  };
11
11
  browser: {
12
- type: string;
13
- description: string;
12
+ readonly type: "string";
13
+ readonly description: "Session browser; defaults to this project's live session";
14
14
  };
15
15
  timeoutMs: {
16
16
  type: string;
@@ -1,9 +1 @@
1
- export declare const schema: {
2
- name: string;
3
- description: string;
4
- inputSchema: {
5
- type: "object";
6
- properties: {};
7
- };
8
- };
9
- export declare function handler(): Promise<string>;
1
+ export declare function readIdentity(): Promise<string>;