MCP.so
ログイン

MCP Server and Client

@iamSShan

MCP Server and Client について

概要はまだありません

基本情報

カテゴリ

その他

ランタイム

python

トランスポート

stdio

公開者

iamSShan

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp_server_and_client": {
      "command": "python",
      "args": [
        "-m",
        "pip",
        "install",
        "uv"
      ]
    }
  }
}

ツール

ツールは検出されませんでした

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is MCP Server and Client?

This project provides a minimal working example of the Model Context Protocol (MCP), demonstrating how to set up a FastMCP server with basic tools and interact with it using an MCP client. It serves as a simple reference for understanding MCP-based communication between agents and tools.

How to use MCP Server and Client?

Install uv, then initialize the project and install dependencies from requirements.txt. Run the server with uv run mcp dev server.py or python server.py. Run the client with python client.py.

Key features of MCP Server and Client

  • Minimal MCP server using FastMCP framework.
  • Pre‑defined tools: summarize_text, cat_fact, execute_code present.
  • Official MCP SDK client that connects to the server.
  • Designed as a learning reference for MCP.

Use cases of MCP Server and Client

  • Learning how to set up a basic MCP server and client.
  • Experimenting with tool calling between an agent and a server.
  • Prototyping new MCP‑based integrations.

FAQ from MCP Server and Client

What does the server do?

The server provides agent tools (e.g., summarize_text, cat_fact, execute_code present) that can be called by the client.

How do I run the server?

Run uv run mcp dev server.py or directly python server.py.

How do I run the client?

Run python client.py.

What dependencies are required?

Python, uv, and the packages listed in requirements.txt (not enumerated in the README).

Where are the tool implementations?

Agent tools should be implemented in server.py.

コメント

「その他」の他のコンテンツ