MCP.so
ログイン

MCP Server and Client

@iamSShan

基本情報

カテゴリ

その他

トランスポート

stdio

作者

iamSShan

MCP Server and Client について

概要はまだありません

MCP Server and Client の設定

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

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

MCP Server and Client のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは 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.

よくある質問

1

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.

2

How do I run the server?

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

3

How do I run the client?

Run `python client.py`.

4

What dependencies are required?

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

5

Where are the tool implementations?

Agent tools should be implemented in `server.py`.

コメント

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