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

ParametersJSON Schema
NameRequiredDescriptionDefault
repo_urlYes
branchNomaster

TDQS

C2.8/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions processing and returning code as text, which implies a read-only operation, but lacks details on permissions, rate limits, error handling, or what 'process' entails (e.g., formatting, filtering). This is a significant gap for a tool with potential complexity.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with zero waste. It's front-loaded and appropriately sized for the tool's apparent simplicity, making it easy to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations, 0% schema coverage, no output schema, and two parameters, the description is incomplete. It doesn't explain return values, error cases, or behavioral nuances, making it inadequate for an AI agent to use the tool confidently without additional context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the schema provides no parameter details. The description mentions 'GitHub repository branch' but doesn't explain the 'repo_url' or 'branch' parameters beyond what's obvious from the names. It fails to add meaningful semantics, such as URL format or branch defaults, leaving parameters poorly documented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('process and return') and resource ('code from a GitHub repository branch'), making the purpose understandable. However, it doesn't differentiate from sibling tools like 'get_gitlab_repo' or 'get_local_repo' beyond specifying GitHub, which is somewhat implied by the tool name. This prevents a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'get_gitlab_repo' or 'get_local_repo', nor does it mention any prerequisites or exclusions. It only states what it does, leaving usage context entirely to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_gitlab_repoC

Process and return the code from a GitLab repository branch as text

ParametersJSON Schema
NameRequiredDescriptionDefault
repo_urlYes
branchNomaster

TDQS

C2.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions 'process and return... as text', which implies a read operation, but fails to detail critical aspects such as authentication requirements, rate limits, error handling, or what 'process' entails (e.g., formatting, filtering). This leaves significant gaps in understanding the tool's behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, straightforward sentence that efficiently conveys the core action and output. It is front-loaded with the main purpose and avoids unnecessary elaboration, making it easy to parse quickly. However, it could be slightly more structured to include key details without sacrificing brevity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (involves external GitLab access), lack of annotations, 0% schema description coverage, and no output schema, the description is insufficient. It omits essential context such as authentication, error cases, return format details beyond 'as text', and how it differs from siblings, making it incomplete for reliable agent use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 0%, meaning parameters are undocumented in the schema. The description does not explain the parameters (repo_url, branch) beyond what's implied by the tool name and context. It adds no semantic details about parameter formats, constraints, or usage, failing to compensate for the lack of schema documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the tool 'Process and return the code from a GitLab repository branch as text', which provides a clear verb ('process and return') and resource ('code from a GitLab repository branch'). However, it doesn't explicitly distinguish this from its sibling tools (get_github_repo, get_local_repo) beyond mentioning 'GitLab', leaving some ambiguity about when to choose this specific tool over alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description offers no guidance on when to use this tool versus its siblings (get_github_repo, get_local_repo) or any other alternatives. It simply states what the tool does without indicating specific contexts, prerequisites, or exclusions, which limits its utility for an AI agent making selection decisions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_local_repoC

Process and return the code from a local repository as text

ParametersJSON Schema
NameRequiredDescriptionDefault
repo_pathYes

TDQS

C2.8/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions 'Process and return' but doesn't specify what processing entails (e.g., formatting, filtering, or error handling), the return format details, or any constraints like file size limits or authentication needs. This leaves significant gaps in understanding the tool's behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise with a single sentence that directly states the tool's purpose. It is front-loaded and wastes no words, making it easy to parse quickly without unnecessary detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (processing and returning code), lack of annotations, no output schema, and low schema coverage, the description is incomplete. It doesn't explain what 'Process' involves, the return format, error conditions, or how it differs from sibling tools, making it inadequate for an AI agent to use effectively without guesswork.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 0%, with one parameter (repo_path) undocumented in the schema. The description adds no information about this parameter, such as what 'repo_path' should be (e.g., a file system path, relative or absolute) or any examples. It fails to compensate for the low schema coverage, leaving the parameter meaning unclear.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Process and return') and resource ('code from a local repository as text'), providing a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like get_github_repo or get_gitlab_repo, which likely handle remote repositories instead of local ones.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description offers no guidance on when to use this tool versus its siblings (get_github_repo, get_gitlab_repo) or any alternatives. It lacks context about prerequisites, such as needing a valid local repository path, and doesn't mention exclusions or specific use cases.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

C2.9/5.0
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
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/crisschan/mcp-repo2llm'

If you have feedback or need assistance with the MCP directory API, please join our Discord server