MCP-Repo2LLM
개요
mcp-repo2llm은 코드 저장소를 LLM 친화적인 형식으로 변환하는 MCP 서버입니다. 코드 저장소를 LLM 친화적인 형식으로 변환하는 강력한 도구로, 기존 코드 베이스와 최신 AI 언어 모델 간의 격차를 해소합니다. 이 저장소는 저장소를 LLM에서 읽을 수 있는 형식으로 변환하는 핵심 기능을 제공하는 RepoToTextForLLMs를 기반으로 합니다.
동기 부여
소프트웨어 개발에서 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(문자열): 저장소 경로
- 반환(문자열): 프로젝트는 저장소의 모든 정보와 지침을 텍스트로 받습니다.
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
GitHub, GitLab 또는 로컬 디렉토리의 코드 저장소를 LLM 친화적인 형식으로 변환하고, 더 나은 AI 처리를 위해 컨텍스트와 구조를 보존하는 MCP 서버입니다.
Related MCP Servers
- -securityAlicense-qualityRepomix MCP Server enables AI models to efficiently analyze codebases by packaging local or remote repositories into optimized single files, with intelligent compression via Tree-sitter to significantly reduce token usage while preserving code structure and essential signatures.Last updated -15,35917,066TypeScriptMIT License
- -securityFlicense-qualityAn MCP server that enables Claude and other compatible LLMs to interact with the GitHub API, supporting features like creating issues, retrieving repository information, listing issues, and searching repositories.Last updated -TypeScript
- -security-license-qualityAn MCP server that automatically generates documentation, test plans, and code reviews for code repositories by analyzing directory structures and code files using AI models via OpenRouter API.Last updated -3TypeScriptCreative Commons Zero v1.0 Universal
- -security-license-qualityAn MCP server that allows Claude and other MCP-compatible LLMs to interact with the GitHub API, supporting features like creating issues, getting repository information, listing issues, and searching repositories.Last updated -TypeScript