本文分类:news发布日期:2026/3/6 0:43:03
打赏

相关文章

mcp服务端写法以及打包为镜像

一、mcp服务端代码from fastmcp import FastMCP# 1. 初始化 FastMCP:仅传名称,移除 host/port mcp FastMCP("Weather")# 2. 定义工具函数(逻辑不变) mcp.tool() async def get_weather(location: str) -> str:"…

手机版浏览

扫一扫体验

微信公众账号

微信扫一扫加关注

返回
顶部