MCP.so
ログイン

Krep MCP Server

@bmorphism

基本情報

カテゴリ

その他

トランスポート

stdio

作者

bmorphism

Krep MCP Server について

High-performance string search MCP server with automatic CPU core scaling

#krep#mcp#string-search#high-performance

Krep MCP Server の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "krep": {
      "command": "node",
      "args": [
        "/path/to/krep-mcp-server/src/index.js"
      ],
      "env": {
        "CLAUDE_MCP": "true",
        "KREP_PATH": "/path/to/krep-native/krep",
        "DEBUG": "true"
      },
      "description": "High-performance string search utility with unified interface",
      "disabled": false,
      "autoApprove": [
        "krep"
      ]
    }
  }
}

Krep MCP Server のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is Krep MCP Server?

Krep MCP Server is a high‑performance string search utility that wraps the krep binary and exposes its functionality through the Model Context Protocol (MCP). It allows AI assistants to perform efficient pattern searching in files and strings using optimized algorithms and hardware acceleration.

How to use Krep MCP Server?

Install the krep binary, then configure the MCP server in your MCP settings file with the path to the server script and the required environment variables (e.g., KREP_PATH). Invoke the single unified function krep with parameters for pattern, target, mode, case sensitivity, and thread count.

Key features of Krep MCP Server

  • High‑performance search using KMP, Boyer‑Moore‑Horspool, and Rabin‑Karp algorithms
  • Hardware acceleration via SIMD instructions (SSE4.2/AVX2/NEON)
  • Optimized multi‑threading that auto‑detects all CPU cores
  • Unified interface: one function supporting file search, string search, and count‑only mode
  • Seamless integration with AI assistants through the Model Context Protocol
  • Automatic algorithm selection based on pattern length

Use cases of Krep MCP Server

  • AI assistants performing fast pattern matching in large codebases
  • Developers searching strings or files contextually within an IDE (e.g., Cline VSCode extension)
  • Counting occurrences of a pattern without retrieving full matches
  • Integrating with other MCP services (e.g., Babashka, Say, Coin‑Flip) in the infinity‑topos environment

よくある質問

1

What is Krep MCP Server?

It is a wrapper around the krep binary that provides a high‑performance string search utility accessible through the Model Context Protocol, enabling AI assistants to search files and strings efficiently.

2

Does Krep MCP Server require the krep binary to be installed?

Yes. The server expects the krep binary to be present; its path can be specified via the `KREP_PATH` environment variable. The server will skip the check if `KREP_SKIP_CHECK` is set to `true`.

3

Can Krep MCP Server run in a non‑MCP mode?

Yes. When not running in MCP mode, the server starts an HTTP server with endpoints for health check, search, match, performance, and algorithm selection.

4

What search algorithms does Krep MCP Server use?

It uses Knuth‑Morris‑Pratt (KMP) for very short patterns (<3 characters), Boyer‑Moore‑Horspool for medium‑length patterns (3‑16 characters), and Rabin‑Karp for longer patterns (>16 characters). Hardware acceleration via SIMD is used when available.

5

How is Krep MCP Server integrated with Cline VSCode extension?

The server provides installation scripts (`install-cline-integration.sh`) and a test script (`run-cline-test.sh`) to set up the integration, allowing users to search with `/krep` commands directly in Cline conversations.

コメント

「その他」の他のコンテンツ