You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cut the ~15k-token tool surface: server instructions, opt-in toolsets, and consolidating overlapping tools #214
Every session pays for the whole tool list before the agent does anything, and tool-selection accuracy drops as near-duplicate tools pile up. For many users, screencast-mcp is one server among several.
Evidence
A live tools/list is 41 tools and 58,260 bytes, about 14.6k tokens. pipeline alone is 7.2 KB because it repeats the schemas of 8 standalone tools. start_recording is 3.2 KB.
new McpServer(...) (src/index.ts:68) sets no instructions, so the intended record → sample → edit loop is not described anywhere on the wire.
Overlapping tools:
trim vs clip
convert (gif) vs export_gif
compress vs convert mp4 vs export_preset
Inconsistent parameters:
callout uses from/to; every other tool uses start/end.
quality exists only on pipeline and start_recording.
convertwidth accepts non-integers, and its fps/width are silently ignored for mp4/webm. export_gif takes an integer width of 64–1920.
The server already declares tools.listChanged: true, so dynamic toolsets are cheap to add.
Suggested approach
Add server instructions (the core loop, which tool to use when, and a sensitivity note).
Add SCREENCAST_TOOLSETS (for example capture,watch,edit,produce,audio), defaulting to all. Optionally add an enable_toolset tool that uses listChanged.
Consolidate or alias the overlaps above in the next minor release, keeping old names as deprecated aliases for one cycle.
Normalize the parameter names and units, and trim the descriptions. Then measure the token count again with a CI budget check.
Done when
Instructions are present.
Toolsets are documented.
The default surface is measurably smaller, and a CI check fails if it grows past a set budget.
Activity