removed last 50 limit in mcp server

This commit is contained in:
Ted Werbel 2025-02-10 04:23:26 -05:00
parent 45f6b3526c
commit 2733e83f21

View File

@ -44,12 +44,11 @@ server.tool(
async () => {
const response = await fetch(`http://127.0.0.1:${PORT}/console-errors`);
const json = await response.json();
const last50 = json.slice(-50);
return {
content: [
{
type: "text",
text: JSON.stringify(last50, null, 2),
text: JSON.stringify(json, null, 2),
},
],
};