MCP-CLI

MCP-CLI

By winterfx GitHub

cli tool for inspect mcp server

Overview

what is MCP-CLI?

MCP-CLI is a command-line tool designed for managing and interacting with MCP servers.

how to use MCP-CLI?

To use MCP-CLI, install it using the Go package manager and create a configuration file to define your MCP servers. You can then use various commands to manage and inspect the servers.

key features of MCP-CLI?

  • Manage multiple MCP servers
  • Interactive command-line interface
  • Support for viewing and invoking server tools
  • Ability to view server prompts and resources
  • Tool invocation support

use cases of MCP-CLI?

  1. Listing all configured MCP servers
  2. Inspecting specific servers for their status and configuration
  3. Invoking tools and managing resources on MCP servers

FAQ from MCP-CLI?

  • What programming language is MCP-CLI written in?

MCP-CLI is written in Go.

  • How do I install MCP-CLI?

You can install it using the command: go install github.com/winterfx/mcp-cli@latest.

  • Is there a license for MCP-CLI?

Yes, MCP-CLI is distributed under the MIT License.

Content

MCP-CLI

MCP-CLI is a command-line tool for managing and interacting with MCP (Machine Conversation Protocol) servers.

Features

  • Manage multiple MCP servers
  • Interactive command-line interface
  • Support for viewing and calling server Tools
  • Support for viewing server Prompts and Resources
  • Support for tool invocation

Installation

go install github.com/yourusername/mcp-cli@latest

Configuration

Create configuration file ~/.mcp-cli.json:

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["@playwright/mcp@latest"]
    }
    ...
  }
}

Usage

List All Servers

$ mcp-cli server list
Server NameCommandArgsEnvironment
playwrightnpx@playwright/mcp@latest

Inspect Server

$ ./mcp-cli server inspect -n playwright
Inspecting server: {Command:npx Args:[@playwright/mcp@latest] Env:map[]}
Initializing MCP client...
Entering interactive shell for server: playwright
Type 'help' for available commands, 'exit' to quit

playwright> tools
total 21 tools
NAMEDESCRIPTIONPARAMETERS
browser_closeClose the page{"type": "object", "properties": {}}
browser_waitWait for a specified time in seconds{"type": "object", "properties": {"time": {"description": "The time to wait in seconds", "type": "number"}}, "required": ["time"]}

Interactive Commands

> tools     # Show available tools
> prompts   # Show available prompts
> resources # Show available resources
> call tool-name {"param": "value"}  # Call a tool
> help      # Show help information
> exit      # Exit

Tool Call Example

License

MIT License

No tools information available.
No content found.