@mcpc-tech/unplugin-dev-inspector-mcp 0.0.42-beta.4 → 0.0.42

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.
@@ -87132,6 +87132,16 @@ async function handleStreamableHttpDelete(req, res, connectionManager) {
87132
87132
  */
87133
87133
  async function handleSseConnection(req, res, serverContext, connectionManager) {
87134
87134
  try {
87135
+ if (!res.headersSent) {
87136
+ res.statusCode = 200;
87137
+ res.setHeader("Content-Type", "text/event-stream; charset=utf-8");
87138
+ res.setHeader("Cache-Control", "no-cache, no-transform");
87139
+ res.setHeader("Connection", "keep-alive");
87140
+ res.setHeader("X-Accel-Buffering", "no");
87141
+ res.setHeader("Content-Encoding", "identity");
87142
+ }
87143
+ res.socket?.setKeepAlive?.(true);
87144
+ res.socket?.setTimeout?.(0);
87135
87145
  const mcpServer = await createInspectorMcpServer(serverContext);
87136
87146
  const host = serverContext?.host || "localhost";
87137
87147
  const port = serverContext?.port || 5173;
@@ -87167,6 +87167,16 @@ async function handleStreamableHttpDelete(req, res, connectionManager) {
87167
87167
  */
87168
87168
  async function handleSseConnection(req, res, serverContext, connectionManager) {
87169
87169
  try {
87170
+ if (!res.headersSent) {
87171
+ res.statusCode = 200;
87172
+ res.setHeader("Content-Type", "text/event-stream; charset=utf-8");
87173
+ res.setHeader("Cache-Control", "no-cache, no-transform");
87174
+ res.setHeader("Connection", "keep-alive");
87175
+ res.setHeader("X-Accel-Buffering", "no");
87176
+ res.setHeader("Content-Encoding", "identity");
87177
+ }
87178
+ res.socket?.setKeepAlive?.(true);
87179
+ res.socket?.setTimeout?.(0);
87170
87180
  const mcpServer = await createInspectorMcpServer(serverContext);
87171
87181
  const host = serverContext?.host || "localhost";
87172
87182
  const port = serverContext?.port || 5173;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import * as unplugin1 from "unplugin";
1
+ import * as unplugin0 from "unplugin";
2
2
 
3
3
  //#region src/utils/config-updater.d.ts
4
4
  type EditorId = "cursor" | "vscode" | "windsurf" | "claude-code" | "antigravity";
@@ -183,10 +183,10 @@ interface DevInspectorOptions extends McpConfigOptions, AcpOptions {
183
183
  }
184
184
  //#endregion
185
185
  //#region src/core.d.ts
186
- declare const unplugin: unplugin1.UnpluginInstance<DevInspectorOptions | undefined, boolean>;
186
+ declare const unplugin: unplugin0.UnpluginInstance<DevInspectorOptions | undefined, boolean>;
187
187
  //#endregion
188
188
  //#region src/core-external.d.ts
189
- declare const unpluginExternal: unplugin1.UnpluginInstance<DevInspectorOptions | undefined, boolean>;
189
+ declare const unpluginExternal: unplugin0.UnpluginInstance<DevInspectorOptions | undefined, boolean>;
190
190
  //#endregion
191
191
  //#region src/turbopack.d.ts
192
192
  interface TurbopackDevInspectorOptions extends DevInspectorOptions {
@@ -211,7 +211,7 @@ interface TurbopackDevInspectorOptions extends DevInspectorOptions {
211
211
  declare function turbopackDevInspector(options?: TurbopackDevInspectorOptions): any;
212
212
  //#endregion
213
213
  //#region src/index.d.ts
214
- declare const external: unplugin1.UnpluginInstance<DevInspectorOptions | undefined, boolean>;
214
+ declare const external: unplugin0.UnpluginInstance<DevInspectorOptions | undefined, boolean>;
215
215
  declare module "virtual:dev-inspector-mcp" {}
216
216
  //#endregion
217
217
  export { type CustomEditorConfig, type DevInspectorOptions, type EditorId, type McpConfigOptions, type TurbopackDevInspectorOptions, unplugin as default, unplugin, external, turbopackDevInspector, unpluginExternal };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpc-tech/unplugin-dev-inspector-mcp",
3
- "version": "0.0.42-beta.4",
3
+ "version": "0.0.42",
4
4
  "description": "Universal dev inspector plugin for React/Vue - inspect component sources and API calls in any bundler",
5
5
  "type": "module",
6
6
  "license": "MIT",