配置属性 `baseUrl` 和 `sseMessageEndpoint` 不生效怎么办?
重写 `McpWebMvcSseServerTransportAutoConfiguration` 和 `WebMvcSseServerTransportProvider` 类以手动处理这些配置。
@AJobs-coding
Basic information
No overview available yet
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
项目依赖是一个基于 Spring AI 1.0.0-M7 的 MCP 服务器实现,针对 SSE 传输和会话管理提供了自定义增强。它解决了官方配置属性不生效、会话超时、内存泄漏以及客户端重启导致连接异常等问题,适用于需要长时间维持 SSE 连接的 MCP 服务场景。
通过自定义代码重写 McpWebMvcSseServerTransportAutoConfiguration 和 WebMvcSseServerTransportProvider 类,并在配置中设置 sessionTimeOutSecond 属性(单位:秒)。客户端需在建立 SSE 连接时添加唯一标识(如 /sse?clientId=xxx),并实现轮询重连和优雅关闭 session 的机制。
sessionId 到工具方法中MessageEnum 消息类型重写 `McpWebMvcSseServerTransportAutoConfiguration` 和 `WebMvcSseServerTransportProvider` 类以手动处理这些配置。
在 `McpServerProperties` 中新增 `sessionTimeOutSecond` 属性(单位:秒),并重写 `WebMvcSseServerTransportProvider` 的构造函数和 `handleMessage` 方法。
客户端建立 SSE 连接时使用唯一标识(如 `/sse?clientId=xxx`),服务端据此覆盖旧 session。此外可启用定时 ping 任务(默认关闭)定期清理无效 session。
客户端需实现轮询重新构造 MCP 客户端对象,以应对 SSE 连接异常(如 404 或连接失败)。
客户端发送自定义 MCP 消息 `sessionCloseGracefully`(在 `io.modelcontextprotocol.spec.McpSchema` 中扩展),服务端收到后释放对应 session。

Yuppsy MCP: build and publish real estate websites from your AI assistant. Yuppsy lets your AI assistant create live websites for real estate agents and individual property listings. You don't need a designer or any code

B2B competitive intelligence, live sales battlecards, 5-axis ICP prospect fit scoring, and tech stack teardowns over MCP and REST with cited public-web evidence.

Handl speaks the Model Context Protocol. Your whole billing operation — projects, invoices, clients, reports, approvals — as tools any AI assistant can call, inside your autonomy rules.

Model Context Protocol Servers
Hindsight: Agent Memory That Learns
Comments