Back to Home
alessandropac96 icon

multi-repo-context-MCP-server

by alessandropac96

Overview

A reusable server for agents to interact with and gain context from multiple local code repositories using a hierarchical tool organization.

Installation

Run Command
npm start

Environment Variables

  • MULTI_REPO_MCP_CONFIG
  • MULTI_REPO_MCP_REPOS_PATH
  • DEBUG

Security Notes

The server dynamically loads tool modules using `import()` based on paths specified in its configuration files (e.g., `repo.tools` property). If a malicious actor can compromise or inject into the `.multi-repo-mcp/repos.json` (project-local or user config) or control the `MULTI_REPO_MCP_CONFIG` environment variable, they could specify paths to arbitrary code, leading to Remote Code Execution (RCE). Additionally, the `search_across_repos` tool uses a user-provided `query` in a regular expression, which could be vulnerable to Regular Expression Denial of Service (ReDoS) attacks. File system operations (`fs.readFile`, `fs.readdir`) are used, which, while generally restricted to configured `repoPath`s, could pose a risk if `repoPath` validation is circumvented (e.g., via symlinks, though `RepoValidator` attempts to prevent this).

Similar Servers

Stats

Interest Score0
Security Score4
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2026-01-16

Tags

Multi-repoToolingContext ManagementRepository DiscoveryPlugins