Demonstração do Servidor MCP
@tiagonpsilva
关于 Demonstração do Servidor MCP
暂无概览
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-server-demo-tiagonpsilva": {
"command": "python",
"args": [
"-m",
"venv",
"venv"
]
}
}
}工具
未检测到工具
工具是从 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
FAQ from Demonstração do Servidor MCP
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.
What are the system requirements?
Python 3.12 or higher and pip are required. Creating a virtual environment is recommended but optional.
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.
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.
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 服务器
Mcp
browsermcpBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
Maestro
mobile-dev-incPainless E2E Automation for Mobile and Web
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
Inbox Zero AI MCP
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.

Sequential Thinking
modelcontextprotocolModel Context Protocol Servers
评论