Guide for designing, implementing, and advising on MCP servers that use Code Mode — the pattern where an LLM writes and executes code to orchestrate API calls instead of calling individual tools one at a time. Use this skill whenever the user mentions Code Mode, MCP tool proliferation, context window bloat from MCP tools, programmatic tool calling, LLM code execution in MCP, building a Code Mode server, or wants to compress a large API into a small MCP surface. Also use when the user asks how to reduce token cost of MCP tools, how to expose an entire API over MCP efficiently, or how to implement search+execute patterns in FastMCP, Cloudflare Workers, or custom servers.
$npx -y skills add kastalien-research/thoughtbox --skill code-modeInstalls into the current project.
Run `npx skills use "https://github.com/kastalien-research/thoughtbox" --skill "kastalien-research/thoughtbox/code-mode"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/kastalien-research/thoughtbox" that are relevant to the current task. Run `npx skills add "https://github.com/kastalien-research/thoughtbox"` and select the relevant skills, then follow their instructions.