Getting started

Installation

One command sets up local storage, writes MCP config for your clients, and updates agent instruction files.

Terminal
$ 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.

The interactive installer 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

Non-interactive installs

Every choice the wizard makes can be passed as a flag, which is useful in scripts and CI:

Terminal
$ npx knowit install --client claude,cursor --scope project --yes
$ npx knowit install --dry-run # preview the plan only

MCP client support

Knowit generates MCP configs that run npx -y knowit@latest serve 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 (project) or ~/.cursor/mcp.json (global)JSON 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 (project) or ~/.gemini/settings.json (global)JSON with mcpServers
KiroWrites .kiro/settings/mcp.json (project) or ~/.kiro/settings/mcp.json (global)JSON 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

Update notifications

Interactive CLI commands show a non-blocking notice when a newer npm release is available. Notifications are skipped for knowit serve (so MCP stdio traffic stays clean), in CI, in tests, and in non-interactive terminals. Disable them with NO_UPDATE_NOTIFIER=1 or --no-update-notifier.