tkm:use-mcp

Automate MCP server tool selection and execution via Gemini CLI with JSON-only output.

Updated May 13, 2026
One-click install
npx skills add https://github.com/khapn-2933/agentic-coding-hands-on --skill tkm-use-mcp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tkm:use-mcp
Source: https://github.com/khapn-2933/agentic-coding-hands-on/tree/main/.claude/skills/use-mcp
Command: npx skills add https://github.com/khapn-2933/agentic-coding-hands-on --skill tkm-use-mcp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines access and execution of MCP server capabilities, ensuring efficient tool usage and maximizing context budget for crucial tasks.

Core Features & Use Cases

  • Intelligent Tool Selection: Automatically discovers available tools and selects the best match for the current request.
  • MCP Operations via Gemini CLI: Executes MCP operations using Gemini CLI, preserving context budget for essential work.
  • Fallback to mcp-manager Subagent: Utilizes mcp-manager subagent for tool discovery and execution when Gemini CLI is unavailable.
  • JSON-Only Response Format: Ensures structured, parseable output for further processing.

Quick Start

Execute a task via Gemini CLI: echo "task description" | gemini -y -m gemini-3-flash-preview

Frequently Asked Questions about tkm:use-mcp

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

FAQPage Schema
How do I automate MCP server tool selection and execution?

To automate MCP server tool selection, this Skill discovers available tools and intelligently selects the best match for your request. It executes the task automatically via Gemini CLI to maximize your context budget.

What happens to MCP operations when Gemini CLI is unavailable?

When Gemini CLI is unavailable, MCP operations fall back to the mcp-manager subagent. This ensures tool discovery and execution continue to function properly without interrupting your task automation workflow.

Can I use this to get structured JSON output from MCP tasks?

Yes, this Skill ensures a JSON-only response format for all MCP operations. This structured, parseable output is guaranteed whether you use Gemini CLI or the mcp-manager subagent fallback.

How do I execute an MCP task with Gemini CLI using this approach?

To execute an MCP task with Gemini CLI, pipe your task description into the Gemini CLI command. Use the provided script format to trigger the intelligent tool selection and execution process automatically.

Why should I use intelligent tool selection for MCP operations?

Intelligent tool selection for MCP operations ensures efficient tool usage and preserves your context budget for crucial tasks. It automates the discovery phase, preventing manual tool matching errors and wasted context.