SS

srclight/srclight

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

59 stars 13 forks 品質 86 トレンド 27MIT

AIエージェントのMCPサーバーをインデックス化したディープコードです。 25 ツール: ハイブリッド FTS5 + 埋め込み検索, コールグラフ, git blame/hotspots, ビルド システム解析.

概要

SQLite FTS5 + ツリーシッター + 埋め込み + MCP. Srclight は、AI コーディングエージェントが即座にクエリできるコードベースの豊富な検索可能なインデックスを構築します。 grep/glob コールの数十を正確で構造化されたルックアップで置き換えます。 これは、利用可能な最も包括的なコードインテリジェンスMCPサーバーです: シンボル検索、リレーショングラフ、コミュニティの検出、インパクト分析、git変更インテリジェンス、セマンティック検索、システム意識の構築、およびドキュメント抽出に関する42のツールは、他の単一のMCPサーバーが結合する機能はありません。 ローカルおよびプライベート:あなたのコードはあなたの機械を残しません。 AIのコーディングエージェント(クロードコード、カーソルなど)の支出 — ファイルを検索し、コードを読み、構造を理解し、発信者や呼び出し者を狩猟します。 この廃棄物を排除する.

概要(AI 翻訳)

AIエージェントのディープコードインデックス。 SQLite FTS5 + ツリーシッター + 埋め込み + MCP.

Srclight は、AI コーディングエージェントが即座にクエリできるコードベースの豊富な検索可能なインデックスを構築します。 grep/glob コールの数十を正確で構造化されたルックアップで置き換えます。 これは、利用可能な最も包括的なコードインテリジェンスMCPサーバーです: シンボル検索、リレーショングラフ、コミュニティの検出、インパクト分析、git変更インテリジェンス、セマンティック検索、システム意識の構築、およびドキュメント抽出に関する42のツールは、他の単一のMCPサーバーが結合する機能はありません。 ローカルおよびプライベート:あなたのコードはあなたの機械を残しません。

なぜ?

AIコーディングエージェント(クロードコード、カーソルなど)は、オリエンテーションに関するトークンの**40-60%を費やしています。ファイルを検索し、コードを読み、構造を理解し、発信者や呼び出し者のために狩猟します。 この廃棄物を排除する。

| 滑走路端燈なし | 滑走路端灯付 | お問い合わせ | 8-12 発信者一覧 | get_callers("lookup") — ワンコール | | モジュールを理解するための5つのファイル | [codebase_map() — インスタント概要 | | 「X」のコードを修正 → 20 greps | [semantic_search("dictionary lookup") — 1 呼び出し |

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Srclight

Deep code indexing for AI agents. SQLite FTS5 + tree-sitter + embeddings + MCP.

Srclight builds a rich, searchable index of your codebase that AI coding agents can query instantly — replacing dozens of grep/glob calls with precise, structured lookups. It is the most comprehensive code intelligence MCP server available: 42 tools covering symbol search, relationship graphs, community detection, impact analysis, git change intelligence, semantic search, build system awareness, and document extraction — capabilities no other single MCP server combines. Fully local and private: your code never leaves your machine.

Why?

AI coding agents (Claude Code, Cursor, etc.) spend 40-60% of their tokens on orientation — searching for files, reading code to understand structure, hunting for callers and callees. Srclight eliminates this waste.

Without Srclight With Srclight
8-12 grep rounds to find callers get_callers("lookup") — one call
Read 5 files to understand module codebase_map() — instant overview
“Find code that does X” → 20 greps semantic_search("dictionary lookup") — one call
Edit a function, break 47 callers detect_changes() — shows blast radius before you commit
15-25 tool calls per bug fix 5-8 tool calls per bug fix

Features

  • Minimal dependencies — single SQLite file per repo, no Docker/Redis/vector DB
  • Fully offline — no API calls, works air-gapped (Ollama local embeddings)
  • Incremental — only re-indexes changed files (content hash detection)
  • 19 languages — Python, C, C++, C#, Java, Kotlin, Swift, Dart, Go, Rust, JavaScript, TypeScript, PHP, Lua, Bash, SQL, Groovy, CMake, Markdown — include fragments (.inc, .inl, .ipp, .tcc) included, plus any extension you declare with --ext
  • Says what it skipped — index_status names the extensions a run walked past, so an incomplete answer never reads as a complete one
  • 10 document formats — PDF, DOCX, XLSX, HTML, CSV/TSV, email (.eml), images (PNG/JPG/SVG/etc.), plain text, RST, Markdown
  • Optional OCR — PaddleOCR for scanned/image-only PDF pages; pytesseract for images
  • 4 search modes — symbol names, source code (trigram), documentation (stemmed), semantic (embeddings)
  • Hybrid search — RRF fusion of keyword + semantic results for best accuracy
  • Multi-repo workspaces — search across all your repos simultaneously via SQLite ATTACH+UNION
  • MCP server — works with Claude Code, Cursor, and any MCP client
  • CLI — index, search, and inspect from the terminal
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "srclight": { "command": "srclight", "args": ["serve", "--workspace", "myworkspace"] } } }