All skills
github avatar

/mcp-cli

@e24be77 official
by githubgithub/awesome-copilot40k stars
5,040

Interface for MCP (Model Context Protocol) servers via CLI. Use when you need to interact with external tools, APIs, or data sources through MCP servers, list available MCP servers/tools, or call MCP tools from command line.

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/mcp-cli

This session only. Nothing lands on disk.

SKILL.md

≈58 tokens always: the name and description. ≈570 when used: this file.

MCP-CLI

Access MCP servers through the command line. MCP enables interaction with external systems like GitHub, filesystems, databases, and APIs.

Commands

Command Output
mcp-cli List all servers and tool names
mcp-cli <server> Show tools with parameters
mcp-cli <server>/<tool> Get tool JSON schema
mcp-cli <server>/<tool> '<json>' Call tool with arguments
mcp-cli grep "<glob>" Search tools by name

Add -d to include descriptions (e.g., mcp-cli filesystem -d)

Workflow

  1. Discover: mcp-cli → see available servers and tools
  2. Explore: mcp-cli <server> → see tools with parameters
  3. Inspect: mcp-cli <server>/<tool> → get full JSON input schema
  4. Execute: mcp-cli <server>/<tool> '<json>' → run with arguments

Examples

# List all servers and tool names
mcp-cli

# See all tools with parameters
mcp-cli filesystem

# With descriptions (more verbose)
mcp-cli filesystem -d

# Get JSON schema for specific tool
mcp-cli filesystem/read_file

# Call the tool
mcp-cli filesystem/read_file '{"path": "./README.md"}'

# Search for tools
mcp-cli grep "*file*"

# JSON output for parsing
mcp-cli filesystem/read_file '{"path": "./README.md"}' --json

# Complex JSON with quotes (use heredoc or stdin)
mcp-cli server/tool <<EOF
{"content": "Text with 'quotes' inside"}
EOF

# Or pipe from a file/command
cat args.json | mcp-cli server/tool

# Find all TypeScript files and read the first one
mcp-cli filesystem/search_files '{"path": "src/", "pattern": "*.ts"}' --json | jq -r '.content[0].text' | head -1 | xargs -I {} sh -c 'mcp-cli filesystem/read_file "{\"path\": \"{}\"}"'

Options

Flag Purpose
-j, --json JSON output for scripting
-r, --raw Raw text content
-d Include descriptions

Exit Codes

  • 0: Success
  • 1: Client error (bad args, missing config)
  • 2: Server error (tool failed)
  • 3: Network error

Source: SKILL.md on GitHub

No alerts16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill is a legitimate interface for interacting with Model Context Protocol (MCP) servers via the command line. It facilitates tasks such as filesystem navigation and API interaction. No malicious patterns, obfuscation, or unauthorized access attempts were detected.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer7mo

    1 file scanned · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at e24be77. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 18 hours ago.

Activeupdated 8 months ago
  • MCP
  • CLI
  • model-context-protocol
  • tools
  • github
  • filesystem
  • apis
  • integration

README badge

README badge for github/awesome-copilot/mcp-cli

Provides command-line access to MCP (Model Context Protocol) servers, enabling discovery and execution of external tools, APIs, and data sources through a simple CLI interface. Use this to list available MCP servers, inspect tool schemas, and call tools with JSON arguments without writing client code.

Generated from the current SKILL.md.

What is MCP and how does this skill use it?
MCP (Model Context Protocol) is a standard for connecting agents to external systems. This skill provides a CLI to discover and call MCP servers and their tools from the command line.
Can I use this to interact with GitHub, databases, or APIs?
Yes. MCP servers can expose tools for GitHub, filesystems, databases, and APIs. This skill lets you list available servers and call their tools via CLI.
How do I discover what tools are available?
Run `mcp-cli` to list all servers and tool names, then `mcp-cli <server>` to see tools with parameters, or `mcp-cli grep` to search by name.
Can I parse the output programmatically?
Yes. Use the `--json` flag to get JSON output suitable for scripting and piping to tools like jq.
What exit codes should I expect?
Exit code 0 means success, 1 is a client error (bad arguments or config), 2 is a server/tool failure, and 3 is a network error.

Generated from the current SKILL.md. These answers refresh after source changes.