mcpli

Manage MCP servers via add, list, discover, and invoke CLI commands.

30|5|Updated Aug 9, 2012
One-click install
npx skills add https://github.com/juanibiapina/dotfiles --skill mcpli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcpli
Source: https://github.com/juanibiapina/dotfiles/tree/main/dotfiles/agents/.agents/skills/mcpli
Command: npx skills add https://github.com/juanibiapina/dotfiles --skill mcpli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing MCP servers, their tools, and interactions from a single, cohesive CLI can be verbose and error-prone. mcpli provides a unified interface to configure servers, discover available tools, and execute tasks with consistent behavior.

Core Features & Use Cases

  • Add and configure MCP servers with cached tool definitions for quick access.
  • List configured servers and their available tools, and discover tool details on demand.
  • Invoke tools on a chosen server with JSON arguments and environment-variable expansion for flexible workflows.

Quick Start

Add a server with mcpli add <name> <url> to fetch and cache its tools for discovery.

Frequently Asked Questions about mcpli

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

FAQPage Schema
How do I manage multiple MCP servers from a single command line interface?

Adding an MCP server to your CLI involves fetching and caching its tool definitions for quick local access. You use the add command with the server name and URL, which stores the configuration in a local JSON file for subsequent discovery and invocation.

Can I pass JSON arguments when invoking tools on an MCP server?

Yes, you can pass JSON arguments when invoking tools on an MCP server. The CLI workflow includes JSON-argument validation to ensure correctly formatted payloads are sent during task execution, while also supporting environment variable expansion for flexible configurations.

What is the best way to discover available tools across configured MCP servers?

The best way to discover available tools across configured MCP servers is to use a CLI that lists configured servers and fetches tool details on demand. It caches tool definitions locally after adding a server, enabling quick discovery without repeated network requests.

How do I refresh cached tool definitions for an MCP server?

You refresh cached tool definitions for an MCP server by triggering an update-based refresh mechanism. This synchronizes the locally stored tool configurations with the latest versions available on the remote server, ensuring your discovery and invocation commands use current definitions.

Does mcpli require any external dependencies to manage MCP servers?

No, mcpli does not require any external dependencies to manage MCP servers. It operates independently to coordinate server interactions, storing configurations and cached tool definitions locally in a JSON file within your user config directory.