I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

MCP-Tools-Cli
Cliente de línea de comandos para interactuar con los servidores del Protocolo de contexto del modelo (MCP).
1
Github Watches
1
Github Forks
1
Github Stars
mcp-tools-cli
This is a command-line client for interacting with Model Context Protocol (MCP) servers.
Installation
You can install mcp-tools-cli
using pip:
pip install mcp-tools-cli
Configuration
The client uses a configuration file named mcp_config.json
to store the connection details for MCP servers. Create a file named mcp_config.json
with the following content:
{
"mcpServers": {
"time": {
"command": "python",
"args": ["-m", "mcp_server_time", "--local-timezone=America/New_York"]
}
}
}
Replace the values with your own MCP server configurations.
Usage
mcp-tools-cli <action> --mcp-name <mcp_name> [options]
Arguments
-
action
(required): The action to perform. Must be one of:-
list-tools
: Lists the available tools on the MCP server. -
call-tool
: Calls a specific tool on the MCP server.
-
-
--mcp-name
(required): The name of the MCP server to connect to, as defined inmcp_config.json
. -
--tool-name
(required forcall-tool
action): The name of the tool to call. -
--tool-args
(optional): Arguments for the tool. Can be a JSON string or a single string value. If a single string value is not a valid JSON, it will be passed as thequery
argument to the tool. -
--config-path
(optional): Path to themcp_config.json
file. Defaults tomcp_config.json
in the current directory.
Configuration
The client uses a configuration file named mcp_config.json
to store the connection details for MCP servers. The file should be in the following format:
{
"mcpServers": {
"<mcp_name>": {
"command": "<command to run the server>",
"args": ["<argument1>", "<argument2>", ...],
"env": {
"<environment variable name>": "<environment variable value>",
...
}
},
...
}
}
Replace <mcp_name>
with the name of your MCP server (e.g., time
). The command
, args
, and env
fields specify how to run the server.
Examples
A sample using the Time MCP Server is provided in mcp_config.sample.json. If you want to use this, please execute
pip install mcp-server-time
beforehand.
- List available tools:
mcp-tools-cli list-tools --mcp-name time --config-path mcp_config.sample.json
- Call the
get_current_time
tool with a query:
mcp-tools-cli call-tool --mcp-name time --tool-name get_current_time --config-path mcp_config.sample.json
Error Handling
The client will print error messages to the console if any errors occur, such as:
- FileNotFoundError: If the config file is not found.
- json.JSONDecodeError: If the config file is not a valid JSON file.
- ValueError: If the MCP server is not found in the config file, or if the command is missing.
- argparse.ArgumentError: If there are invalid command-line arguments.
- Other exceptions during tool execution.
相关推荐
I find academic articles and books for research and literature reviews.
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Advanced software engineer GPT that excels through nailing the basics.
Converts Figma frames into front-end code for various mobile frameworks.
Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.
La aplicación AI de escritorio todo en uno y Docker con trapo incorporado, agentes de IA, creador de agentes sin código, compatibilidad de MCP y más.
Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx
Plataforma de automatización de flujo de trabajo de código justo con capacidades de IA nativas. Combine el edificio visual con código personalizado, auto-anfitrión o nube, más de 400 integraciones.
Espejo dehttps: //github.com/agentience/practices_mcp_server
🧑🚀 全世界最好的 llM 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Resumen de los mejores recursos del mundo.
Reviews

user_oF76JCkq
The Vibe-Coder MCP Server by crazyrabbitLTC has revolutionized my coding experience! It's user-friendly and offers robust features that cater to all my development needs. The seamless integration and efficient performance make it a must-have for any serious coder. Highly recommend checking it out at https://mcp.so/server/mcp-vibecoder/crazyrabbitLTC!