Skip to content

sagarbalaai-code/tgrep-mcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tgrep MCP Server

An MCP connector for Microsoft tgrep (Trigram-indexed grep).

Tools

  • tgrep_search: Fast regex search using the trigram index.
  • tgrep_index: Build or rebuild the trigram index for a directory.
  • tgrep_status: Check the status of the indexing server.
  • tgrep_count_files: Fast file walker to count text files in a directory.
  • tgrep_serve: Start the persistent search server for a directory (enables auto-indexing and fast queries).

Configuration

To use this with an MCP-compatible agent (like Claude Code or Gemini CLI), add it to your configuration:

{
  "mcpServers": {
    "tgrep": {
      "command": "node",
      "args": ["/home/sagar/i_code_i_do/tgrep_mcp/build/index.js"]
    }
  }
}

Build

If you make changes to the source:

npm run build

Requirements

  • tgrep must be installed and available in your PATH.
  • Node.js installed.

About

A custom MCP (Model Context Protocol) server built around Microsoft tgrep tools, designed for fast and scalable tree-structured code search, pattern matching, and analysis workflows.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors