
Streamparse
io.github.MukundaKatta由 GitHub 帳號 MukundaKatta 發布v1.0.1更新於 Oct 24, 2026
Parse partial / truncated / messy JSON for LLM tool calls and structured outputs.
概覽
一個本機 MCP 伺服器,讓助理解析不完整、被截斷或格式混亂的 JSON,從文字中擷取 JSON,並進行嚴格驗證。
- 可以做什麼
- 從可能被截斷的 JSON 中還原值,對未閉合的字串、陣列和物件做合成補齊,並提供完整性、路徑、已消耗位元組數和信心度資訊。從 LLM 輸出中擷取第一個可解析的 JSON 值,去除說明文字、程式碼圍欄和註解。依 RFC 8259 嚴格驗證 JSON,成功時回傳解析值,失敗時回傳位元組位置和錯誤訊息。
- 適用情境
- 適用於助理處理半成品或被截斷的 JSON 時,例如中斷的工具呼叫或夾雜在說明文字中的結構化輸出,需要取得可用值而不是解析錯誤。
- 執行需求
- 以本機程序透過 stdio 執行,從 npm 套件 @mukundakatta/streamparse-mcp 安裝,通常以 npx 或全域 npm 安裝啟動。需要 Node.js;未宣告帳號、API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Streamparse,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
streamparse-mcp
An MCP server that gives AI assistants the ability to parse partial / messy / truncated JSON.
Built on top of @mukundakatta/streamparse.
Works with Claude Desktop, Cursor, Cline, Windsurf, Zed, and any other MCP client.
Tools exposed
parse_partial_json
Recover a JSON value from a possibly-truncated string. Always returns a valid value with synthetic closure of any open strings, arrays, or objects.
→
extract_json_from_text
Strip prose, ```json fences, and comments around a JSON value embedded in
LLM output. Returns the first parseable value.
Let me know!
Cursor / Cline / Windsurf / Zed
Same shape, in the appropriate mcp.json for your client. Most clients
auto-discover via npx -y @mukundakatta/streamparse-mcp.
Local install
Why this matters
When an LLM is mid-tool-call and you need the assistant to reason about the
half-formed JSON it just wrote, no other tool gives a usable answer. Standard
JSON.parse throws. Regex extraction misses nested structure. This MCP server
gives Claude (or whichever model is driving) a real handle on partial JSON,
right where it lives.
License
MIT.
來源:README.md,提交 0ecba62
工具
0版本歷史
1- v1.0.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分