MCP ExplorerExplorer

Mcps World

@GeorgesZamon a year ago
1 MIT
FreeCommunity
AI Systems

Overview

What is Mcps World

mcpGPT is a Streamlit application that provides an enriched chat interface inspired by ChatGPT’s UI, featuring authentication management and tool access control based on user roles.

Use cases

mcpGPT is suitable for secure conversational applications where different user roles require varying levels of access to tools and functionalities, such as team collaboration, administrative tasks, and automated responses using AI.

How to use

To use mcpGPT, clone the repository, install the required dependencies, and run the application using Streamlit. Default authentication credentials are provided, which can be customized as needed.

Key features

Key features include role-based authentication (normal, admin, root), a modern chat interface with file upload support, dynamic API configuration, and automated loading and management of tools for admins and root users.

Where to use

mcpGPT can be utilized in organizations needing secure chat interfaces for customer support, internal communications, or integrated AI tools, as well as educational settings for interactive learning and development environments.

Content

mcpGPT

mcpGPT est une application Streamlit qui offre une interface de chat enrichie, inspirée de l’UI de ChatGPT, avec gestion d’authentification et contrôle d’accès aux outils.

Fonctionnalités

  • Authentification :

    • Trois rôles prédéfinis : normal, admin, root.
    • Accès différencié aux outils selon le rôle (normal sans outils, admin/root avec outils).
  • Interface de chat :

    • Utilisation de st.chat_message et st.chat_input pour une expérience utilisateur moderne.
    • Téléchargement de fichiers directement dans la page de chat (PDF, Excel, Word, PowerPoint, TXT, CSV).
    • Le contenu des fichiers est automatiquement extrait et inclus dans le contexte de la conversation.
  • Page de configuration API :

    • Mettre à jour l’api_type, api_base, api_key, api_version, et le modèle (model).
    • Enregistrement dynamique et initialisation d’OpenAI.
  • Gestion des outils :

    • Chargement automatique des scripts tools/tool-*.py.
    • Admin et root peuvent uploader, lister et supprimer des outils via l’interface.

Installation

  1. Cloner le dépôt :

    git clone https://votre-repo/mcpGPT.git
    cd mcpGPT
    
  2. Installer les dépendances :

    pip install -r requirements.txt
    
  3. Lancer l’application :

    streamlit run improved_mcpGPT.py
    

Authentification

Les identifiants par défaut sont définis dans improved_mcpGPT.py :

CREDENTIALS = {
    "normal": "normal_pass",
    "admin":  "admin_pass",
    "root":   "root_pass"
}

Vous pouvez modifier ces valeurs selon vos besoins.

Personnalisation

  • Configurer l’API OpenAI dans DEFAULT_CONFIG.
  • Ajouter vos propres outils dans le dossier tools/, en respectant la structure :
    function_schema = { ... }
    description = "Description de l’outil"
    def function_call(...):
        ...
    

Licence

MIT

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers