MCP.so
ログイン

MCP Demo Server

@KennyKang7012

基本情報

カテゴリ

その他

トランスポート

stdio

作者

KennyKang7012

MCP Demo Server について

概要はまだありません

MCP Demo Server の設定

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

{
  "mcpServers": {
    "MCP-Demo-Server": {
      "command": "python",
      "args": [
        "-m",
        "venv",
        ".venv"
      ]
    }
  }
}

MCP Demo Server のツール

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

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

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

概要

What is MCP Demo Server?

MCP Demo Server is a simple Python example project that demonstrates how to build basic Model Context Protocol (MCP) tools. It provides two tools: add for adding two integers and say_hello for generating a personalized greeting.

How to use MCP Demo Server?

Clone the repository, create a virtual environment, install the mcp[cli] package, then run uv run --with mcp[cli] mcp run server.py to start the server. You can also test it in development mode with mcp dev server.py. For GitHub Copilot integration, configure a .vscode/mcp.json file with the uv command.

Key features of MCP Demo Server

  • Implements a simple addition tool (add)
  • Implements a greeting tool (say_hello)
  • Written in Python using the MCP library
  • Ready-to-use with VS Code and GitHub Copilot

Use cases of MCP Demo Server

  • Learning how to build MCP tools in Python
  • Testing MCP server integration with VS Code or GitHub Copilot
  • Extending the demo with additional custom tools

よくある質問

1

What Python version does MCP Demo Server require?

Python 3.x is required.

2

What dependencies does MCP Demo Server need?

It requires the `mcp[cli]` package and the `uv` package manager.

3

How do I start the server?

Run `uv run --with mcp[cli] mcp run server.py` from the project directory.

4

Can I test the server in development mode?

Yes, run `mcp dev server.py` to enable automatic reloading and detailed debugging.

5

How do I configure MCP Demo Server for GitHub Copilot?

Create a `.vscode/mcp.json` file in the project root with the `uv` command and `mcp run server.py` as shown in the README.

コメント

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