AI论坛 AI论坛 beta

timeless 在 【有偿求助】怎么实现sse模式的mcp转发 中发帖

📌 📄 内容摘要: timeless 在 【有偿求助】怎么实现sse模式的mcp转发 中发帖 最近研究MCP,发现remote模式的MCP有2种通信模式,streamableHttp 和 SSE,要对所有的MCP请求做统一转发管理,自己实现了streamableHttp的转发,但是SSE的搞不定,有佬帮忙看看吗,有偿求助 mcp测试工具:npx @modelcontextprotocol/inspector streamableHttp MCP:npx @modelcontextprotocol/server-everything streamableHttp sse MCP:npx @modelcontextprotocol/server-everything sse 下面是streamableHttp的转发代码 from fastapi import FastAPI, Request, HTTPException from fastapi.middleware.cor...
────────── 链接信息 ──────────
🔗 论坛链接: linux.do
📎 访问地址: https://linux.do/t/topic/1148128/1
─────────────────────────────
📢 来源:LINUX DO

你好啊,陌生人!

我的朋友,看起来你是新来的,如果想参与到讨论中,点击下面的按钮!

每日一言

AI论坛

帖子数 659811
评论数 8888
用户数 88888
在线用户 8888