شعار Knowit

Knowit

المجتمع
ismaelkedir

Shared, structured memory for AI coding agents — MCP server + CLI. One memory layer for Claude Code, Codex, Cursor & every MCP client.

الناشرismaelkedir
المستودعknowit
اللغةTypeScript
التفريعات
0
النجوم
12
الأدوات المتاحة
0
نوع نقل البياناتstdio
الفئات
الترخيصMIT
الروابط
  • اربط الأدوات بسير عمل الذكاء الاصطناعي

    يتيح Knowit إمكانات MCP التي يمكن لتطبيقات الذكاء الاصطناعي العميلة ووكلاء الذكاء الاصطناعي المتوافقة استخدامها.

  • الأدوات المتاحة: 0

    تصفّح الإجراءات القابلة للاستدعاء أدناه، بما في ذلك أسماؤها وأوصافها عندما يوفّرها الخادم.

  • إعدادات جاهزة للنسخ

    استخدم أمثلة إعداد التثبيت لتهيئة هذا الخادم في تطبيق MCP العميل المفضّل لديك.

  • مؤشرات الاهتمام بالمصدر المفتوح

    النجوم: 12، والنسخ المتفرعة: 0 في المستودع المرتبط.

Knowit — shared, structured memory for AI coding agents

Your agent forgets everything between sessions. Knowit fixes that.

npm version npm downloads license GitHub stars

Knowit is an open-source MCP server + CLI that gives AI coding agents a persistent, queryable project memory — shared across sessions, across teammates, and across every MCP client: Claude Code, Codex, Cursor, Windsurf, VS Code/Copilot, Gemini CLI, Kiro, Cline, Continue, Zed, and JetBrains AI Assistant.

Store architecture rules, decisions, and conventions once. Every agent retrieves the relevant context before it plans or edits code — no more re-explaining your codebase every session.

bash
npx knowit install

That's it. The wizard configures your MCP clients and initializes a local, git-friendly memory store at .knowit/knowledge.jsonl.

🌐 Website: useknowit.dev · 📚 Docs: useknowit.dev/docs

Why Knowit (and not another memory tool)

CLAUDE.md / rule filesGeneric memory MCPsKnowit
Survives across sessions✅✅✅
Structured (types, scopes, confidence)❌ free-form text❌ blob notes✅ rules, decisions, patterns, conventions
Retrieved per task, not dumped into every prompt❌ always in context⚠️ varies✅ resolve_context returns only what matters
Shared with teammates via git⚠️ merge-conflict sprawl❌✅ line-delimited JSONL, clean diffs
Works across every MCP agent❌ per-tool files⚠️ varies✅ 11+ clients, one memory
Local-first, no hosted dependency✅❌ often cloud✅ your repo, your data
Browse/audit what agents remember❌❌✅ npx knowit preview

Contents

Why Structured Memory

Knowit is designed for operational engineering memory: the durable context agents need while doing code work.

That means memory is stored with structure such as:

  • entry type: rule, architecture, pattern, decision, convention, note
  • scope: global, team, repo, domain
  • metadata: tags, URLs, confidence, and source information
  • renderable body blocks: headings, paragraphs, lists, quotes, code, callouts, and link lists

This makes it easier for agents to retrieve only the context that matters for the current task, such as:

  • repo-specific architecture rules before implementing a feature
  • domain-specific conventions before refactoring a subsystem
  • team-wide decisions before introducing a new pattern

The default project storage is .knowit/knowledge.jsonl, a line-delimited JSON file that is readable, reviewable, and friendly to git diffs. Global and custom storage scopes can still use SQLite when you want a private local database or a shared database path.

Install

bash
npx knowit install

Requires Node.js 20+. No global install needed — the wizard runs via npx and can install knowit globally for you if you want faster future starts.

Knowit's CLI also checks for newer published versions and shows a non-blocking update notice in interactive terminal sessions.

Quick Start

1. Install Knowit into a project

bash
npx knowit install

npx knowit install is the main setup flow. It can:

  • initialize the local memory store
  • register or write the Knowit MCP server configuration for supported clients
  • update agent instruction files
  • connect a preferred source
  • optionally migrate architecture or ADR-style markdown into Knowit

This repository intentionally keeps a checked-in .mcp.json so Knowit can use itself while developing Knowit. For normal consumer projects, prefer generating MCP config through knowit install.

2. Tell your agent to use it

If you are not using the installer-managed instructions, add this to the client instruction file such as AGENTS.md, CLAUDE.md, or .github/copilot-instructions.md:

md
## Memory

This project uses Knowit as the default persistent knowledge base for AI coding agents.

