MCP.so
ログイン

Krep MCP Server

@MCP-Mirror

基本情報

カテゴリ

その他

トランスポート

stdio

作者

MCP-Mirror

Krep MCP Server について

Mirror of

#krep#mcp#string-search

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 with MCP (Model Context Protocol) integration for the infinity-topos environment. It wraps the krep binary, an ultra-fast pattern matching utility, and exposes its functionality through MCP so AI assistants can perform efficient pattern searching in files and strings.

How to use Krep MCP Server?

First, ensure the krep binary is installed (e.g., make in the krep-native repository). Then configure the MCP server in your MCP settings file with the command, args, and env as shown in the README. Invoke the tool by calling the single unified function with parameters: pattern, target, mode (file, string, or count), caseSensitive, and threads. Integration with Cline VSCode extension is also supported via provided shell scripts.

Key features of Krep MCP Server

  • High-Performance Search using optimized algorithms (KMP, Boyer-Moore-Horspool, Rabin-Karp)
  • Hardware Acceleration: SIMD instructions (SSE4.2/AVX2/NEON) when available
  • Optimized Multi-Threading: automatically uses all CPU cores
  • Unified Interface: single function with file, string, and count modes
  • MCP Integration: seamless connection with AI assistants

Use cases of Krep MCP Server

  • Searching for patterns in large source code files or logs
  • Matching strings within application output or data streams
  • Counting occurrences of a pattern across files without extracting full matches
  • Enabling AI assistants to perform rapid codebase analysis
  • Integrating with Cline VSCode extension for in-editor pattern searching

よくある質問

1

What dependencies does Krep MCP Server require?

You need the krep binary installed and built from source (https://github.com/barton-willis/krep-native), Node.js to run the server, and an MCP‑compatible host (e.g., Claude Desktop, Cline). The server uses environment variables like `KREP_PATH`, `CLAUDE_MCP`, and `DEBUG`.

2

How do I configure the path to the krep binary?

Set the `KREP_PATH` environment variable in your MCP settings file to the full path of the krep binary. The server looks in 37 different paths, but it is recommended to specify it explicitly.

3

What search algorithms does Krep MCP Server use?

It automatically selects KMP for patterns shorter than 3 characters, Boyer-Moore-Horspool for 3–16 characters, and Rabin-Karp for patterns longer than 16 characters. SIMD instructions (SSE4.2, AVX2, NEON) are used when available.

4

Can I test the server without a real krep binary?

Yes. Set `KREP_TEST_MODE` to `"true"` to enable mock responses that simulate success even when the binary is missing. Also set `KREP_SKIP_CHECK` to `"true"` to skip binary existence checks.

5

How do I integrate Krep MCP Server with Cline VSCode extension?

Use the provided scripts: run `install-cline-integration.sh` to set up integration, `run-cline-test.sh` to test before installing, and `uninstall-cline-integration.sh` to remove it. After setup, use the command `/krep krep pattern="..." target="..." mode="..."` in Cline conversations.

コメント

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