
Tauch-MCP-Host
3 years
Works with Finder
20
Github Watches
3
Github Forks
20
Github Stars
Dive MCP Host
Dive MCP Host is a language model host service based on the Model Context Protocol (MCP), providing a unified interface to manage and interact with various language models.
Purpose of the Program
Dive MCP Host offers the following features:
- A unified language model interaction interface, supporting multiple models (such as OpenAI, Anthropic, Google, etc.)
- Conversation management and persistent storage
- HTTP API and WebSocket support
- Command-line tools for quick testing and interaction
- Support for multi-threaded conversations and user management
This project uses LangChain and LangGraph to build and manage language model workflows, providing a standardized way to interact with different language models.
How to Run
Environment Setup
- Ensure you have Python 3.12 or higher installed
- Clone this repository
- Install dependencies:
# Using pip
pip install -e .
# Or using uv pip
uv pip install -e .
# Or using uv sync (recommended, will respect uv.lock file)
uv sync --frozen
- Activate the virtual environment
source .venv/bin/activate
Starting the HTTP Service
Use the following command to start the HTTP service:
dive_httpd
The server will start on:
- Host: 0.0.0.0
- Port: 61990
- Log Level: INFO (configurable in the service config)
Using the Command Line Tool
You can use the command line tool for quick testing:
# General chat
dive_cli "Hello"
# Resume a chat with a specific thread
dive_cli -c CHATID "How are you?"
Using in Code
from dive_mcp_host.host.conf import HostConfig
from dive_mcp_host.host import DiveMcpHost
# Initialize configuration
config = HostConfig(...)
# Use async context manager
async with DiveMcpHost(config) as host:
# Start or resume a conversation
async with host.chat(thread_id="123") as chat:
# Send a query and get a response
async for response in chat.query("Hello, how can you help me today?"):
print(response)
Development
Install development dependencies:
pip install -e ".[dev]"
or
uv sync --extra dev --frozen
(Optional) Start local PostgreSQL
./scripts/run_pg.sh
Run tests:
pytest
or with uv, (no need to activate enviroment)
uv run --extra dev --frozen pytest
License
This project is licensed under the MIT License. See the LICENSE file for details.
相关推荐
🧑🚀 全世界最好的 llm 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Zusammenfassung der weltbesten LLM -Ressourcen.
🔥 1Panel bietet eine intuitive Weboberfläche und einen MCP -Server, um Websites, Dateien, Container, Datenbanken und LLMs auf einem Linux -Server zu verwalten.
⛓️Rugele ist ein leichter, leistungsstarker, leistungsstarker, eingebetteter Komponenten-Orchestrierungsregel-Motor-Rahmen für GO.
Dieses Repository dient zur Entwicklung des Azure MCP -Servers, wodurch Ihre Agenten die Leistung von Azure verleiht.
Flock ist eine Workflow-basierte Low-Code-Plattform, um schnell Chatbots, Lappen und Koordinierung von Multi-Agent-Teams zu erstellen, die von Langgraph, Langchain, Fastapi und NextJs angetrieben werden.
Dieses Projekt wurde erstellt, um zu demonstrieren, wie wir uns mit verschiedenen Modellkontextprotokollen (MCPs) verbinden können.
Reviews

user_kiSo5hyk
I've been using dive-mcp-host by OpenAgentPlatform for a while now and it has significantly improved my workflow. The platform is intuitive and user-friendly, making it easy to manage and deploy multiple projects simultaneously. The seamless integration and robust features have made it an invaluable tool for my needs. Highly recommend for anyone looking to streamline their project management process.

user_D2bLLKa7
As a loyal user of dive-mcp-host by OpenAgentPlatform, I can confidently say this product has transformed my workflow. Its robust feature set and seamless integration make it an essential tool for managing and deploying multi-cloud applications. Highly recommended for anyone in need of a reliable and efficient cloud management solution!

user_cLtuaIAc
As a dedicated user of dive-mcp-host by OpenAgentPlatform, I am thoroughly impressed with its seamless integration and performance. This tool has significantly streamlined our processes, offering robust solutions in an efficient manner. The user-friendly interface and welcoming onboarding experience make it accessible for all team members. Highly recommended for anyone looking to enhance their MCP applications!

user_EwAoLBho
I recently started using dive-mcp-host by OpenAgentPlatform, and I am thoroughly impressed. The seamless integration and intuitive interface make it stand out. The product's comprehensive features cater perfectly to my needs, and the helpful welcome information streamlined the setup process smoothly. Highly recommended for anyone seeking robust and user-friendly MCP applications!

user_710Rr9Dg
As a loyal user of dive-mcp-host, I am continually impressed by its seamless integration and user-friendly design. OpenAgentPlatform has done an outstanding job in creating a reliable and efficient tool that enhances my workflow. The welcome information on the starting URL is clear and informative, making it easy to get started. Highly recommended for anyone looking for a robust MCP application!