@linkegringo/mcp 1.0.4 → 1.0.5
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.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -150,7 +150,7 @@ async function probeViaWebSocket(port, wsPath, timeoutMs = 2e3) {
|
|
|
150
150
|
};
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
-
async function checkChromeCdp(port = 9222, host = "127.0.0.1", timeoutMs =
|
|
153
|
+
async function checkChromeCdp(port = 9222, host = "127.0.0.1", timeoutMs = 5e3) {
|
|
154
154
|
const activePortData = findDevToolsActivePort();
|
|
155
155
|
if (activePortData) {
|
|
156
156
|
const wsResult = await probeViaWebSocket(activePortData.port, activePortData.wsPath, timeoutMs);
|
|
@@ -1260,7 +1260,7 @@ import { z as z11 } from "zod";
|
|
|
1260
1260
|
var checkChromeCdpInputSchema = z11.object({
|
|
1261
1261
|
port: z11.number().default(9222).describe("Porta do Chrome DevTools Protocol a ser testada (padr\xE3o 9222)"),
|
|
1262
1262
|
host: z11.string().default("127.0.0.1").describe("Host do Chrome (padr\xE3o 127.0.0.1)"),
|
|
1263
|
-
timeoutMs: z11.number().default(
|
|
1263
|
+
timeoutMs: z11.number().default(5e3).describe("Tempo limite em milissegundos para a conex\xE3o")
|
|
1264
1264
|
});
|
|
1265
1265
|
async function handleCheckChromeCdp(input) {
|
|
1266
1266
|
const status = await checkChromeCdp(input.port, input.host, input.timeoutMs);
|