- Before planning or implementing, call `resolve_context` with the task description and repo name.
- After finishing a task, call `capture_session_learnings` to store durable rules, decisions, and patterns.
- Prefer Knowit over repo-local markdown memory files unless the user explicitly asks for a file.

MCP client support

Knowit uses npx -y knowit@latest serve for generated MCP configs when the knowit binary is not installed globally. Project installs do not set KNOWIT_DB_PATH; they rely on the client working directory and the project-local .knowit/knowledge.jsonl store.

ClientInstaller behaviorMCP config requirement
Claude CodeRuns claude mcp addCLI-managed MCP config
CodexRuns codex mcp addCLI-managed MCP config
CursorWrites .cursor/mcp.json for project scope or ~/.cursor/mcp.json for global scopeJSON with mcpServers
WindsurfWrites ~/.codeium/windsurf/mcp_config.jsonJSON with mcpServers
VS Code / GitHub CopilotWrites .vscode/mcp.json for project scopeJSON with servers
Gemini CLIWrites .gemini/settings.json for project scope or ~/.gemini/settings.json for global scopeJSON with mcpServers
KiroWrites .kiro/settings/mcp.json for project scope or ~/.kiro/settings/mcp.json for global scopeJSON with mcpServers
ClineWrites ~/.cline/data/settings/cline_mcp_settings.jsonJSON with mcpServers
ContinueWrites .continue/mcpServers/knowit.yaml for project scopeYAML MCP block
ZedWrites ~/.config/zed/settings.jsonJSON with context_servers
JetBrains AI AssistantUpdates instructions only and prints a warningAdd the generated JSON through Settings > Tools > AI Assistant > Model Context Protocol

3. Start storing and retrieving context

bash
knowit add rule "No direct DB access from controllers" \
  "All database access goes through repository classes." \
  --scope repo --repo api-gateway --tags architecture,layers

knowit resolve "implement user authentication" --repo api-gateway --domain auth

How It Works

Agents interact with Knowit through MCP tools:

  1. Before work, the agent calls resolve_context.
  2. During work, it can search or store targeted knowledge.
  3. After work, it calls capture_session_learnings.

That keeps source code in the repo and long-lived project memory in Knowit.

In practice, Knowit is a layer for execution context:

  • canonical source code stays in the repository
  • durable engineering memory stays in Knowit
  • external canonical docs can stay in tools like Notion, with Knowit routing agents to the right source when needed

Memory Browser (knowit preview)

See exactly what your agents remember:

bash
npx knowit preview

This opens a local, read-only web UI (default 127.0.0.1:4077) for browsing your knowledge base:

  • filter by text, entry type, repo, domain, or tag
  • two-pane list + detail view with rendered body blocks (headings, code, callouts, links)
  • entry metadata: type, scope, confidence, last updated
  • automatic light/dark theme, full keyboard navigation
  • strictly read-only — nothing can be modified from the browser

Useful for auditing what agents have stored, reviewing team memory before committing .knowit/knowledge.jsonl, and demoing the knowledge base.

Common Use Cases

  • Store coding rules that agents must follow.
  • Preserve architecture decisions and tradeoffs.
  • Capture reusable implementation patterns.
  • Keep durable memory out of scattered prompts, session history, and ad hoc note files.
  • Replace repo-local memory sprawl such as extra ARCHITECTURE.md, ADR, and process notes.
  • Share team conventions through one shared SQLite database path.

CLI

bash
# Setup
npx knowit install
knowit install   # if already installed globally
knowit init

# Add and search knowledge
knowit add rule "Use repository classes" "No direct DB access from controllers."
knowit search "repository pattern"
knowit resolve "add webhook retry handling" --repo api-gateway --domain billing

# Browse entries
knowit list --repo api-gateway
knowit show <entry-id>
knowit stats
knowit preview   # local web UI for browsing memory

# Sources
knowit source list
knowit source connect notion
knowit source show notion

# Cloud account commands
knowit cloud login --token <token>
knowit cloud whoami
knowit cloud logout

# Import existing markdown knowledge
knowit import-md --yes

# Convert an existing project SQLite database to JSONL
knowit migrate-storage --sqlite-path .knowit/knowit.db --dry-run
knowit migrate-storage --sqlite-path .knowit/knowit.db

MCP Tools

ToolPurpose
resolve_contextRetrieve relevant knowledge before planning a task (returns titles/summaries — tiered retrieval phase 1)
get_knowledgeFetch full content for entries by ID after resolve_context or search_knowledge (tiered retrieval phase 2)
store_knowledgeStore one knowledge entry
capture_session_learningsBatch-store session learnings with deduplication
search_knowledgeSearch across one or more sources
resolve_source_actionDecide whether to use Knowit directly or route to another provider
connect_sourceConnect a known provider such as local or notion
list_sourcesList configured sources
register_mcp_sourceRegister an external MCP server as a Knowit source with explicit tool mappings

