Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

I would like to maintain MCP server state persisted (sessionId)

未關閉
#738 2 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
42/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
java, redis

研究方向

從 HttpServletStreamableServerTransportProvider 開始,檢查工作階段建立、驗證以及記憶體中的工作階段對映是如何處理的。定義一個用於自訂工作階段驗證與持久化的擴充點,使其能夠跨多個 pod 運作,並以 Redis 或資料庫為目標;當具狀態工作階段不再依賴單一程序時,即視為完成。

由索引模型根據 Issue 內容生成。

描述

enhancement feature/session-storage P2

Now the session id is maintained in memory in a map. But since I have my MCP server multiple pods running, I would like the state to be persisted in redis or in a DB.

I would like to override the session Validator as a parameter in the HttpServletStreamableServerTransportProvider

Current Behavior

Currently only the session creation can be customised but not maintaining the state fully.

Context

I am not able to implement stateful session in a distributed setup

主要語言
Java
星號
3.7k
分支
1.1k
平均合併
1 天 15 小時
30 天內合併 PR
9

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

modelcontextprotocol/java-sdk 的其他 Issue

查看 modelcontextprotocol/java-sdk 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。