ck:use-mcp

SkillDev tools

Utilize MCP server tools with intelligent discovery and execution.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the ck:use-mcp skill

What this skill tells your AI

The instructions your AI receives, as published by manhvann/codexkit in .agents/skills/use-mcp/SKILL.md and read by ahel’s review.

Execute MCP operations via Gemini CLI to preserve context budget.

Execution Steps

  1. Execute task via Gemini CLI (using stdin pipe for MCP support):

    # IMPORTANT: Use stdin piping, NOT -p flag (deprecated, skips MCP init)
    # Read model from .codex/.ck.json: gemini.model (default: gemini-3-flash-preview)
    echo "$ARGUMENTS. Return JSON only per GEMINI.md instructions." | gemini -y -m <gemini.model>
    
  2. Fallback to mcp_manager subagent (if Gemini CLI unavailable):

    • Use mcp_manager subagent to discover and execute tools
    • If the subagent got issues with the scripts of ck:mcp-management skill, use ck:mcp-builder skill to fix them
    • DO NOT create ANY new scripts
    • The subagent can only use MCP tools if any to achieve this task
    • If the subagent can't find any suitable tools, just report it back to the main agent to move on to the next step

Important Notes

  • MUST use stdin piping - the deprecated -p flag skips MCP initialization
  • Use -y flag to auto-approve tool execution
  • GEMINI.md auto-loaded: Gemini CLI automatically loads GEMINI.md from project root, enforcing JSON-only response format
  • Parseable output: Responses are structured JSON: {"server":"name","tool":"name","success":true,"result":<data>,"error":null}

Anti-Pattern (DO NOT USE)

# BROKEN - deprecated -p flag skips MCP server connections!
gemini -y -m <gemini.model> -p "..."

# ALSO BROKEN - --model flag with -p
gemini -y -p "..." --model gemini-3-flash-preview

Signals

GitHub stars
88
Forks
86
Last commit
Aug 2026
Advanced
Catalog kind
skill
Gateway key
ck-use-mcp
Source
github.com/manhvann/codexkit