摘要:
前文展示的是 AI 智能体调用 stdio 的 MCP Server,这里展示调用 Streamable HTTP的 MCP Server。 一、在 test 目录中添加 agent_http.py 文件 并添加如下代码: import asyncio import os from openai i 阅读全文
posted @ 2025-10-28 13:51
rslai
阅读(100)
评论(0)
推荐(0)
摘要:
之前展示的都是手写一个 client,然后手工调用 MCP tools。没有使用到任何大模型,下文将展示如何通过大模型调用 MCP tools。 同样调用 MCP Server 有两种方式:第一,stdio。第二,Streamable HTTP。后文展示的是通过 stdio 模式。 一、同样需要将 阅读全文
posted @ 2025-10-28 13:49
rslai
阅读(230)
评论(0)
推荐(0)
摘要:
在 MCP - 使用 fastmcp 编写 Client 调用 MCP Serverr - Streamable HTTP (三) 中讲解了如何写 MCP Serverr - Streamable HTTP 的 Client 。 下文将介绍如何写 MCP Serverr - Stdio 的 Clie 阅读全文
posted @ 2025-10-28 13:46
rslai
阅读(76)
评论(0)
推荐(0)

浙公网安备 33010602011771号