Skip to main content
Glama

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 tools
get_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

    C2.9/5.0

    Scored across 3 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count2/5

    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.

    Completeness2/5

    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

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers