Skip to main content
Glama

MCP Server Demo

by tian1ll1

MCP サーバーデモ

このプロジェクトは、モデルコンテキストプロトコル(MCP)サーバーの実装を実証します。MCPは、コンテキスト認識を維持しながら、AIモデルと外部ツール/サービス間の通信を容易にするために設計されたプロトコルです。

特徴

  • 基本的なMCPサーバーの実装
  • ツール統合の例
  • コンテキスト管理のデモンストレーション
  • WebSocketベースのリアルタイム通信
  • シンプルなクライアントの例

プロジェクト構造

mcp-server-demo/ ├── src/ │ ├── server.py # Main MCP server implementation │ ├── tools/ # Tool implementations │ │ ├── __init__.py │ │ └── basic_tools.py │ ├── context/ # Context management │ │ ├── __init__.py │ │ └── manager.py │ └── utils/ # Utility functions │ ├── __init__.py │ └── helpers.py ├── examples/ # Example usage │ ├── client.py │ └── tools_demo.py ├── tests/ # Test cases │ └── test_server.py ├── requirements.txt # Project dependencies └── README.md # This file

インストール

  1. リポジトリをクローンします。
git clone https://github.com/tian1ll1/mcp-server-demo.git cd mcp-server-demo
  1. 仮想環境を作成します (推奨):
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
  1. 依存関係をインストールします:
pip install -r requirements.txt

使用法

  1. MCP サーバーを起動します。
python src/server.py
  1. サンプルクライアントを実行します。
python examples/client.py

仕組み

MCP サーバーは次の主要コンポーネントを実装します。

  1. コンテキスト管理: 各セッションの会話履歴と関連コンテキストを維持します。
  2. ツール レジストリ: 使用可能なツールとその仕様を管理します。
  3. メッセージ処理: 受信メッセージを処理し、適切なツールにルーティングします。
  4. WebSocket サーバー: クライアントとのリアルタイム通信を提供します。

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。

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

コンテキスト認識を維持しながら AI モデルと外部ツール間の通信を容易にするモデル コンテキスト プロトコル サーバーのデモ実装。

  1. 特徴
    1. プロジェクト構造
      1. インストール
        1. 使用法
          1. 仕組み
            1. 貢献
              1. ライセンス

                Related MCP Servers

                • A
                  security
                  F
                  license
                  A
                  quality
                  A starter template for building Model Context Protocol servers that can be integrated with Cursor or Claude Desktop, allowing developers to create custom tools and extensions for AI assistants.
                  Last updated -
                  1
                  6
                  9
                  TypeScript
                  • Apple
                • -
                  security
                  F
                  license
                  -
                  quality
                  A Model Context Protocol server that provides a comprehensive interface for interacting with the ConnectWise Manage API, simplifying API discovery, execution, and management for both developers and AI assistants.
                  Last updated -
                  46
                  2
                  Python
                  • Linux
                  • Apple
                • -
                  security
                  F
                  license
                  -
                  quality
                  A Model Context Protocol server that enables role-based context management for AI agents, allowing users to establish specific instructions, maintain partitioned memory, and adapt tone for different agent roles in their system.
                  Last updated -
                  TypeScript
                • -
                  security
                  -
                  license
                  -
                  quality
                  A Model Context Protocol server implementation that enables AI assistants to interact with Linear project management systems, allowing them to create, retrieve, and modify data related to issues, projects, teams, and users.
                  Last updated -
                  20
                  2
                  TypeScript

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/tian1ll1/mcp-server-demo'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server