
Thoughtbox
io.github.Kastalien-Research由 GitHub 帳號 Kastalien-Research 發布v1.0.3更新於 Oct 24, 2026
Extended reasoning with structured processes, persistence, and workflow guidance
發布方自己的服務:Thoughts
概覽
Thoughtbox 是本地 MCP 伺服器,用於結構化、可持久化的推理:把思考記錄成可稽核的圖譜,並協調多代理工作區。
- 可以做什麼
- 以正向、逆向、分支與修訂等模式記錄與查詢推理思考,並為每則思考標註類型
- 透過兩個 Code Mode 工具檢索操作目錄,並以 JavaScript SDK 串接執行操作
- 在共用工作區中協調多個代理:問題、提案、同儕審查、共識與問題層級頻道
- 以帶型別關係的知識圖譜實體保存跨工作階段的持久記憶
- 執行混合文件與可執行 JavaScript/TypeScript 的筆記本
- 在本地 Observatory 介面即時檢視工作階段,並匯出或分析推理軌跡
- 適用情境
- 適合希望把助理的推理過程記錄下來、可檢視並跨工作階段重複使用的場合,也適合多個代理需要共用、可稽核的問題解決流程(含審查與共識步驟)。最適合願意執行本地 Docker 環境的 Claude Code 使用者。
- 執行需求
- 以 Docker/Docker Compose 在本機執行(開發需 Node.js 22+);MCP 伺服器監聽 1731 埠,Observatory 介面為 1729。可選環境變數用於設定儲存、傳輸方式、專案範圍與 Observatory;使用 Supabase 儲存需 SUPABASE_URL 與 SUPABASE_SERVICE_ROLE_KEY。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Thoughtbox,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Thoughtbox
Multi-agent collaborative reasoning that's auditable. Thoughtbox is an MCP server for structured, multi-agent reasoning, with a companion web app for workspace and inspection flows. Every step is recorded as a structured thought in a persistent reasoning ledger that can be visualized, exported, and analyzed.
Runtime modes: Local development can use filesystem or in-memory storage. Deployed mode uses Supabase-backed storage, and the current production MCP server runs on Cloud Run.
[Thoughtbox Observatory] Observatory UI showing a reasoning session with 14 thoughts and a branch exploration (purple nodes 13-14) forking from thought 5.
Code Mode
Thoughtbox exposes exactly two MCP tools using the Code Mode pattern:
thoughtbox_search— Write JavaScript to query the operation/prompt/resource catalog. The LLM has full programmatic filtering power over the catalog.thoughtbox_execute— Write JavaScript using thetbSDK to chain operations. Access thoughts, sessions, knowledge, notebooks, hub, observability, and protocol tools through a unified namespace.
Workflow: search to discover available operations, then execute code against them. Use console.log() for debugging — output is captured in response logs.
This replaces per-operation tool registration with a two-tool surface that scales without context window bloat.
Multi-Agent Collaboration
The Hub is the coordination layer. Agents register with role-specific profiles, join shared workspaces, and work through a structured problem-solving workflow — all via thoughtbox_execute.
The workflow: register → create workspace → create problem → claim → work → propose solution → peer review → merge → consensus
Workspace primitives:
- Problem — A unit of work with dependencies, sub-problems, and status tracking (open → in-progress → resolved → closed)
- Proposal — A proposed solution with a source branch reference and review workflow
- Consensus — A decision marker tied to a thought reference for traceability
- Channel — A message stream scoped to a problem for discussion
Agent Profiles: MANAGER, ARCHITECT, DEBUGGER, SECURITY, RESEARCHER, REVIEWER — each provides domain-specific mental models and behavioral priming.
28 operations across identity, workspace management, problems, proposals, consensus, channels, and status reporting.
Auditable Reasoning
Every thought is a node in a graph — numbered, timestamped, linked to its predecessors, and persisted across sessions. This creates an auditable trail of how conclusions were reached.
Agents can think forward, plan backward, branch into parallel explorations, and revise earlier conclusions. Each pattern is a first-class operation:
Each thought carries a semantic thoughtType (reasoning, decision_frame, action_report, belief_snapshot, assumption_update, context_snapshot, progress) that classifies what kind of thought it is, orthogonal to the process pattern used.
See the Patterns Cookbook for comprehensive examples.
Real-Time Observability
The Observatory is a built-in web UI at http://localhost:1729 for watching reasoning unfold live.
- Live Graph — thoughts appear as nodes in real-time via WebSocket
- Branch Navigation — branches collapse into clickable stubs; drill in and back out
- Detail Panel — click any node to view full thought content
- Multi-Session — switch between active reasoning sessions
- Deep Analysis — analyze sessions for reasoning patterns, cognitive load, and decision points
The full observability stack includes OpenTelemetry tracing, Prometheus metrics, and Grafana dashboards.
Knowledge & Reasoning Tools
Knowledge Graph — Persistent memory across sessions. Capture insights, concepts, workflows, and decisions as typed entities with typed relations (BUILDS_ON, CONTRADICTS, SUPERSEDES, etc.) and visibility controls (public, agent-private, team-private).
Notebooks — Interactive literate programming combining documentation with executable JavaScript/TypeScript in isolated environments.
Client Compatibility
Thoughtbox is currently optimized for Claude Code. We are actively working on supporting additional MCP clients. Due to variation in capability support across the MCP ecosystem — server features (prompts, resources, tools), client features (roots, sampling, elicitation), and behaviors like
listChangednotifications — we implement custom adaptations for many clients.
If you're using a client other than Claude Code and encounter issues, please open an issue describing your client and the problem.
Installation
Thoughtbox runs as a Docker-based MCP server. It requires Docker and Docker Compose.
Quick Start
This starts Thoughtbox and the full observability stack. The MCP server listens on port 1731 and the Observatory UI is available at http://localhost:1729.
MCP Client Configuration
Since Thoughtbox uses HTTP transport, configure your MCP client to connect via URL.
Claude Code
Add to your ~/.claude/settings.json or project .claude/settings.json:
To connect through the observability sidecar (adds OpenTelemetry tracing):
Cline / VS Code
Add to your MCP settings or .vscode/mcp.json:
Usage Examples
Forward Thinking — Problem Analysis
Backward Thinking — System Design
Branching — Comparing Alternatives
Environment Variables
Development
For local development (requires Node.js 22+):
Testing
Docker Compose
docker compose up --build starts the full stack:
Persistent data is stored in named volumes: thoughtbox-data, prometheus-data, grafana-data.
Architecture
Storage
Thoughtbox supports three storage backends:
- InMemoryStorage: Volatile storage for testing, uses
LinkedThoughtStorefor O(1) thought lookups - FileSystemStorage: Persistent storage with atomic writes and project isolation (default)
- SupabaseStorage: Cloud-native storage backed by Supabase Postgres for deployed instances
Data is stored at ~/.thoughtbox/ by default (FileSystemStorage):
Contributing
We welcome contributions! See CONTRIBUTING.md for:
- Development setup
- Commit conventions (optimized for
thick_readcode comprehension) - Testing with vitest and agentic scripts
- Pull request process
License
MIT License — free to use, modify, and distribute.
來源:README.md,提交 85a6230
工具
0版本歷史
1- v1.0.3最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
