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.

评论

其他 分类下的更多 MCP 服务器