@extension.dev/mcp 5.3.1 → 5.5.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.
@@ -0,0 +1,15 @@
1
+ export interface PageTarget {
2
+ targetId: string;
3
+ type: string;
4
+ url: string;
5
+ title: string;
6
+ }
7
+ export declare const TARGET_ID_NOTE: string;
8
+ export declare function filterPageTargets(raw: Array<{
9
+ id: string;
10
+ type: string;
11
+ url: string;
12
+ title: string;
13
+ }>): PageTarget[];
14
+ export declare function listPageTargets(port: number): Promise<PageTarget[]>;
15
+ export declare function matchTargetsByUrl(targets: PageTarget[], needle: string): PageTarget[];
@@ -3,5 +3,6 @@ export declare function removeSessionMarker(projectPath: string, browser: string
3
3
  export declare function listSessionMarkers(): ProcessInfo[];
4
4
  export declare function registerSession(info: ProcessInfo): void;
5
5
  export declare function getSession(projectPath: string, browser: string): ProcessInfo | undefined;
6
+ export declare function findSessionInfo(projectPath: string, browser: string): ProcessInfo | undefined;
6
7
  export declare function removeSession(projectPath: string, browser: string): void;
7
8
  export declare function listSessions(): ProcessInfo[];
@@ -19,4 +19,5 @@ export interface BrowserExitStamp {
19
19
  browserExitedAt?: string;
20
20
  }
21
21
  export declare function browserExitStamp(projectPath: string, browser: string, since: number): BrowserExitStamp | null;
22
+ export declare function contractBoundPort(projectPath: string, browser: string, since: number): number | null;
22
23
  export declare function resolveSessionBrowser(projectPath: string, explicit: string | undefined, fallback?: string): ResolvedBrowser;
@@ -43,7 +43,7 @@ export interface TemplatesMetaV2 {
43
43
  templates: TemplateMeta[];
44
44
  }
45
45
  export interface ReadyContract {
46
- status: "ready" | "error" | "stopped";
46
+ status: "starting" | "ready" | "error" | "stopped";
47
47
  message?: string;
48
48
  errors?: string[];
49
49
  code?: string;
@@ -56,9 +56,13 @@ export interface ReadyContract {
56
56
  distPath?: string;
57
57
  manifestPath?: string;
58
58
  port?: number | null;
59
+ host?: string;
60
+ cdpPort?: number;
59
61
  pid?: number;
60
62
  ts?: string;
61
63
  compiledAt?: string | null;
64
+ executorAttachedAt?: string;
65
+ runtime?: string;
62
66
  }
63
67
  export interface ProcessInfo {
64
68
  pid: number;
@@ -66,5 +70,6 @@ export interface ProcessInfo {
66
70
  port?: number;
67
71
  projectPath: string;
68
72
  command: "dev" | "start" | "preview";
73
+ noBrowser?: boolean;
69
74
  }
70
75
  export type BrowserType = "chrome" | "edge" | "firefox" | "chromium-based" | "gecko-based";
@@ -17,6 +17,15 @@ export declare const schema: {
17
17
  type: string;
18
18
  description: string;
19
19
  };
20
+ tabUrl: {
21
+ type: string;
22
+ description: string;
23
+ };
24
+ listTargets: {
25
+ type: string;
26
+ default: boolean;
27
+ description: string;
28
+ };
20
29
  listTabs: {
21
30
  type: string;
22
31
  default: boolean;
@@ -60,6 +69,8 @@ export declare const schema: {
60
69
  export declare function handler(args: ActArgs & {
61
70
  tab?: number;
62
71
  url?: string;
72
+ tabUrl?: string;
73
+ listTargets?: boolean;
63
74
  listTabs?: boolean;
64
75
  include?: string[];
65
76
  maxBytes?: number;
@@ -16,7 +16,6 @@ export declare const schema: {
16
16
  context: {
17
17
  type: string;
18
18
  enum: string[];
19
- default: string;
20
19
  description: string;
21
20
  };
22
21
  url: {
@@ -39,6 +38,7 @@ export declare const schema: {
39
38
  required: string[];
40
39
  };
41
40
  };
41
+ export declare function resolveDefaultEvalContext(projectPath: string, browser: string): "background" | "page";
42
42
  export declare function handler(args: ActArgs & {
43
43
  expression: string;
44
44
  }): Promise<string>;
@@ -12,11 +12,15 @@ export declare const schema: {
12
12
  type: string;
13
13
  description: string;
14
14
  };
15
- timeout: {
15
+ timeoutMs: {
16
16
  type: string;
17
17
  default: number;
18
18
  description: string;
19
19
  };
20
+ timeout: {
21
+ type: string;
22
+ description: string;
23
+ };
20
24
  };
21
25
  required: string[];
22
26
  };
@@ -24,5 +28,6 @@ export declare const schema: {
24
28
  export declare function handler(args: {
25
29
  projectPath: string;
26
30
  browser?: string;
31
+ timeoutMs?: number;
27
32
  timeout?: number;
28
33
  }): Promise<string>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@extension.dev/mcp",
3
3
  "type": "module",
4
- "version": "5.3.1",
4
+ "version": "5.5.0",
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": "MIT",
package/server.json CHANGED
@@ -7,13 +7,13 @@
7
7
  "source": "github"
8
8
  },
9
9
  "websiteUrl": "https://extension.dev",
10
- "version": "5.3.1",
10
+ "version": "5.5.0",
11
11
  "packages": [
12
12
  {
13
13
  "registryType": "npm",
14
14
  "registryBaseUrl": "https://registry.npmjs.org",
15
15
  "identifier": "@extension.dev/mcp",
16
- "version": "5.3.1",
16
+ "version": "5.5.0",
17
17
  "runtimeHint": "npx",
18
18
  "transport": {
19
19
  "type": "stdio"