MCP Client CLI is a cross-platform AI-powered .NET CLI tool designed to connect to and utilize Model Context Protocol (MCP) servers. Key features of the tool include:
- AI Chat: Start conversations with an AI assistant using MCP tools.
- Configuration: Connect to MCP Servers though the config in you
~/.llm/config.json.
To install the tool globally, simply run the following command:
dotnet tool install --global bjornkpu.aiAfter installing, you can run the tool using the ai command.
To update the tool, use:
dotnet tool update --global bjornkpu.aiTo uninstall it, use:
dotnet tool uninstall --global bjornkpu.aiStart a conversation with the AI assistant:
ai- Once the command starts it connects to the servers, you can type your messages directly into the console.
- Type
"exit"or empty return to quit the conversation. - The tool integrates with MCP servers to enhance the AI with tools and data.
Check what the tool can do through the help menu:
ai --helpIf you're contributing to or testing the tool locally:
- Clone the repository:
git clone https://github.com/bjornkpu/ai.git
cd ai- Build the project:
cd src/McpClient
dotnet build- Run the tool locally:
dotnet run- Run unit tests:
dotnet test