{"type":"mcp_client","name":"mcp-cli","description":"This repository offers a CLI tool for interacting with Model Context Provider servers, supporting OpenAI and Ollama, and featuring chat and interactive modes with conversation history and server-aware tools.","category":"Developer Tools","language":"Python","stars":1986,"forks":169,"owner":"chrishayuk","github_url":"https://github.com/chrishayuk/mcp-cli","homepage":null,"setup":"## Setup\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/chrishayuk/mcp-cli\ncd mcp-cli\n```\n\n2. Install UV:\n\n```bash\npip install uv\n```\n\n3. Resynchronize dependencies:\n\n```bash\nuv sync --reinstall\n```\n- Python 3.8 or higher is required.\n- Required dependencies (see Installation) must be installed.\n- If using ollama, ollama should be installed and running.\n- If using openai, an api key should be set in your environment variables (OPENAI_API_KEY=yourkey).","tools":"## Available Tools\n\n1.  Protocol-level communication with the Model Context Provider (allows interaction with the server).\n2.  Dynamic tool and resource exploration (enables discovering available tools and resources).\n3.  Support for multiple providers and models (supports OpenAI and Ollama with default models).\n4.  Enhanced modular chat system with server-aware tools (provides a conversational interface with tools).\n5.  Rich command system with context-aware completions (offers a command-line interface with helpful suggestions).\n6.  Conversation History (tracks, reviews, filters, and exports messages exchanged during a session).\n7.  Chat Mode (conversational interface with LLM).\n8.  Interactive Mode (command-line interface with slash commands).\n9.  `/help` (Show available commands).\n10. `/tools` (Display all available tools with their server information).\n11. `/conversation` or `/ch` (Show the conversation history).\n12. `/save <filename>` (Save conversation history to a JSON file).\n13. `/compact` (Condense conversation history into a summary).\n14. `/cls` (Clear the screen while keeping conversation history).\n15. `/clear` (Clear both the screen and conversation history).\n16. `/interrupt`, `/stop`, or `/cancel` (Interrupt running tool execution).\n17. `/provider <name>` (Change the current LLM provider).\n18. `/model <name>` (Change the current LLM model).","faq":null,"created_at":"2024-11-30T00:06:19+00:00","updated_at":"2025-03-28T21:32:14+00:00","source_url":"https://model-context-protocol.com/clients/cli-tool-model-context-provider-openai","related_articles":[]}