@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.
- package/dist/config-updater.cjs +10 -0
- package/dist/config-updater.js +10 -0
- package/dist/index.d.cts +4 -4
- package/package.json +1 -1
package/dist/config-updater.cjs
CHANGED
|
@@ -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;
|
package/dist/config-updater.js
CHANGED
|
@@ -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
|
|
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:
|
|
186
|
+
declare const unplugin: unplugin0.UnpluginInstance<DevInspectorOptions | undefined, boolean>;
|
|
187
187
|
//#endregion
|
|
188
188
|
//#region src/core-external.d.ts
|
|
189
|
-
declare const unpluginExternal:
|
|
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:
|
|
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