mcp-cli

Discover and invoke MCP server tools, resources, and prompts via the mcp CLI.

154|1|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/haojing8312/WorkClaw --skill mcp-cli-haojing8312
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-cli
Source: https://github.com/haojing8312/WorkClaw/tree/main/.claude/skills/mcp-cli
Command: npx skills add https://github.com/haojing8312/WorkClaw --skill mcp-cli-haojing8312

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Running MCP servers usually requires setting up permanent integrations, which clutters the context and adds configuration overhead. Users need a way to explore and use MCP capabilities on the fly.

Core Features & Use Cases

  • On‑demand discovery – list available tools, resources, and prompts of any MCP server at runtime.
  • Dynamic tool invocation – call a selected tool with JSON parameters without pre‑installed bindings.
  • Alias management – create short names for servers to streamline repeated calls during a session.
  • Support for multiple transports – works with local executables, Docker containers, HTTP endpoints, and SSE streams.
  • Debugging utilities – view server logs, format outputs as JSON, and handle errors gracefully.

Quick Start

Use the assistant to list the tools offered by a target MCP server with the mcp CLI.

Frequently Asked Questions about mcp-cli

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

FAQPage Schema
How do I discover and call MCP server tools without setting up a permanent integration?

You can discover and call MCP server tools without permanent integration by using the mcp CLI to list available resources and invoke selected tools with JSON parameters on demand during a conversational session.

Can I run MCP server capabilities from Docker containers or HTTP endpoints?

Yes, you can run MCP server capabilities from Docker containers, HTTP endpoints, local executables, and SSE streams. The mcp CLI supports multiple transports to invoke tools dynamically without pre-installed bindings.

What is on-demand tool discovery for MCP servers and when do I need it?

On-demand tool discovery for MCP servers is the process of listing available tools, resources, and prompts at runtime. You need it when you want to explore MCP capabilities on the fly without cluttering context or adding configuration overhead.

How do I manage repeated MCP server calls during a single session?

You can manage repeated MCP server calls by creating short alias names for your servers using the mcp CLI. This alias management feature streamlines repeated tool invocations throughout a conversational session.

Do I need to install any specific CLI tool to explore MCP resources on the fly?

Yes, you need the mcp CLI installed and available in your PATH to explore MCP resources on the fly. This command-line tool executes the discovery and call commands required for dynamic tool invocation without permanent setup.

How do I debug MCP server outputs and handle errors when invoking tools dynamically?

You can debug MCP server outputs and handle errors by using the mcp CLI's built-in debugging utilities, which allow you to view server logs, format outputs as JSON, and handle errors gracefully during dynamic tool invocation.