← Back to Plugins
MCP Server MCP

OpenGrok MCP Server

github By github 👁 1 views ▲ 0 votes

MCP server bridging OpenGrok search engine with AI for instant context across massive codebases.

Homepage Verified source GitHub

Install

npx -y [email protected]

Configuration Example

{
  "remotes": [],
  "packages": [
    {
      "registryType": "npm",
      "identifier": "opengrok-mcp-server",
      "version": "9.0.1",
      "runtimeHint": "npx",
      "transport": {
        "type": "stdio"
      },
      "environmentVariables": [
        {
          "description": "OpenGrok server base URL (e.g. https://opengrok.example.com/source/)",
          "isRequired": true,
          "format": "string",
          "placeholder": "https://opengrok.example.com/source/",
          "name": "OPENGROK_BASE_URL"
        },
        {
          "description": "OpenGrok authentication username",
          "isRequired": true,
          "format": "string",
          "name": "OPENGROK_USERNAME"
        },
        {
          "description": "OpenGrok authentication password. Prefer storing via OS keychain using 'npx opengrok-mcp-server setup'.",
          "format": "string",
          "isSecret": true,
          "name": "OPENGROK_PASSWORD"
        },
        {
          "description": "Verify TLS certificates. Set to false for self-signed or internal CA certs.",
          "format": "boolean",
          "default": "true",
          "name": "OPENGROK_VERIFY_SSL"
        },
        {
          "description": "Enable Code Mode: 5-tool sandbox interface with env.opengrok.* JavaScript API. Saves 80-95% tokens on large codebases.",
          "format": "boolean",
          "default": "false",
          "name": "OPENGROK_CODE_MODE"
        },
        {
          "description": "Default project to scope all searches. Can be overridden per call.",
          "format": "string",
          "name": "OPENGROK_DEFAULT_PROJECT"
        },
        {
          "description": "Response size tier controlling token usage.",
          "format": "string",
          "default": "minimal",
          "choices": [
            "minimal",
            "standard",
            "generous"
          ],
          "name": "OPENGROK_CONTEXT_BUDGET"
        },
        {
          "description": "Enable interactive project picker at session start and env.opengrok.elicit() in Code Mode sandbox. Requires a supporting MCP client.",
          "format": "boolean",
          "default": "false",
          "name": "OPENGROK_ENABLE_ELICITATION"
        },
        {
          "description": "Model preference for MCP Sampling (used for error explanation and query reformulation).",
          "format": "string",
          "name": "OPENGROK_SAMPLING_MODEL"
        }
      ]
    }
  ]
}
mcp model-context-protocol npm

Comments

Sign in to leave a comment

Loading comments...