Knowledge Model

Entry types

TypeUse for
ruleHard constraints the codebase should enforce
architectureSystem structure and rationale
patternReusable implementation approaches
decisionDecision records and tradeoffs
conventionNaming, formatting, and style agreements
noteObservations, caveats, and open questions

Scopes

ScopeUse for
globalApplies everywhere
teamApplies across multiple repos
repoSpecific to one repository
domainSpecific to a bounded area in one repo

Entries also support tags, optional URLs, metadata, confidence scores, and a structured body field for reader UIs. content remains the plain searchable text; body is the renderable version. When body is omitted, Knowit derives paragraph blocks from content.

Shared Team Memory

Knowit is local-first. In project scope, .knowit/knowledge.jsonl is the canonical memory file and can be reviewed in version control like source code.

Existing projects with .knowit/knowit.db are migrated automatically on first project-scope initialization when .knowit/knowledge.jsonl does not exist. You can also run the conversion explicitly:

bash
knowit migrate-storage --sqlite-path .knowit/knowit.db --dry-run
knowit migrate-storage --sqlite-path .knowit/knowit.db

The command writes .knowit/knowledge.jsonl and .knowit/sources.json. It refuses to overwrite existing targets unless you pass --force.

For private global memory or a shared database outside the repo, point everyone at the same SQLite database path.

bash
KNOWIT_DB_PATH=/shared/team/knowit.db npx knowit install --scope global --client claude

That gives every developer and every agent the same durable memory source without adding a hosted dependency.

Semantic Search

If you set OPENAI_API_KEY, Knowit adds embeddings-backed semantic search. Without it, Knowit still works with text and tag matching.

bash
export OPENAI_API_KEY=sk-...
knowit search "how do we handle payment retries"

Notion Integration

Knowit can connect to Notion as an external source and route agents to the right MCP flow when durable docs belong there.

bash
knowit source connect notion

Configuration

VariableDescription
KNOWIT_DB_PATHPath to the SQLite database for global or custom storage
KNOWIT_STORAGE_SCOPEproject, global, or custom
OPENAI_API_KEYEnables semantic search via embeddings
KNOWIT_LOG_LEVELdebug, info, warn, or error

Default storage locations

ScopePath
project.knowit/knowledge.jsonl inside the current repo
global~/.knowit/knowit.db
customValue of KNOWIT_DB_PATH

Automatic Update Notifications

Knowit's interactive CLI commands use update-notifier to let users know when a newer npm release is available.

  • Notifications are skipped for knowit serve so MCP stdio traffic stays clean.
  • Notifications are also skipped in CI, tests, and non-interactive terminal sessions.
  • Users can disable them with NO_UPDATE_NOTIFIER=1 or by passing --no-update-notifier.

Public Launch Note

The current public release is focused on the open-source, local-first workflow. Hosted cloud plans are not publicly enabled right now.

Contributing

Issues, README improvements, bug reports, feature requests, and pull requests are welcome.

If you are trying Knowit in a real project, feedback about agent workflows, missing MCP tools, and setup friction is especially useful.

License

MIT. See LICENSE.

التثبيت

TypingMind
{
  "mcpServers": {
    "knowit": {
      "command": "npx",
      "args": [
        "knowit",
        "serve"
      ]
    }
  }
}

استخدم MCP الخاص بـ Knowit مع نماذج ذكاء اصطناعي متعددة

يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا بمجرد توصيل Knowit، يمكنك استخدامه مع نماذج ذكاء اصطناعي مختلفة في TypingMind بدلًا من إعداده لكل نموذج على حدة. يعمل تكامل MCP هذا محليًا عبر موصل MCP الخاص بـ TypingMind على جهازك.

دليل الإعداد لاستخدام الموصل المحلي

استخدم هذا الخيار عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات أو موارد خاصة على جهاز الكمبيوتر لديك.

1

فتح إعدادات MCP

في TypingMind، انتقل إلى «الإعدادات»، ثم «الإعدادات المتقدمة»، ثم «بروتوكول سياق النموذج»، واختر «إعداد الموصل».

  1. افتح TypingMind في متصفحك.
  2. انقر على أيقونة الإعدادات.
  3. انتقل إلى الإعدادات المتقدمة.
  4. افتح قسم بروتوكول سياق النموذج.
  5. انقر على «إعداد الموصل» واختر «هذا الجهاز».
شاشة إعداد موصل MCP في TypingMind مع تحديد «هذا الجهاز»
2

تنفيذ أمر الموصل

