Skip to content

Instantly share code, notes, and snippets.

@chenhunghan
chenhunghan / gist.md
Last active March 15, 2026 11:50
One Prompt to Save 90% Context for Any MCP Server

Local Code Mode for MCP

Most MCP servers just wrap CRUD JSON APIs into tools — I did it too with scim-mcp and garmin-mcp-app. It works, until you realize a tool call dumps 50KB+ into context.

MCP isn't dead — but we need to design MCP tools with the context window in mind.