我想将mcp-go集成到现有echo框架的项目中 #270
Replies: 3 comments
-
Look this func (func (s *SSEServer) ServeHTTP(w http.ResponseWriter, r *http.Request) ), you could fetch |
Beta Was this translation helpful? Give feedback.
-
非常感谢你给的建议,当我尝试这样做时项目启动的同时就执行了我的mcp工具接着整个项目就退出运行了,不过我找到了一个新的方法就是在echo启动前使用go func()进行异步启动mcp-go就是不能使用同一个端口号 |
Beta Was this translation helpful? Give feedback.
-
看看这个例子: mcp-go/examples/dynamic_path/main.go Lines 37 to 39 in 716eabe 它展示了如何在运行中的服务器中,将 也许你可以提供一些你尝试过的具体代码片段,我们可以帮你看看。 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
你好,我在我现有Web项目中想集成mcp-go框架遇到的一些问题,我是想通过原有项目增加/sse路由去接入mcp服务倒是没有找到相关示例。
Beta Was this translation helpful? Give feedback.
All reactions