mirror of
https://github.com/AgentDeskAI/browser-tools-mcp.git
synced 2025-06-27 00:41:26 +00:00
removed last 50 limit in mcp server
This commit is contained in:
parent
45f6b3526c
commit
2733e83f21
@ -44,12 +44,11 @@ server.tool(
|
|||||||
async () => {
|
async () => {
|
||||||
const response = await fetch(`http://127.0.0.1:${PORT}/console-errors`);
|
const response = await fetch(`http://127.0.0.1:${PORT}/console-errors`);
|
||||||
const json = await response.json();
|
const json = await response.json();
|
||||||
const last50 = json.slice(-50);
|
|
||||||
return {
|
return {
|
||||||
content: [
|
content: [
|
||||||
{
|
{
|
||||||
type: "text",
|
type: "text",
|
||||||
text: JSON.stringify(last50, null, 2),
|
text: JSON.stringify(json, null, 2),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user