
Index Server
io.github.jagilber-org由 GitHub 账号 jagilber-org 发布v1.42.4更新于 Oct 24, 2026
MCP instruction indexing server with search, CRUD, validation, and cross-repo knowledge promotion.
概览
一个本地 MCP 知识库,让 AI 助手跨仓库搜索、读取并贡献带版本与治理的指令条目。
- 可以做什么
- 搜索并检索目录条目,启用环境变量后可选用基于嵌入的语义搜索,并通过 dispatch 动作按 ID 获取完整详情。新增、更新和删除指令条目,支持清理重复项的 groom 与弃用过期内容的治理更新。将仓库中验证过的模式提升到共享目录,保留归属、版本和审批状态。通过可选的 localhost 管理仪表板监控目录健康、使用情况和依赖图,并使用内置的只读提示与资源进行配置和验证。
- 适用场景
- 适合多个仓库或助手会话需要共享已验证的可复用指引、而不是重复记录的场景,也适合需要审批与弃用流程、可审计目录而非零散笔记的团队。
- 运行要求
- 通过 npm 包以 stdio 在本地运行,需要 Node.js 22 或更高版本。可选设置包括用于数据目录的 INDEX_SERVER_DIR、用于语义搜索的 INDEX_SERVER_SEMANTIC_ENABLED(首次运行会下载约 90MB 模型)以及强制只读的 INDEX_SERVER_MUTATION。仪表板的 HTTPS 证书需要 PATH 中有 openssl;也提供 Docker 方式。
安装
在 SourceWeft 中
- 打开 控制台中的 Index Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Index Server
Governed knowledge base for AI agents via the Model Context Protocol (MCP).
[License: MIT] [npm version] [Node.js Version] [codecov]
🚀 Quick Start Guide — Get running in 5 minutes with HTTPS and semantic search
📖 Use Case Scenarios — Real-world examples for support engineers, dev teams, and knowledge management
What Is Index Server?
Index Server is a central knowledge base that AI agents connect to via the Model Context Protocol (MCP). Agents search, read, and contribute knowledge that persists across sessions and repositories — building a governed catalog with versioning, audit trails, and approval workflows. An optional admin dashboard provides real-time monitoring of catalog health, usage analytics, and drift detection.
Prerequisite: Node.js
Index Server requires Node.js 22 or newer before using the npx or source install options. Download Node.js from nodejs.org or install it with Windows Package Manager from administrator prompt:
Quick Start Options
Option A: MCP-native via npx (recommended)
Run the latest published package without cloning the repo. Choose this when you want the fastest local start and already have Node.js installed.
Start with the setup wizard so it can generate the right MCP client config for VS Code, Copilot CLI, or Claude Desktop:
To launch the server directly without the wizard:
Prefer a stable
index-servercommand onPATH? Install globally instead:npm install -g @jagilber-org/index-server, then runindex-server --setup/index-server --dashboard. The GitHub Packages mirror requires authentication, sonpxagainstnpm.pkg.github.comneeds a per-scope.npmrcplus aGITHUB_TOKENwithread:packages.
Upgrading or hitting "unsupported INDEX_SERVER key" / "Cannot find module" errors after install? Run the wizard-driven cleanup:
index-server --uninstall(aliases:--remove,--clean). It can selectively remove data paths, MCP client entries, and the global package, or wipe everything with--non-interactive --all. See Upgrading and Uninstalling for the full reference.
Bootstrap HTTPS for the dashboard
Generate a self-signed TLS cert+key in one command:
--init-cert alone exits after generation. --init-cert --start continues
into normal startup with the generated cert wired into --dashboard-tls
automatically.
Prerequisite: openssl must be on PATH. On Windows, Git for Windows
(git.exe) is the recommended TLS prerequisite because it ships an openssl
build, typically at C:\Program Files\Git\usr\bin\openssl.exe. If it is
missing, install Git for Windows from an admin prompt:
See docs/cert_init.md for setup guidance, the full flag
reference, security notes, and troubleshooting.
Option B: VS Code MCP configuration
Use VS Code's built-in MCP support with .vscode/mcp.json or your global mcp.json. You can add the server entry manually or run npx -y @jagilber-org/index-server@latest --setup to generate the config for you.
Option C: Docker
Run the server in a container. Choose this when you want isolated runtime dependencies or you are preparing a container-based deployment.
See Docker Deployment Guide for volumes, environment variables, and production configuration.
Option D: From source
Clone and build the repository yourself. Choose this when you want to modify the server, run tests locally, or work from the latest source.
After the build completes, run the interactive setup wizard to generate .env and your MCP client config:
Configure Your MCP Client
Best practice: set
INDEX_SERVER_DIRto a well-known data folder such asC:/mcp/index-data/instructionsor~/.index-server/instructions. Keep it outside VS Code and MCP client config paths so backups and reinstalls do not move or overwrite your catalog.
VS Code (`.vscode/mcp.json`)
Copilot CLI (`~/.copilot/mcp-config.json`)
Claude Desktop (`claude_desktop_config.json`)
See MCP Configuration Guide for advanced patterns, environment variables, and TLS setup.
Verify
- Server appears in your MCP client's server list
- Run
tools/listto see 50+ available tools - Run
prompts/listto discover setup/config/verification prompts - Run
resources/listto discover quickstart and configuration guides - Dashboard (if enabled) at
http://localhost:8787
Built-in MCP prompts and resources
Clients that support MCP prompts/resources can use the built-in read-only setup guidance surface:
- Prompts:
setup_index_server,configure_index_server,verify_index_server - Resources:
index://guides/quickstart,index://guides/client-config,index://guides/verification
These surfaces are intentionally static and read-only. Use them for setup help, config review, and verification/troubleshooting without changing server state.
Enable Semantic Search (optional)
Add one env variable to any MCP config above to get embedding-based similarity search:
First search downloads a ~90MB model (one-time). After that, all searches automatically use semantic mode — no code changes needed. See Quick Start Guide for GPU acceleration and offline options.
Teach Your Agents
Copy-paste these instructions so your AI agents discover and use the shared knowledge base automatically.
Global instructions (~/.github/copilot-instructions.md)
Per-repo instructions (.github/copilot-instructions.md)
Dashboard
The optional admin dashboard provides a Grafana-dark themed interface for monitoring and catalog management:
See dashboard.md for full details. REST client scripts (scripts/index-server-client.ps1 and scripts/index-server-client.sh) provide full CRUD access for CI pipelines and subagents without MCP — see tools.md.
Key Features
- MCP protocol compliance — Full JSON-RPC 2.0 over stdio with schema validation
- 50+ tools for search, CRUD, governance, analytics, messaging, and feedback
- Semantic search — Optional embedding-based similarity search (HuggingFace models)
- Bootstrap security — Mutations gated until human confirmation on fresh installs
- Cross-repo knowledge promotion — Validate locally, then promote proven patterns to the shared catalog
- Governance workflows — Ownership, versioning, approval status, and deterministic governance hashing
- Post-commit lifecycle hooks — Optional create/update/remove/change automation with timeout, concurrency, blocking, redaction, and failure isolation
- REST client scripts — PowerShell and Bash scripts for CI/agents without MCP
Documentation
Security
Index Server makes zero telemetry calls and sends no data to external services during normal operation. Operator-configured lifecycle hooks can explicitly invoke local or remote integrations; they are disabled by default. The dashboard binds to localhost only by default. Mutations are audit-logged, can be forced read-only with INDEX_SERVER_MUTATION=0, and fresh installations gate writes until human confirmation via the bootstrap workflow. Optional subsystems can be disabled at boot (e.g. INDEX_SERVER_MESSAGING_ENABLED=0 to remove all messaging_* MCP tools and the dashboard Messaging tab).
See SECURITY.md for vulnerability reporting, PRIVACY.md for data collection policy and optional outbound connections, and Network Privacy Guide for offline deployment and verification.
Development
See CONTRIBUTING.md for the full workflow, code standards, and testing requirements.
License
MIT License — see LICENSE file for details.
Built with Model Context Protocol (MCP), TypeScript, Node.js, Vitest, and AJV.
来源:README.md,提交 17e38d7
工具
0版本历史
1- v1.42.4最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分