
decisionnode/decisionnode 是从 https://github.com/decisionnode/decisionnode. 导入的 MCP 服务器候选
概览
decisionnode/decisionnode 是从 https://github.com/decisionnode/decisionnode. 导入的 MCP 服务器候选
概述(AI 翻译)
决策节点
CLI + 本地 MCP——跨 Claude Code、Cursor、Windsurf、Antigravity 及所有 MCP 客户端共享的结构化内存存储。语义上可查询。
不是 markdown 文件——是带语义搜索的结构化决策,通过 MCP 暴露。
安装
决定是什么样子
以JSON形式存储,嵌入为矢量,可按意义搜索。 决策并不是AI应该一直存在上下文窗口的“规则”(那些更适合 CLAUDE.md 或 memory.md)。决策更像是“记忆”,AI可以通过语义搜索在实际相关时提取。
它是如何运作的
- 做出决策 — 通过
decide add,或AI通过MCP呼叫add_decision - 嵌入为矢量 — 使用双子座的
gemini-embedding-001,本地存储在vectors.json - AI 之后检索 — 通过 MCP 调用
search_decisions,返回按余弦相似度排序的相关决策
检索过程是显式的——AI通过MCP调用搜索决策工具,传递查询并返回按余弦相似度排名前N个的决策。系统提示中没有预先注入任何信息。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
DecisionNode
CLI + Local MCP - A shared structured memory store across Claude Code, Cursor, Windsurf, Antigravity, and every MCP client. Semantically queryable.
Not a markdown file — structured decisions with semantic search, exposed over MCP.
Install
npm install -g decisionnode
cd your-project
decide init # creates project store
decide setup # configure Gemini API key (free tier)
# Connect to Claude Code (run once)
claude mcp add decisionnode -s user decide-mcp
What a decision looks like
{
"id": "backend-007",
"scope": "Backend",
"decision": "Skipped connection pooling for the embeddings DB — single writer, revisit if we add a sync daemon",
"status": "active",
"rationale": "Only one process writes at a time in the current architecture. Pooling added complexity with no measurable benefit. If we add a background sync process this will need to change.",
"constraints": [
"Do not add concurrent writers without revisiting this first"
],
"createdAt": "2024-11-14T09:22:00Z"
}
Stored as JSON, embedded as a vector, searchable by meaning. Decisions are not exactly “Rules” that the AI should have in it’s context window the entire time (those are better suited for CLAUDE.md or memory.md). Decisions are thought of to be more like “Memories” that the AI can pull in when it’s actually relevant through semantic search.
How it works
- A decision is made — via
decide addor the AI callsadd_decisionthrough MCP - Embedded as a vector — using Gemini’s
gemini-embedding-001, stored locally invectors.json - AI retrieves it later — calls
search_decisionsvia MCP, gets back relevant decisions ranked by cosine similarity
The retrieval is explicit — the AI calls search decisions tool via MCP passing a query and getting back the top N decisions ranked by cosine similarity. Nothing is pre-injected into the system prompt.
Two interfaces
CLI (decide) |
MCP Server (decide-mcp) |
|
|---|---|---|
| For | You (and your AI) | Your AI (and you) |
| How | Terminal commands | Structured JSON over MCP |
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →