mcp-code-mode
БесплатноБез исполняемых скриптовНе проверенMCP orchestration via TypeScript execution. Use Code Mode for ALL external MCP tool calls; ~98% context reduction, type-safe.
от MichelKerkmeester★ 40 звёзд на GitHubОб этом скилле
MCP Code Mode
Execute TypeScript code with direct access to 200+ MCP tools through progressive disclosure. Code Mode eliminates context overhead by loading tools on-demand, enabling complex multi-tool workflows in a single execution with state persistence and built-in error handling.
1. WHEN TO USE
Use Code Mode When
MANDATORY for ALL MCP tool calls:
- ✅ Calling ClickUp, Notion, Figma, MyService, Chrome DevTools, or any other MCP tools
- ✅ Accessing external APIs through MCP servers
- ✅ Managing tasks in project management tools
- ✅ Interacting with design tools, databases, or services
- ✅ Browser automation and web interactions
Do NOT Use Code Mode For
Use native tools instead:
- ❌ File operations (use Read, Write, Edit tools)
- ❌ Text searching (use Grep tool)
- ❌ File discovery (use Glob tool)
- ❌ Bash commands (use Bash tool)
- ❌ Continuity recovery (use
/speckit:resume, which walkshandover.md -> _memory.continuity -> spec docs)
See Section 4 for details on Native MCP vs Code Mode distinction.
Common Use Cases
| Scenario | Code Mode Approach | Benefit |
|---|---|---|
| Create ClickUp task | call_tool_chain({ code: "clickup_official.clickup_official_clickup_create_task({...})" }) |
Type-safe, single execution |
| Multi-tool workflow | Figma → ClickUp → MyService in one execution | State persists, 5× faster |
| Browser automation | Chrome DevTools MCP for testing/screenshots | Sandboxed, reliable |
| Design-to-implementation | Fetch Figma design → Create task → Update CMS | Atomic workflow |
| External API access | Any MCP server (Notion, GitHub, etc.) | Progressive tool loading |
2. SMART ROUTING
mcp-code-mode is a standalone skill with one workflow mode, so a request that names an MCP tool, an external service, a multi-tool workflow or a browser automation need selects it.
A native file, search, shell or continuity request goes to the runtime's own tools instead, and a Code Mode call there exhausts context for nothing.
references/workflows.md is the default quick reference and loads first on every run, then the reference page the matched intent maps to loads next.
A run that matches no intent returns UNKNOWN_FALLBACK with the disambiguation checklist there rather than guessing.
Read ROUTER.md before selecting skill-local resources; open only the matched files.
3. HOW IT WORKS
Critical Naming Pattern
The #1 most common error when using Code Mode is using wrong function names. All MCP tool calls MUST follow this pattern:
{manual_name}.{manual_name}_{tool_name}
Examples:
✅ Correct:
myservice.myservice_sites_list({});
clickup_official.clickup_official_clickup_create_task({...});
figma.figma_get_file({...});
❌ Wrong (missing manual prefix):
myservice.sites_list({}); // Error: Tool not found
clickup_official.clickup_create_task({...}); // Error: Tool not found
See references/naming-convention.md for complete guide with troubleshooting.
Context Parameter
Many Code Mode tools require a context parameter (15-25 words) for analytics:
myservice.myservice_sites_list({
context: "Listing sites to identify collection structure for CMS update"
});
This helps with usage tracking and debugging.
Tool Name Translation
Note:
list_tools()returns names ina.b.cformat (e.g.,myservice.myservice.sites_list). To call the tool, use underscore format:myservice.myservice_sites_list(). Thetool_info()function shows the correct calling syntax.
Basic Workflow
- Discover tools with
search_tools()orlist_tools(). - Confirm exact callable syntax with
tool_info(). - Execute
call_tool_chain()with{manual_name}.{manual_name}_{tool_name}calls. The code runs inside a non-async function and tool calls return their result directly, so call them withoutawait. A top-levelawaitfails with "await is only valid in async functions". Keepawaitfor promises inside an innerasyncfunction. - Return structured state from the TypeScript block.
Full multi-tool examples live in references/workflows.md.
4. PROJECT CONFIGURATION
Two MCP Configuration Systems
**IMPORT
Установить mcp-code-mode в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
mcp__code_mode__call_tool_chainmcp__code_mode__list_toolsmcp__code_mode__search_toolsmcp__code_mode__tool_infoВложенные файлы
FAQ
Что делает скилл mcp-code-mode?
MCP orchestration via TypeScript execution. Use Code Mode for ALL external MCP tool calls; ~98% context reduction, type-safe.
Как установить скилл mcp-code-mode?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mcp-code-mode запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic