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

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,5 +1,36 @@
1
1
  import * as unplugin0 from "unplugin";
2
2
 
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
3
34
  //#region client/constants/agents.d.ts
4
35
  interface Agent {
5
36
  name: string;
@@ -16,7 +47,7 @@ interface Agent {
16
47
  }
17
48
  //#endregion
18
49
  //#region src/core.d.ts
19
- interface DevInspectorOptions {
50
+ interface DevInspectorOptions extends McpConfigOptions {
20
51
  /**
21
52
  * Enable/disable the plugin
22
53
  * @default true in development, false in production
@@ -56,4 +87,4 @@ declare const unplugin: unplugin0.UnpluginInstance<DevInspectorOptions | undefin
56
87
  //#region src/index.d.ts
57
88
  declare module 'virtual:dev-inspector-mcp' {}
58
89
  //#endregion
59
- export { type DevInspectorOptions, unplugin as default };
90
+ export { type CustomEditorConfig, type DevInspectorOptions, type EditorId, type McpConfigOptions, unplugin as default };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,36 @@
1
1
  import * as unplugin0 from "unplugin";
2
2
 
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
3
34
  //#region client/constants/agents.d.ts
4
35
  interface Agent {
5
36
  name: string;
@@ -16,7 +47,7 @@ interface Agent {
16
47
  }
17
48
  //#endregion
18
49
  //#region src/core.d.ts
19
- interface DevInspectorOptions {
50
+ interface DevInspectorOptions extends McpConfigOptions {
20
51
  /**
21
52
  * Enable/disable the plugin
22
53
  * @default true in development, false in production
@@ -56,4 +87,4 @@ declare const unplugin: unplugin0.UnpluginInstance<DevInspectorOptions | undefin
56
87
  //#region src/index.d.ts
57
88
  declare module 'virtual:dev-inspector-mcp' {}
58
89
  //#endregion
59
- export { type DevInspectorOptions, unplugin as default };
90
+ export { type CustomEditorConfig, type DevInspectorOptions, type EditorId, type McpConfigOptions, unplugin as default };