#!/bin/sh
# Progressive tool discovery with Apify's mcpc 0.7.0: connect to 2 browser MCP servers,
# search their tools, and load only the one you need. Run on October 12, 2026.
# Then count tokens: uv run --with tiktoken python -c "import tiktoken,sys; print(len(tiktoken.get_encoding('o200k_base').encode(open(sys.argv[1]).read())))" grep.txt
set -eu
npx -y @apify/mcpc@0.7.0 connect mcp.json:playwright @pw
npx -y @apify/mcpc@0.7.0 connect mcp.json:devtools @dt
npx -y @apify/mcpc@0.7.0 grep screenshot > grep.txt
npx -y @apify/mcpc@0.7.0 @pw tools-get browser_take_screenshot > get.txt
npx -y @apify/mcpc@0.7.0 close @pw
npx -y @apify/mcpc@0.7.0 close @dt
