MCP: Model Context Protocol

  • Linux
  • Apple

Integrations

  • Uses FastAPI to create a REST API server that handles requests for managing conversation context and interacting with language models.

  • Integrates with Google Gemini API to enable context-aware conversations with the language model, allowing the system to maintain conversation history across multiple requests.

MCP:模型上下文协议

项目描述

MCP(模型上下文协议)是与语言模型(LLM)交互时管理上下文的系统。该系统允许您保存请求之间的对话上下文,这使得语言模型能够“记住”以前的交互。

特点

  • 维护和管理请求之间的上下文
  • 与 Google Gemini API 集成
  • 可以使用多个独立会话
  • 使用标识符在会话之间切换
  • 对话历史记录的本地存储

技术

  • Python 3
  • 快速API
  • 双子座 API
  • 优维康

安装

  1. 克隆存储库:
git clone https://github.com/Alex-Replicator/mcp-letta.git cd mcp-letta
  1. 创建并激活虚拟环境:
python -m venv venv source venv/bin/activate # для Linux/Mac # или venv\Scripts\activate # для Windows
  1. 安装依赖项:
pip install -r requirements.txt
  1. 创建一个.env文件并添加 API 密钥:
GEMINI_API_KEY=ваш_ключ_gemini_api

用法

启动服务器

python mcp_server.py

服务器将位于: http://localhost:9999

使用客户端

发送请求(将创建一个新的会话):

python mcp_client.py --new "Ваш запрос к модели"

在同一会话中继续对话:

python mcp_client.py "Ваш следующий запрос"

通过 ID 使用特定会话:

python mcp_client.py --id "id_сессии" "Ваш запрос"

显示所有会话列表:

python mcp_client.py --list

项目结构

  • mcp_server.py - 主 MCP 服务器
  • mcp_client.py - 与服务器交互的客户端
  • requirements.txt项目依赖项

执照

麻省理工学院

作者

Alex Replicator - alex.replicator@gmail.com

GitHub: https://github.com/Alex-Replicator/

-
security - not tested
F
license - not found
-
quality - not tested

管理语言模型交互上下文的系统,允许模型使用 Gemini API 记住跨多个独立会话的先前交互。

  1. Описание проекта
    1. Особенности
      1. Технологии
        1. Установка
          1. Использование
            1. Запуск сервера
            2. Использование клиента
          2. Структура проекта
            1. Лицензия
              1. Автор

                Related MCP Servers

                • -
                  security
                  A
                  license
                  -
                  quality
                  A Model Context Protocol server that allows Claude to create flashcards for Rember, helping users study and remember information through spaced repetition reviews.
                  Last updated -
                  88
                  16
                  TypeScript
                  MIT License
                • -
                  security
                  F
                  license
                  -
                  quality
                  A server implementing the Model Context Protocol that enables AI assistants like Claude to interact with Google's Gemini API for text generation, text analysis, and chat conversations.
                  Last updated -
                  Python
                  • Linux
                  • Apple
                • -
                  security
                  A
                  license
                  -
                  quality
                  A Model Context Protocol server implementation that provides a standardized interface for applications to interact with OpenRouter's language models through a unified conversation management system.
                  Last updated -
                  TypeScript
                  MIT License
                • -
                  security
                  F
                  license
                  -
                  quality
                  A server that manages conversation context for LLM interactions, storing recent prompts and providing relevant context for each user via REST API endpoints.
                  Last updated -
                  1,519
                  TypeScript

                View all related MCP servers

                ID: vxi6hhm6li