hello-fastmcp-service
v1.0.0
Published
A simple FastMCP service that returns 'Hello FastMCP!'
Readme
Hello FastMCP Service
这是一个基于 FastMCP 框架构建的简单服务,提供一个无参工具函数,返回 "Hello FastMCP!" 字符串。
快速开始
安装依赖
pip install -r requirements.txt运行服务
STDIO 模式(默认)
python hello_fastmcp.pyHTTP 模式
python hello_fastmcp.py http服务将在 http://localhost:8000 上运行。
Docker 部署
构建镜像:
docker build -t hello-fastmcp .运行容器:
docker run -p 8000:8000 hello-fastmcp使用说明
该服务提供一个名为 hello_fastmcp 的工具,无需参数,返回固定字符串 "Hello FastMCP!"。