اختر «هذا الجهاز»، وانسخ الأمر من TypingMind وشغّله في Terminal. أبقِ العملية قيد التشغيل أثناء استخدام MCP.

  1. انسخ أمر الإعداد الذي يعرضه TypingMind.
  2. افتح Terminal على macOS أو Windows Terminal على Windows.
  3. الصق الأمر ونفّذه.
  4. وافق على تثبيت الحزمة إذا طلب منك Terminal تأكيد المتابعة.
  5. أبقِ نافذة Terminal والعملية التي تعمل فيها قيد التشغيل أثناء استخدام أدوات MCP.
3

أضف Knowit كخادم

عندما تظهر حالة الموصل «جاهز»، انقر على «تعديل الخوادم» والصق إعدادات خادم MCP.

  1. انتظر حتى تظهر حالة الموصل «جاهز».
  2. انقر على «تعديل الخوادم».
  3. الصق إعدادات خادم MCP الخاص بـ Knowit.
  4. احفظ قائمة الخوادم.
  5. حدّث الحالة إذا أردت التأكد من أن الموصل لا يزال جاهزًا.
إعدادات MCP في TypingMind تعرض خادمًا نشطًا وزر «تعديل الخوادم»
{
  "mcpServers": {
    "knowit": {
      "command": "npx",
      "args": [
        "-y",
        "knowit"
      ]
    }
  }
}
4

استخدام الاتصال مع نماذج مختلفة

احفظ قائمة الخوادم، وافتح «الإضافات»، وفعّل أدوات MCP الخاصة بـ Knowit، ثم اختر أي نموذج ذكاء اصطناعي مدعوم في TypingMind واستخدم الأدوات في المحادثة أو أسندها إلى وكيل ذكاء اصطناعي.

  1. افتح صفحة الإضافات في TypingMind.
  2. فعّل أدوات MCP الخاصة بـ Knowit.
  3. ابدأ محادثة واختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  4. استخدم أدوات MCP في المحادثة أو عيّنها لوكيل ذكاء اصطناعي.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر عند الحاجة دون إعادة الاتصال بـ MCP.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام Knowit لمساعدتي في هذه المهمة؟
Knowit
بالتأكيد. قرأته.
إليك ما وجدته باستخدام Knowit.

الأسئلة الشائعة

ما استخدامات خادم MCP Knowit؟

Knowit هو خادم MCP يتيح لتطبيقات الذكاء الاصطناعي المتوافقة الاتصال بأدوات ومصادر سياق خارجية. في TypingMind، يمكنك إضافة خادم MCP هذا مرة واحدة وإتاحة أدواته في مساحة عملك للذكاء الاصطناعي.

هل يمكنني استخدام خادم MCP Knowit مع نماذج ذكاء اصطناعي متعددة في TypingMind؟

نعم. يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا يمكنك استخدام Knowit مع نماذج ذكاء اصطناعي مختلفة مثل Claude أو ChatGPT أو Gemini أو غيرها من النماذج التي أعددتها في TypingMind، دون إعداد خادم MCP لكل نموذج على حدة.

لماذا تستخدم موصل MCP Knowit مع TypingMind؟

يُعد TypingMind من أفضل واجهات المحادثة مع النماذج اللغوية الكبيرة، إذ يجمع نماذج ذكاء اصطناعي متعددة ومطالبات وإضافات ووكلاء ذكاء اصطناعي ومفاتيح API وأدوات MCP في مساحة عمل واحدة. بعد توصيل Knowit، يمكنك استخدام أدوات MCP الخاصة به عبر نماذجك المفضلة مع الحفاظ على سير عمل محادثاتك منظمًا في TypingMind.

كيف أوصّل خادم MCP Knowit بـ TypingMind؟

يعمل Knowit عبر موصل MCP المحلي في TypingMind. هذا هو الخيار الأنسب عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات سطح المكتب أو أدوات سطر الأوامر أو موارد خاصة على حاسوبك.

ما الأدوات التي يوفّرها خادم MCP Knowit في TypingMind؟

يتيح Knowit إمكانات MCP يمكنك تفعيلها من صفحة الإضافات في TypingMind واستخدامها في المحادثات أو تعيينها لوكلاء ذكاء اصطناعي.

هل أحتاج إلى مشاركة مفاتيح API الخاصة بي مع TypingMind لاستخدام خادم MCP Knowit؟

لا. يعطي TypingMind الأولوية للعمل المحلي ويُبقي مزوّدي النماذج ومفاتيح API والمطالبات وإعدادات MCP تحت تحكمك. إذا كان Knowit يتطلب مصادقة، فأضف الترويسات أو إعدادات OAuth أو الإعدادات المحلية المطلوبة لخادم MCP هذا عند إنشاء الاتصال.

خوادم MCP ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