{"score":100,"grade":"A","scannedAt":"2026-12-05T23:10:12.275Z","scanner":"grades-0.2","signals":{"ecosystem":"npm","name":"@guardbee/mcp-token-optimizer","version":"0.2.1","license":"MIT","repository":"https://github.com/GuardBee/guardbee-mcp","firstPublished":"2026-11-18T19:58:30.231Z","lastPublished":"2026-12-04T12:21:46.588Z","versions":5,"maintainers":1,"files":26,"bytes":110053,"hosts":[]},"capabilities":{"network":true,"files":true,"shell":true,"env":true,"dynamicCode":false},"findings":[{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"dist/cli.js","line":142,"snippet":"…(args, \"--threshold\")), lang: flag(args, \"--lang\"), color: !process.env.NO_COLOR });"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"dist/context-hook.js","line":78,"snippet":"writeFileSync(stateFile(paths), JSON.stringify(state));"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"dist/mcp-defs.js","line":1,"snippet":"import { spawn } from \"child_process\";"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"dist/mcp-defs.js","line":92,"snippet":"const env = { ...process.env, CLAUDE_PLUGIN_ROOT: server.pluginRoot };"},{"rule":"network","severity":"info","title":"Makes network requests","file":"dist/mcp-defs.js","line":155,"snippet":"const res = await fetch(url, {"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"dist/mcp-defs.js","line":189,"snippet":"const env = { ...process.env, CLAUDE_PLUGIN_ROOT: server.pluginRoot };"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"dist/mcp-defs.js","line":235,"snippet":"writeFileSync(file, JSON.stringify([...previous, ...costs], null, 2));"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"dist/sessions.js","line":1,"snippet":"import { execFileSync } from \"child_process\";"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"dist/sessions.js","line":41,"snippet":"return parsePs(execFileSync(\"ps\", [\"-axo\", \"pid=,ppid=,etime=,%cpu=,tty=,command=\"], { encoding: \"utf8\", timeout: 5000, maxBuffer: 16 * 1024 * 1024 }));"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"dist/tool-output.js","line":100,"snippet":"writeFileSync(cooldownFile(paths), JSON.stringify(state));"}],"vulns":[],"installScripts":[],"server":{"name":"io.github.GuardBee/mcp-token-optimizer","description":"Finds what burns Claude Code tokens and stops it: idle sessions, unused or chatty MCP servers, overs","repository":"https://github.com/GuardBee/guardbee-mcp","version":"0.2.1"}}