Skip to content

Commit 9e50a68

Browse files
committed
updated description for getNetworkSuccesLogs
1 parent 7eef5e0 commit 9e50a68

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

browser-tools-mcp/mcp-server.ts

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,23 @@ server.tool("getNetworkErrorLogs", "Check our network ERROR logs", async () => {
8585
// };
8686
// });
8787

88-
// Return all XHR/fetch requests
89-
server.tool("getNetworkSuccessLogs", "Check ALL our network logs", async () => {
90-
const response = await fetch(`http://127.0.0.1:${PORT}/network-success`);
91-
const json = await response.json();
92-
return {
93-
content: [
94-
{
95-
type: "text",
96-
text: JSON.stringify(json, null, 2),
97-
},
98-
],
99-
};
100-
});
88+
// Return network success logs
89+
server.tool(
90+
"getNetworkSuccessLogs",
91+
"Check our network SUCCESS logs",
92+
async () => {
93+
const response = await fetch(`http://127.0.0.1:${PORT}/network-success`);
94+
const json = await response.json();
95+
return {
96+
content: [
97+
{
98+
type: "text",
99+
text: JSON.stringify(json, null, 2),
100+
},
101+
],
102+
};
103+
}
104+
);
101105

102106
// Add new tool for taking screenshots
103107
server.tool(

0 commit comments

Comments
 (0)