MCP-Repo2LLM
MCP-Repo2LLM
개요
mcp-repo2llm은 코드 저장소를 LLM 친화적인 형식으로 변환하는 MCP 서버입니다. 코드 저장소를 LLM 친화적인 형식으로 변환하는 강력한 도구로, 기존 코드 베이스와 최신 AI 언어 모델 간의 격차를 해소합니다. 이 저장소는 저장소를 LLM에서 읽을 수 있는 형식으로 변환하는 핵심 기능을 제공하는 RepoToTextForLLMs를 기반으로 합니다.
Related MCP server: SRC (Structured Repo Context)
동기 부여
소프트웨어 개발에서 AI와 대규모 언어 모델(LLM)의 중요성이 점점 커짐에 따라, 코드베이스를 이러한 모델에 효과적으로 전달해야 할 필요성이 커지고 있습니다. 기존 코드 저장소는 LLM 처리에 최적화되어 있지 않아 AI 도구를 사용하여 코드를 분석하고 생성할 때 최적의 결과를 얻지 못할 수 있습니다.
문제 해결
이 프로젝트는 몇 가지 중요한 과제를 해결합니다.
LLM을 사용하여 대규모 코드베이스를 처리하는 데 어려움
AI 모델에 코드를 공급할 때 컨텍스트와 구조가 손실됨
저장소 메타데이터 및 문서의 비효율적인 처리
다양한 프로그래밍 언어에서 일관되지 않은 형식
주요 특징
스마트 리포지토리 스캐닝 : 구조적 무결성을 유지하면서 전체 코드베이스를 지능적으로 처리합니다.
컨텍스트 보존 : 코드 파일 간의 중요한 컨텍스트 정보와 관계를 유지합니다.
다국어 지원 : 언어별 최적화를 통해 다양한 프로그래밍 언어를 처리합니다.
메타데이터 향상 : 더 나은 LLM 이해를 위해 관련 메타데이터로 코드를 강화합니다.
효율적인 처리 : 최소 리소스 사용으로 대규모 저장소를 처리하도록 최적화됨
설치
uv로 mcp-repo2llm을 설치하려면:
지엑스피1
GITHUB_TOKEN: 귀하의 GitHub 토큰 GITLAB_TOKEN: 귀하의 GitLab 토큰
도구
get_gitlab_repo
GitLab 저장소 브랜치에서 코드를 처리하고 텍스트로 반환합니다.
입력:
repo_url(문자열): gitlab의 저장소 URL
branch(문자열): 브랜치 이름, 기본값은 master입니다.
반환(문자열): 프로젝트는 저장소의 모든 정보와 지침을 텍스트로 받습니다.
get_github_repo
Github 저장소 브랜치에서 코드를 처리하고 텍스트로 반환합니다.
입력:
repo_url(문자열): github의 저장소 URL
branch(문자열): 브랜치 이름, 기본값은 master입니다.
반환(문자열): 프로젝트는 저장소의 모든 정보와 지침을 텍스트로 받습니다.
get_local_repo
GitLab 저장소 브랜치에서 코드를 처리하고 텍스트로 반환합니다.
입력:
repo_url(문자열): 저장소 경로
반환(문자열): 프로젝트는 저장소의 모든 정보와 지침을 텍스트로 받습니다.
Available Tools
3 toolsget_github_repoC
Process and return the code from a GitHub repository branch as text
Inputs: repo_url (required), branch.
get_gitlab_repoC
Process and return the code from a GitLab repository branch as text
Inputs: repo_url (required), branch.
get_local_repoC
Process and return the code from a local repository as text
Inputs: repo_path (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose targeting a different repository source: GitHub, GitLab, and local repositories. The descriptions explicitly differentiate them by source, leaving no ambiguity about which tool to use for each scenario.
All tools follow a consistent verb_noun pattern with 'get_' prefix and descriptive suffixes indicating the repository source. The naming is uniform and predictable across all three tools.
With only 3 tools, the server feels thin for its apparent scope of repository code retrieval. While it covers three repository sources, the functionality is limited to a single 'get' operation without supporting related actions like searching, filtering, or managing repositories.
The tool surface is severely incomplete for repository interaction. It only provides retrieval operations without any create, update, delete, search, or management capabilities. Even within retrieval, there are no options for filtering, pagination, or handling different file types beyond returning 'code as text'.
Maintenance
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
A MCP server built for developers enabling Git based project management with project and personal…
Repository knowledge graph MCP server for codebase understanding and debugging.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that scans codebases to extract structural information (classes, functions, etc.) with flexible filtering options and outputs in LLM-friendly formats.12GPL 3.0
- AlicenseAqualityBmaintenanceAn MCP server and CLI tool that transforms codebases into AI-ready context through semantic search, call graph analysis, and incremental indexing. It enables AI assistants to perform hybrid vector and keyword searches to understand complex repository structures and cross-file relationships.3528 npm3MIT
- AlicenseCqualityDmaintenanceAn MCP server that analyzes local or remote GitHub repositories, providing intelligent code context and structure to AI coding assistants.1013MIT
- AlicenseDqualityDmaintenanceA lightweight MCP server for bringing GitHub repositories into context for large language models, enabling repository analysis, file access, and search without local cloning.47 npm6Apache 2.0