Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

mcp-code-mode

БесплатноБез исполняемых скриптовНе проверен

MCP orchestration via TypeScript execution. Use Code Mode for ALL external MCP tool calls; ~98% context reduction, type-safe.

MichelKerkmeesterот 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 walks handover.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 in a.b.c format (e.g., myservice.myservice.sites_list). To call the tool, use underscore format: myservice.myservice_sites_list(). The tool_info() function shows the correct calling syntax.

Basic Workflow

  1. Discover tools with search_tools() or list_tools().
  2. Confirm exact callable syntax with tool_info().
  3. 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 without await. A top-level await fails with "await is only valid in async functions". Keep await for promises inside an inner async function.
  4. Return structured state from the TypeScript block.

Full multi-tool examples live in references/workflows.md.


4. PROJECT CONFIGURATION

Two MCP Configuration Systems

**IMPORT

Полный SKILL.md на GitHub

Установить mcp-code-mode в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

mcp__code_mode__call_tool_chain
mcp__code_mode__list_tools
mcp__code_mode__search_tools
mcp__code_mode__tool_info

Вложенные файлы

INSTALL-GUIDE.mdREADME.mdROUTER.mdassets/config-template.mdassets/env-template.mdchangelog/v1.0.0.0.mdchangelog/v1.0.0.31.mdchangelog/v1.0.1.0.mdchangelog/v1.0.10.0.mdchangelog/v1.0.11.0.mdchangelog/v1.0.12.0.mdchangelog/v1.0.13.0.mdchangelog/v1.0.14.0.mdchangelog/v1.0.15.0.mdchangelog/v1.0.16.0.mdchangelog/v1.0.17.0.mdchangelog/v1.0.18.0.mdchangelog/v1.0.19.0.mdchangelog/v1.0.2.0.mdchangelog/v1.0.3.0.mdchangelog/v1.0.4.0.mdchangelog/v1.0.5.0.mdchangelog/v1.0.7.0.mdchangelog/v1.0.8.0.mdchangelog/v1.0.9.0.mdgraph-metadata.jsonleaf-aliases.jsonleaf-manifest.config.jsonleaf-manifest.jsonmanual-testing-playbook/clickup-and-chrome-via-cm/chrome-navigate-screenshot.mdmanual-testing-playbook/clickup-and-chrome-via-cm/clickup-create-read-delete.mdmanual-testing-playbook/clickup-and-chrome-via-cm/sibling-pair-handover.mdmanual-testing-playbook/core-tools/call-tool-chain-execution.mdmanual-testing-playbook/core-tools/list-tools-enumeration.mdmanual-testing-playbook/core-tools/search-tools-relevance.mdmanual-testing-playbook/core-tools/tool-info-schema.mdmanual-testing-playbook/env-var-prefixing/prefixed-env-load.mdmanual-testing-playbook/env-var-prefixing/unprefixed-env-not-found.mdmanual-testing-playbook/env-var-prefixing/validate-config-script.mdmanual-testing-playbook/manual-namespace-contract/correct-manual-tool-form.md

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-code-mode с