
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Cometix Indexer 是本地语义代码搜索服务,实现基于 Model Context Protocol 的服务器,封装 Cursor RepositoryService 的建库、同步与搜索流程,并提供 index_project 与 codebase_search 工具。
Cometix Indexer is cataloged as an MCP server attributed to cometixai. Cometix Indexer 是本地语义代码搜索服务,实现基于 Model Context Protocol 的服务器,封装 Cursor RepositoryService 的建库、同步与搜索流程,并提供 index_project 与 codebase_search 工具。 It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Cometix Indexer are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
提供 index_project 与 codebase_search 两类 MCP 工具。
搜索前会触发一次按需增量同步,以保证结果新鲜。
支持 paths_include_glob 与 paths_exclude_glob 过滤,并可传入 max_results 参数。
README.md · 9dc69ba88ddb · 采集于 2026-11-13 08:12:17 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
语义代码搜索的本地索引与检索服务。该项目实现了一个基于 Model Context Protocol(MCP)的服务端,封装了对 Cursor 后端 RepositoryService 的建库、同步与搜索流程,通过两类 MCP 工具对外提供能力:项目索引(index_project)与语义搜索(codebase_search)。
{
"mcpServers": {
"cometix-indexer": {
"command": "npx",
"args": [
"-y",
"--package=git+https://github.com/CometixAI/Cometix-Indexer.git",
"cometix-indexer",
"start"
],
"env": {
"CURSOR_AUTH_TOKEN": "",
"CURSOR_BASE_URL": "https://api2.cursor.sh"
}
}
}
}
{
"mcpServers": {
"cometix-indexer": {
"command": "npm",
"args": [
"--prefix",
"<path>",
"run",
"start"
],
"env": {
"CURSOR_AUTH_TOKEN": "",
"CURSOR_BASE_URL": "https://api2.cursor.sh"
}
}
}
}
index_project
{ workspacePath: string; verbose?: boolean }verbose=true 时,额外返回本轮上传的相对路径文件列表。{ codebaseId, uploaded, batches, nextSyncAt }codebase_search
{ query: string; paths_include_glob?: string; paths_exclude_glob?: string; max_results?: number }{ total, hits: Array<{ path, score, startLine, endLine }> }示例(概念性):
{
"name": "index_project",
"arguments": { "workspacePath": "E:/project" }
}
{
"name": "codebase_search",
"arguments": { "query": "What is the xxx paper", "paths_include_glob": "src/**/*.rs", "paths_exclude_glob": "**/tests/**", "max_results": 50 }
}
src/index.ts:进程入口。解析 CLI/环境变量,创建 MCP Server 并接入 stdio 传输。src/server.ts:注册 MCP 工具:index_project 与 codebase_search。src/services/repositoryIndexer.ts:索引与同步核心逻辑(初次建库、分批上传、增量同步、定时器)。src/services/codeSearcher.ts:搜索逻辑(预同步、远端搜索、结果解密与规整)。src/services/fileWatcher.ts:文件变更监听,标记 pendingChanges。src/services/stateManager.ts:工作区状态持久化(state.json)。src/crypto/pathEncryption.ts:路径分段加解密方案与 Windows/Posix 互转。src/client/proto.ts:加载 proto/repository_service.proto 并以 protobuf 编解码发送 HTTP 请求。src/client/cursorApi.ts:封装调用的具体 RepositoryService 接口。src/utils/env.ts:配置解析、默认参数与请求头。src/utils/fs.ts:忽略规则、文件遍历与可嵌入文件清单读取。src/utils/semaphore.ts:并发控制与带重试的信号量。node_modules/、.git/、dist/ 等)并生成默认清单 embeddable_files.txt(每个工作区独立存放)。@anysphere/file-service 的 MerkleClient 构建目录 Merkle 树,获取 rootHash 与 simhash。pathKey),并以 V1MasterKeyedEncryptionScheme 对相对路径逐段加密。INITIAL_UPLOAD_MAX_FILES)执行完整流程:
FastRepoInitHandshakeV2 握手(返回 codebaseId)。FastUpdateFileV2)。EnsureIndexCreated 与 FastRepoSyncComplete 标记索引完成。codebaseId、pathKey、orthogonalTransformSeed 等持久化到工作区状态 state.json。chokidar 监听文件变更,只标记 pendingChanges = true(轻量)。SyncMerkleSubtreeV2 对目录节点进行比对,定位不匹配的子树与文件。EnsureIndexCreated/FastRepoSyncComplete。pendingChanges 标记并持久化。SearchRepositoryV2 并对返回的加密路径用本地 pathKey 解密为 Posix 相对路径,输出 { path, score, startLine, endLine }。proto/repository_service.proto 必须存在(仓库已附带)。npx -y --package=git+https://github.com/CometixAI/Cometix-Indexer.git cometix-indexer -- --auth-token "$CURSOR_AUTH_TOKEN" --base-url https://api2.cursor.sh
# 安装依赖并构建
npm install
npm run build
# 方式一:通过环境变量(PowerShell 示例)
$env:CURSOR_AUTH_TOKEN="你的Token"; npm run start
# 方式二:通过参数传递(-- 之后的参数会透传给脚本)
npm run start -- --auth-token 你的Token --base-url https://api2.cursor.sh --log-level info
# 开发模式(监听编译;运行需要另开终端执行 start)
npm run dev
# 另开一个终端
npm run start -- --auth-token 你的Token
可用环境变量:
CURSOR_AUTH_TOKEN(必需)CURSOR_BASE_URL(默认 https://api2.cursor.sh)LOG_LEVEL(debug | info | warning | error,默认 info)SYNC_CONCURRENCY(默认 4)SYNC_MAX_NODES(默认 2000)SYNC_MAX_ITERATIONS(默认 10000)SYNC_LIST_LIMIT(默认 1000)FILE_SIZE_LIMIT_BYTES(默认 2MB,超出将跳过)INITIAL_UPLOAD_MAX_FILES(默认 10,初次索引分批大小)PROTO_TIMEOUT_MS(默认 30000)PROTO_SEARCH_TIMEOUT_MS(默认 60000)AUTO_SYNC_INTERVAL_MS(默认 5 分钟)npm install
npm run build
%USERPROFILE%/.cometix/cursor-indexer/<safeName>-<hash>/
state.json:保存 codebaseId、pathKey、orthogonalTransformSeed 等。embeddable_files.txt:首次索引生成的可嵌入文件列表,可手动编辑以精确控制索引范围。aes-256-ctr)并在 Windows 相对路径(以 ./ 或 .\ 起始)层面进行,避免泄露真实目录结构。pathKey 解密为 Posix 相对路径,失败时回退为原始加密串。node_modules/、.git/、.cursor/、dist/、build/、coverage/ 等。FILE_SIZE_LIMIT_BYTES 的文件会被跳过。repository_service.proto not found:请确认项目根目录存在 proto/repository_service.proto。Missing CURSOR_AUTH_TOKEN:通过 --auth-token 传参或设置环境变量 CURSOR_AUTH_TOKEN。MIT
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Cometix Indexer from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/cometix-indexer)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.