Skip to content

MCP Server 实现 ​

安装依赖 ​

bash
pip install mcp

创建 Server ​

python
from mcp.server import Server

app = Server("my-server")

@app.list_tools()
async def list_tools():
    return [...]

Released under the MIT License.