KM

kuanhoong/mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

12 stars 8 forks 质量 29 趋势 8

kuanhoong/mcp 是从 https://github.com/kuanhoong/mcp. 导入的 MCP 服务器候选

概览

kuanhoong/mcp 是从 https://github.com/kuanhoong/mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

本项目演示了模型上下文协议(MCP)在本地和远程服务器配置中使用 stdio 和 HTTP 协议的实现。演示使用 Agent Development Kit(ADK)网页界面构建。

概述

本项目展示了两个主要的MCP实施场景:

  1. 使用标准协议的本地服务器通信
  2. 使用HTTP协议进行远程服务器通信

演示利用代理开发工具包(ADK)网页界面来可视化并交互MCP实现。

特色

  • 本地MCP服务器实现,采用stdio协议
  • 使用 HTTP 协议实现远程 MCP 服务器
  • 与ADK网页界面集成,用于测试和演示
  • MCP服务器配置和使用模式示例

项目结构

  • server.py - 主服务器实现
  • multiserver/ - 包含MCP服务器组件的包
  • agent.py - MCP 代理实现
  • __init__.py - 包初始化

先修条件

  • Python 3.x
  • ADK 网页界面
  • 必备的 Python 包(列于 pyproject.toml)

开始

  1. 克隆仓库
  2. 安装依赖关系

本页由 AI 翻译,技术细节请以原文为准。

README

MCP (Model Context Protocol) Demo

This project demonstrates the implementation of Model Context Protocol (MCP) for both local and remote server configurations using stdio and HTTP protocols. The demonstration is built using the Agent Development Kit (ADK) web interface.

Overview

This project showcases two main MCP implementation scenarios:

  1. Local server communication using stdio protocol
  2. Remote server communication using HTTP protocol

The demonstration utilizes the Agent Development Kit (ADK) web interface to visualize and interact with the MCP implementations.

Features

  • Local MCP server implementation using stdio protocol
  • Remote MCP server implementation using HTTP protocol
  • Integration with ADK web interface for testing and demonstration
  • Example of MCP server configurations and usage patterns

Project Structure

  • server.py - Main server implementation
  • multiserver/ - Package containing MCP server components
    • agent.py - Agent implementation for MCP
    • __init__.py - Package initialization

Prerequisites

  • Python 3.x
  • ADK web interface
  • Required Python packages (listed in pyproject.toml)

Getting Started

  1. Clone the repository
  2. Install dependencies
  3. Run the MCP server and ADK web interface as described below

Running the Application

Starting the MCP Server

To run the MCP server in HTTP mode:

uv run server.py http

Starting the ADK Web Interface

To launch the Agent Development Kit (ADK) web interface:

uv run adk web

Once both servers are running, you can use the ADK web interface to interact with the MCP server and test different protocols (stdio and HTTP).

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →