@mcpc-tech/unplugin-dev-inspector-mcp 0.0.2-beta.9 → 0.0.2

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/dist/index.d.cts CHANGED
@@ -1,7 +1,59 @@
1
1
  import * as unplugin0 from "unplugin";
2
2
 
3
- //#region client/constants/agents.d.ts
4
- interface Agent {
3
+ //#region src/utils/config-updater.d.ts
4
+ type EditorId = 'cursor' | 'vscode' | 'windsurf' | 'claude-code';
5
+ interface CustomEditorConfig {
6
+ id: string;
7
+ name: string;
8
+ /** Path to config directory (absolute, ~/relative, or project-relative) */
9
+ configPath: string;
10
+ configFileName: string;
11
+ /** @default 'url' */
12
+ serverUrlKey?: string;
13
+ /** @default 'mcpServers' */
14
+ configFormat?: 'servers' | 'mcpServers';
15
+ }
16
+ interface McpConfigOptions {
17
+ /**
18
+ * Auto-update MCP config for editors
19
+ * - `true` or `'auto'`: Auto-detect editors
20
+ * - `false`: Disable
21
+ * - `EditorId[]`: Specific editors only
22
+ * @default true
23
+ */
24
+ updateConfig?: boolean | 'auto' | EditorId[];
25
+ /** @default 'dev-inspector' */
26
+ updateConfigServerName?: string;
27
+ updateConfigAdditionalServers?: Array<{
28
+ name: string;
29
+ url: string;
30
+ }>;
31
+ customEditors?: CustomEditorConfig[];
32
+ }
33
+ //#endregion
34
+ //#region client/constants/types.d.ts
35
+ /**
36
+ * ACP (Agent Client Protocol) options for configuring agent behavior
37
+ */
38
+ interface AcpOptions {
39
+ /**
40
+ * ACP provider mode
41
+ * @default undefined (skipped if not specified)
42
+ */
43
+ acpMode?: string;
44
+ /**
45
+ * ACP provider model
46
+ * @default undefined (skipped if not specified)
47
+ */
48
+ acpModel?: string;
49
+ /**
50
+ * Delay in milliseconds after session is initialized to ensure mcp server is ready,
51
+ * some agents may connect mcp asynchronously after session init
52
+ * @default undefined (skipped if not specified)
53
+ */
54
+ acpDelay?: number;
55
+ }
56
+ interface Agent extends AcpOptions {
5
57
  name: string;
6
58
  command: string;
7
59
  args?: string[];
@@ -16,10 +68,10 @@ interface Agent {
16
68
  }
17
69
  //#endregion
18
70
  //#region src/core.d.ts
19
- interface DevInspectorOptions {
71
+ interface DevInspectorOptions extends McpConfigOptions, AcpOptions {
20
72
  /**
21
73
  * Enable/disable the plugin
22
- * @default true in development, false in production
74
+ * @default true (automatically disabled in production)
23
75
  */
24
76
  enabled?: boolean;
25
77
  /**
@@ -27,14 +79,30 @@ interface DevInspectorOptions {
27
79
  * @default true
28
80
  */
29
81
  enableMcp?: boolean;
82
+ /**
83
+ * Custom host for MCP server URL
84
+ * Useful when behind a proxy or in Docker containers
85
+ * If not specified, uses the Vite server host config
86
+ * @example "localhost" or "my-dev-server.local"
87
+ */
88
+ host?: string;
89
+ /**
90
+ * Custom port for MCP server URL
91
+ * Useful when behind a proxy or port forwarding (e.g., Docker, SSH tunnels)
92
+ * If not specified, uses the Vite server port config
93
+ * @example 3000
94
+ */
95
+ port?: number;
30
96
  /**
31
97
  * Custom agents configuration
32
98
  * If provided, these will be merged with or replace the default agents
99
+ * @see AVAILABLE_AGENTS https://github.com/mcpc-tech/dev-inspector-mcp/blob/main/packages/unplugin-dev-inspector/client/constants/agents.ts
33
100
  */
34
101
  agents?: Agent[];
35
102
  /**
36
103
  * Default agent name to use
37
104
  * @default "Claude Code"
105
+ * @see https://github.com/mcpc-tech/dev-inspector-mcp/blob/main/packages/unplugin-dev-inspector/client/constants/agents.ts
38
106
  */
39
107
  defaultAgent?: string;
40
108
  /**
@@ -56,4 +124,4 @@ declare const unplugin: unplugin0.UnpluginInstance<DevInspectorOptions | undefin
56
124
  //#region src/index.d.ts
57
125
  declare module 'virtual:dev-inspector-mcp' {}
58
126
  //#endregion
59
- export { type DevInspectorOptions, unplugin as default };
127
+ export { type CustomEditorConfig, type DevInspectorOptions, type EditorId, type McpConfigOptions, unplugin as default };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,59 @@
1
1
  import * as unplugin0 from "unplugin";
2
2
 
3
- //#region client/constants/agents.d.ts
4
- interface Agent {
3
+ //#region src/utils/config-updater.d.ts
4
+ type EditorId = 'cursor' | 'vscode' | 'windsurf' | 'claude-code';
5
+ interface CustomEditorConfig {
6
+ id: string;
7
+ name: string;
8
+ /** Path to config directory (absolute, ~/relative, or project-relative) */
9
+ configPath: string;
10
+ configFileName: string;
11
+ /** @default 'url' */
12
+ serverUrlKey?: string;
13
+ /** @default 'mcpServers' */
14
+ configFormat?: 'servers' | 'mcpServers';
15
+ }
16
+ interface McpConfigOptions {
17
+ /**
18
+ * Auto-update MCP config for editors
19
+ * - `true` or `'auto'`: Auto-detect editors
20
+ * - `false`: Disable
21
+ * - `EditorId[]`: Specific editors only
22
+ * @default true
23
+ */
24
+ updateConfig?: boolean | 'auto' | EditorId[];
25
+ /** @default 'dev-inspector' */
26
+ updateConfigServerName?: string;
27
+ updateConfigAdditionalServers?: Array<{
28
+ name: string;
29
+ url: string;
30
+ }>;
31
+ customEditors?: CustomEditorConfig[];
32
+ }
33
+ //#endregion
34
+ //#region client/constants/types.d.ts
35
+ /**
36
+ * ACP (Agent Client Protocol) options for configuring agent behavior
37
+ */
38
+ interface AcpOptions {
39
+ /**
40
+ * ACP provider mode
41
+ * @default undefined (skipped if not specified)
42
+ */
43
+ acpMode?: string;
44
+ /**
45
+ * ACP provider model
46
+ * @default undefined (skipped if not specified)
47
+ */
48
+ acpModel?: string;
49
+ /**
50
+ * Delay in milliseconds after session is initialized to ensure mcp server is ready,
51
+ * some agents may connect mcp asynchronously after session init
52
+ * @default undefined (skipped if not specified)
53
+ */
54
+ acpDelay?: number;
55
+ }
56
+ interface Agent extends AcpOptions {
5
57
  name: string;
6
58
  command: string;
7
59
  args?: string[];
@@ -16,10 +68,10 @@ interface Agent {
16
68
  }
17
69
  //#endregion
18
70
  //#region src/core.d.ts
19
- interface DevInspectorOptions {
71
+ interface DevInspectorOptions extends McpConfigOptions, AcpOptions {
20
72
  /**
21
73
  * Enable/disable the plugin
22
- * @default true in development, false in production
74
+ * @default true (automatically disabled in production)
23
75
  */
24
76
  enabled?: boolean;
25
77
  /**
@@ -27,14 +79,30 @@ interface DevInspectorOptions {
27
79
  * @default true
28
80
  */
29
81
  enableMcp?: boolean;
82
+ /**
83
+ * Custom host for MCP server URL
84
+ * Useful when behind a proxy or in Docker containers
85
+ * If not specified, uses the Vite server host config
86
+ * @example "localhost" or "my-dev-server.local"
87
+ */
88
+ host?: string;
89
+ /**
90
+ * Custom port for MCP server URL
91
+ * Useful when behind a proxy or port forwarding (e.g., Docker, SSH tunnels)
92
+ * If not specified, uses the Vite server port config
93
+ * @example 3000
94
+ */
95
+ port?: number;
30
96
  /**
31
97
  * Custom agents configuration
32
98
  * If provided, these will be merged with or replace the default agents
99
+ * @see AVAILABLE_AGENTS https://github.com/mcpc-tech/dev-inspector-mcp/blob/main/packages/unplugin-dev-inspector/client/constants/agents.ts
33
100
  */
34
101
  agents?: Agent[];
35
102
  /**
36
103
  * Default agent name to use
37
104
  * @default "Claude Code"
105
+ * @see https://github.com/mcpc-tech/dev-inspector-mcp/blob/main/packages/unplugin-dev-inspector/client/constants/agents.ts
38
106
  */
39
107
  defaultAgent?: string;
40
108
  /**
@@ -56,4 +124,4 @@ declare const unplugin: unplugin0.UnpluginInstance<DevInspectorOptions | undefin
56
124
  //#region src/index.d.ts
57
125
  declare module 'virtual:dev-inspector-mcp' {}
58
126
  //#endregion
59
- export { type DevInspectorOptions, unplugin as default };
127
+ export { type CustomEditorConfig, type DevInspectorOptions, type EditorId, type McpConfigOptions, unplugin as default };