Thought Tree
Agents log what they tried, what failed and what needs you; you answer once, the agent goes on.
Should I use this
Quality & Safety
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"thought-tree": {
"url": "https://test.opj-thought-tree.pages.dev/mcp"
}
}
}Remote endpoints
https://test.opj-thought-tree.pages.dev/mcpstreamable-httpWhat it can do
Tool inventory
Tools (5)
⚪open_tree(goal, ref, tree_id, focus, agent)
Call first on every multi-step task, and again whenever you lost the tree id (e.g. after context compaction): the same ref always returns the same tree. Returns dead paths with reasons, human answers, pending questions and the outline. Creates the tree with goal as root if the ref is new.
Input Schema
{
"type": "object",
"properties": {
"goal": {
"type": "string",
"description": "One line: what this task must achieve. Required when creating a tree."
},
"ref": {
"type": "string",
"description": "Stable handle for the task, e.g. the issue or PR URL \"github.com/acme/app/issues/12\". The same ref always reopens the same tree."
},
"tree_id": {
"type": "string",
"description": "Id of a known tree (16 chars). Use instead of ref when you have it."
},
"focus": {
"type": "string",
"description": "Optional node id: return only that node's path and subtree (saves tokens on big trees)."
},
"agent": {
"type": "string",
"description": "Who you are, e.g. \"claude-code@a1b2c3\" or \"subagent:tests\"."
}
},
"required": [],
"additionalProperties": false
}🟡branch(tree_id, parent, text, retry_because, agent)
Add a child under parent (default root) before you try it. If its wording mostly overlaps a dead path anywhere in the tree, it is not added and you get that path's reason; rephrase if it is genuinely different, or pass retry_because with what changed.
Input Schema
{
"type": "object",
"properties": {
"tree_id": {
"type": "string",
"description": "Tree id from open_tree."
},
"parent": {
"type": "string",
"description": "Node id this branch serves. Default \"root\"."
},
"text": {
"type": "string",
"description": "One line: the approach or step."
},
"retry_because": {
"type": "string",
"description": "Only when retrying a dead path: what changed since it died."
},
"agent": {
"type": "string",
"description": "Who you are."
}
},
"required": [
"tree_id",
"text"
],
"additionalProperties": false
}⚪mark(tree_id, node, state, reason, agent)
dead = the approach failed or is ruled out (reason required: it is what stops the next agent repeating it). chosen = the approach you commit to among siblings. done = finished (reason = evidence, e.g. PR link or test result).
Input Schema
{
"type": "object",
"properties": {
"tree_id": {
"type": "string",
"description": "Tree id."
},
"node": {
"type": "string",
"description": "Node id."
},
"state": {
"type": "string",
"enum": [
"dead",
"chosen",
"done"
]
},
"reason": {
"type": "string",
"description": "Why. Required for dead. For done, the evidence."
},
"agent": {
"type": "string",
"description": "Who you are."
}
},
"required": [
"tree_id",
"node",
"state"
],
"additionalProperties": false
}🟡attach(tree_id, node, url, label, agent)
Attach a link (PR, preview deploy, issue, log, doc) to a node so the human can open it from the tree. The result also gives the one-line command to upload a screenshot (PNG/JPEG/WebP, up to 1.5 MB) to the same node; use it after you change anything visible.
Input Schema
{
"type": "object",
"properties": {
"tree_id": {
"type": "string",
"description": "Tree id."
},
"node": {
"type": "string",
"description": "Node the evidence belongs to. Default \"root\"."
},
"url": {
"type": "string",
"description": "http(s) link."
},
"label": {
"type": "string",
"description": "2-5 words, e.g. \"PR #1094\" or \"preview\"."
},
"agent": {
"type": "string",
"description": "Who you are."
}
},
"required": [
"tree_id",
"url"
],
"additionalProperties": false
}🟢ask_human(tree_id, node, question, options, default, ...)
Only for a decision you cannot make from the code, docs or tree (taste, money, people outside the team, irreversible actions). Posts a question with 2-6 one-tap options and returns at once; keep working on other branches and read the answer later with open_tree. Returns the link to give your human. Without an answer, proceed with default only if it is reversible.
Input Schema
{
"type": "object",
"properties": {
"tree_id": {
"type": "string",
"description": "Tree id."
},
"node": {
"type": "string",
"description": "Node the decision belongs to. Default \"root\"."
},
"question": {
"type": "string",
"description": "One line the human can answer without reading the conversation."
},
"options": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 2,
"maxItems": 6,
"description": "Short labels, best first."
},
"default": {
"type": "string",
"description": "Option label or letter (a, b, …) you will take if nobody answers."
},
"agent": {
"type": "string",
"description": "Who you are."
}
},
"required": [
"tree_id",
"question",
"options"
],
"additionalProperties": false
}Community
Evidence