MCP Code Mode

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.

kastalien-research 8919b2e 13.0 KB Updated

File contents

kastalien-research/thoughtbox/tree/main/.claude/skills/code-mode commit 8919b2e7e9

Frequently asked questions

npx skillmds@latest add kastalien-research/mcp-code-mode-2