MCP Chat
MCP Chat
MCP Chat ist eine Kommandozeilen-Anwendung, die interaktive Chat-Funktionen mit KI-Modellen über die Anthropic API ermöglicht. Die Anwendung unterstützt Dokumentabruf, befehlsbasierte Prompts sowie erweiterbare Tool-Integrationen über die MCP-Architektur (Model Control Protocol).
Voraussetzungen
Python 3.9+
Anthropic API Key
Related MCP server: MCP Chat
Einrichtung
Schritt 1: Umgebungsvariablen konfigurieren
Erstellen oder bearbeiten Sie die Datei
.envim Stammverzeichnis des Projekts und überprüfen Sie, dass die folgenden Variablen korrekt gesetzt sind:
ANTHROPIC_API_KEY="" # Enter your Anthropic API secret keySchritt 2: Abhängigkeiten installieren
Option 1: Einrichtung mit uv (empfohlen)
uv ist ein schneller Installer und Resolver für Python-Pakete.
Installieren Sie uv, falls es noch nicht installiert ist:
pip install uvErstellen und aktivieren Sie eine virtuelle Umgebung:
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activateInstallieren Sie die Abhängigkeiten:
uv pip install -e .Führen Sie das Projekt aus
uv run main.pyOption 2: Einrichtung ohne uv
Erstellen und aktivieren Sie eine virtuelle Umgebung:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activateInstallieren Sie die Abhängigkeiten:
pip install anthropic python-dotenv prompt-toolkit "mcp[cli]==1.8.0"Führen Sie das Projekt aus
python main.pyVerwendung
Grundlegende Interaktion
Geben Sie einfach Ihre Nachricht ein und drücken Sie die Eingabetaste, um mit dem Modell zu chatten.
Dokumentabruf
Verwenden Sie das @-Symbol gefolgt von einer Dokument-ID, um den Dokumentinhalt in Ihre Abfrage einzubeziehen:
> Tell me about @deposition.mdBefehle
Verwenden Sie das /-Präfix, um im MCP-Server definierte Befehle auszuführen:
> /summarize deposition.mdBefehle werden beim Drücken der Tabulatortaste automatisch vervollständigt.
Entwicklung
Hinzufügen neuer Dokumente
Bearbeiten Sie die Datei mcp_server.py, um dem Wörterbuch docs neue Dokumente hinzuzufügen.
Implementieren von MCP-Funktionen
Um die MCP-Funktionen vollständig zu implementieren:
Vervollständigen Sie die TODOs in
mcp_server.pyImplementieren Sie die fehlende Funktionalität in
mcp_client.py
Lint- und Typprüfung
Es sind keine Lint- oder Typprüfungen implementiert.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
MCP server for Serena — tasks, notes & projects from Claude, Codex, Cursor & ChatGPT.
Manage a Discord server from Claude, ChatGPT or any MCP client. Sign in with Discord, no bot token.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA command-line interface application for interactive chat with AI models via the Anthropic API. It supports document retrieval, command-based prompts, and extensible tool integrations through the MCP architecture.-
- FlicenseAqualityDmaintenanceA command-line interface application enabling interactive chat with AI models via the Anthropic API. It supports document retrieval, command-based prompts, and extensible tool integrations through the MCP architecture.2-
- FlicenseNot gradedqualityDmaintenanceA command-line interface application that enables interactive chat with AI models via the Anthropic API, supporting document retrieval and command-based prompts through the MCP architecture.-
- FlicenseNot gradedqualityDmaintenanceA CLI chat application enabling interactive conversations with AI models via the Anthropic API, with document retrieval and command-based prompt support through the MCP architecture.-