ck:use-mcp

Automate MCP tool execution via Gemini CLI with stdin piping and JSON results.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/haidonglethqb/CloudSchool --skill ck-use-mcp-haidonglethqb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ck:use-mcp
Source: https://github.com/haidonglethqb/CloudSchool/tree/main/.qwen/skills/use-mcp
Command: npx skills add https://github.com/haidonglethqb/CloudSchool --skill ck-use-mcp-haidonglethqb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the orchestration and execution of MCP server tools via Gemini CLI, enabling context-preserving, deterministic operations.

Core Features & Use Cases

  • CLI-driven MCP execution: Run MCP tasks through Gemini CLI with stdin piping and safe defaults.
  • Discovery and fallbacks: Leverage the mcp-manager subagent and ck:mcp-builder for robust tool discovery and repair when scripts have issues.
  • Context-budget safety: Ensure operations preserve context and minimize drift across steps for repeatable results.

Quick Start

Describe the task you want to run and let the Gemini CLI execute the MCP operation.

Frequently Asked Questions about ck:use-mcp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate MCP tool execution via Gemini CLI to preserve context budget?

Automate MCP tool execution via Gemini CLI by using stdin piping for initialization and applying safe defaults. This approach ensures deterministic operations and preserves context budget across multi-step tasks.

What is MCP task orchestration and when do I need it?

MCP task orchestration coordinates multi-step MCP server tool execution to maintain context-budget safety and minimize drift. You need it for deterministic CLI-driven operations requiring discovery and fallback mechanisms.

Can I use stdin piping to initialize MCP operations through Gemini CLI?

Yes, you can use stdin piping to initialize MCP operations through Gemini CLI. The process supports JSON-formatted results with built-in safety checks for repeatable execution.

What's the best way to handle MCP script failures and discover fallback tools?

Handle MCP script failures by leveraging the mcp-manager subagent and ck:mcp-builder for robust tool discovery and repair. These subagents provide automated fallback execution when scripts encounter issues.

Why does my multi-step MCP task lose context across execution steps?

Multi-step MCP tasks lose context due to drift without proper orchestration. Applying context-budget safety checks and deterministic CLI execution ensures operations preserve context and yield repeatable results.