reemshai10
MCP Serverreemshai10public

mcp opengrok

this is an mcp agent for opengrok

Repository Info

1
Stars
0
Forks
1
Watchers
0
Issues
TypeScript
Language
-
License

About This Server

this is an mcp agent for opengrok

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

OpenGrok MCP Server

I created this project to provide an MCP (Model Context Protocol) server for integrating OpenGrok code search with the MCP ecosystem. It enables you to perform code searches (full text, definitions, symbols, file paths, and file types) in your OpenGrok instance via chat-style commands or programmatic requests—directly from your IDE.

Features

  • Full-text search in code repositories
  • Search for definitions, symbols, file paths, and file types
  • Chat-style command support (e.g., search_full_text, project=pro, full_text=python)
  • Seamless integration with MCP clients and tools

Prerequisites

  • Node.js (v18+ recommended)
  • Access to an OpenGrok instance with user and password credentials

Installation

Clone this repository and install dependencies:

npm install

Build the project:

npm run build

Configuration

Set the following environment variables:

  • OPENGROK_URL: Base URL of your OpenGrok instance (without /source, e.g., https://opengrok.example.com)
  • OPENGROK_USERNAME: Your OpenGrok username
  • OPENGROK_PASSWORD: Your OpenGrok password

You can set these in your environment or configure them in your VS Code settings.json:

"mcp": {
  "inputs": [
    { "id": "opengrok_base_url", "type": "promptString", "description": "Enter OpenGrok Base URL" },
    { "id": "opengrok_username", "type": "promptString", "description": "Your OpenGrok Username" },
    { "id": "opengrok_password", "type": "promptString", "description": "Your OpenGrok Password", "password": true }
  ],
  "servers": {
    "mcp-opengrok": {
      "command": "node",
      "args": ["<full_path>/dist/index.js"],
      "env": {
        "OPENGROK_URL": "${input:opengrok_base_url}",
        "OPENGROK_USERNAME": "${input:opengrok_username}",
        "OPENGROK_PASSWORD": "${input:opengrok_password}"
      }
    }
  }
}

Usage

Start the server:

node dist/index.js

Or, if using VS Code MCP integration, the server will be started automatically with the correct environment.

Example Chat Commands

  • Search full text: search_full_text, project=jess_main, full_text=python
  • Search by type: search_by_type, project=pro, type=python
  • Search for a symbol: search_symbol, project=pro, symbol=MyFunction

Development

  • Source code is in the src directory.
  • TypeScript is used; build output is in dist.
  • Dockerfile is provided for containerized builds.

Quick Start

1

Clone the repository

git clone https://github.com/reemshai10/mcp-opengrok
2

Install dependencies

cd mcp-opengrok
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerreemshai10
Repomcp-opengrok
LanguageTypeScript
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation