MCP.so
ログイン

Demonstração do Servidor MCP Server

@tiagonpsilva

基本情報

カテゴリ

その他

トランスポート

stdio

作者

tiagonpsilva

Demonstração do Servidor MCP Server について

概要はまだありません

Demonstração do Servidor MCP Server の設定

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

{
  "mcpServers": {
    "mcp-server-demo-tiagonpsilva": {
      "command": "python",
      "args": [
        "-m",
        "venv",
        "venv"
      ]
    }
  }
}

Demonstração do Servidor MCP Server のツール

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

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

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

概要

What is Demonstração do Servidor MCP?

Demonstração do Servidor MCP is a reference implementation of an MCP (Mission Control Protocol) server built with the MCP Python SDK. It provides a simple, efficient platform for creating and managing APIs based on resources and tools using the MCP protocol. It is intended for developers who want to learn or prototype MCP-based services.

How to use Demonstração do Servidor MCP?

Clone the repository, set up a Python virtual environment (optional), and install dependencies with pip install -e .. Run the server with python -m server. The server exposes defined endpoints; for example, you can call a tool via curl -X POST "http://localhost:8000/tools/add" with JSON body {"a": 5, "b": 10} or fetch a greeting resource via curl -X GET "http://localhost:8000/resources/greeting/Maria".

Key features of Demonstração do Servidor MCP

  • Quick tool creation via Python decorators (@mcp.tool())
  • Dynamic resource exposure with URL patterns (@mcp.resource())
  • Easy integration with existing systems
  • Intuitive API for service development
  • Based on the official MCP Python SDK

Use cases of Demonstração do Servidor MCP

  • Learning how to build an MCP server from scratch
  • Prototyping tools and resources for a proof‑of‑concept
  • Testing MCP client integrations in a controlled environment
  • Demonstrating MCP concepts in workshops or tutorials

よくある質問

1

What is MCP in this project?

MCP here stands for Mission Control Protocol, a protocol for creating and managing APIs based on resources and tools. The server is built using the official MCP Python SDK.

2

What are the system requirements?

Python 3.12 or higher and pip are required. Creating a virtual environment is recommended but optional.

3

How do I add a new tool to the server?

Define a function and decorate it with `@mcp.tool()`. The function’s parameters and docstring define the tool’s interface.

4

How do I add a new resource?

Define a function and decorate it with `@mcp.resource("my-resource/{id}")`. The URL pattern allows dynamic parameters.

5

Are there any known issues?

Yes. The automated tests have a known bug causing client integration tests to fail due to a test client configuration issue. This is listed as a pending fix.

コメント

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