Skip to main content
Glama
chetangpande-ai

GitHub Repository Health MCP

GitHub Repository Health MCP

A real-time GitHub repository health assistant built with the Model Context Protocol, LangChain 1.x, and Groq.

The agent can summarize repository activity, open issues, recent commits, and GitHub Actions workflow health using live GitHub API data.

Project Structure

MCP-Project1/
├── src/
│   └── github_repo_health/
│       ├── __init__.py       # Package metadata
│       ├── config.py         # Environment-backed settings
│       ├── github_api.py      # GitHub REST client and data shaping
│       ├── mcp_server.py     # MCP tools, resources, and prompts
│       └── agent.py           # LangChain + Groq application client
├── tests/
│   └── test_github_api.py    # Fast unit tests for API helpers
├── .env.example              # Configuration template
├── pyproject.toml            # Dependencies and console entry points
├── uv.lock                   # Reproducible dependency lockfile
└── README.md

The separation keeps responsibilities small:

  • github_api.py knows how to call GitHub.

  • mcp_server.py exposes GitHub capabilities through MCP.

  • agent.py decides whether to use MCP or call Groq directly.

  • tests/ verifies pure helper behavior without network calls.

Related MCP server: GitHub Health Monitor MCP

MCP Capabilities

Tools

Tool

Purpose

get_repository_info

Repository metadata, stars, forks, language, branch, and issue count.

get_open_issues

Current open issues, excluding pull requests.

get_recent_commits

Recent commit messages, authors, dates, and links.

get_workflow_runs

Recent GitHub Actions statuses and conclusions.

Resources

Resource

Purpose

github://repository/{owner}/{repo}/health

Live health snapshot combining repository metadata, issues, and workflows.

github://repository/{owner}/{repo}/issues

Current open issues as JSON.

Prompts

Prompt

Purpose

daily_health_report

Produces a repository health report with risks and recommended actions.

triage_open_issues

Groups and prioritizes current open issues.

The first version is read-only. It does not create, modify, close, or label GitHub issues.

Setup

Install dependencies:

uv sync

Create local configuration:

Copy-Item .env.example .env

Set these values in .env:

GROQ_API_KEY=your-groq-api-key
GROQ_MODEL=openai/gpt-oss-120b
GITHUB_OWNER=modelcontextprotocol
GITHUB_REPO=python-sdk
GITHUB_TOKEN=your-github-token

GITHUB_TOKEN is optional for public repositories but recommended for a higher GitHub API rate limit. Never commit .env.

Run The Agent

The installed console command starts the LangChain agent:

uv run github-health-agent "Is this repository healthy?"
uv run github-health-agent "What are the most important open issues?"
uv run github-health-agent "Did the latest workflow pass?"
uv run github-health-agent "Prepare a release-readiness report."

You can also run it as a module:

uv run python -m github_repo_health.agent "Summarize recent activity."

To run only the MCP server for an MCP host such as Claude Desktop:

uv run github-health-mcp

The MCP server is normally started automatically by the LangChain client over stdio.

Agent Flow

For a repository question:

  1. agent.py identifies the request as GitHub-related.

  2. It starts github_repo_health.mcp_server over stdio.

  3. The MCP adapter discovers tools and reads the health resource.

  4. The client loads daily_health_report or triage_open_issues.

  5. Groq decides which live GitHub tools to call.

  6. github_api.py calls GitHub and returns shaped data.

  7. Groq summarizes the results into the final answer.

For unrelated questions, the agent calls Groq directly without starting the MCP server.

Logs

Logs go to stderr and the final answer goes to stdout. GitHub requests show entries such as:

Starting MCP server: github_repo_health.mcp_server
Invoking MCP server: list tools
Invoking MCP server: read resource github://repository/owner/repo/health
Invoking MCP server: get prompt daily_health_report
Invoking LLM: Groq model=openai/gpt-oss-120b
Invoking MCP tool: get_workflow_runs input=...
MCP tool returned: get_workflow_runs
LLM response received

Direct questions show Invoking LLM directly instead.

Tests

Run the fast local tests:

uv run python -m unittest discover -s tests -v

The tests do not call GitHub or Groq, so they are safe to run without API keys.

Available Tools

4 tools
get_open_issuesA

Get open issues, excluding pull requests, for a GitHub repository.

ParametersJSON Schema
NameRequiredDescriptionDefault
repoYes
limitNo
ownerYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral disclosure burden. It usefully reveals that pull requests are excluded, which is a non-obvvious selection behavior. It does not mention pagination, limit handling, sorting, or access requirements, though the output schema covers return shape.

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?

A single concise sentence front-loads the operation and then adds the important pull-request exclusion. Every word contributes; there is no filler or redundancy.

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

Completeness4/5

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

For a simple read-only issue-listing tool with an output schema present, the description identifies the resource, scope, and exclusion that matter most. The main gaps are explicit usage boundaries and parameter-level documentation, which are already penalized in their respective dimensions.

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% and the description does not compensate. It does not explain the role of owner, repo, or limit beyond the schema titles/default. The parameter names are conventional enough to infer, but the description adds no parameter-level meaning.

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

Purpose5/5

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

The description states a specific action ('Get'), resource ('open issues'), and scope ('for a GitHub repository'), plus a critical qualifier ('excluding pull requests'). This clearly distinguishes it from the sibling tools, which cover repository info, commits, and workflow runs rather than issues.

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

Usage Guidelines3/5

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

Usage is implied: call this when you need open issues for a GitHub repository. However, there is no explicit when-to-use versus when-not-to-use guidance, and no alternatives such as get_recent_commits are named, so an agent must infer the decision boundary.

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

get_recent_commitsA

Get recent commits and their authors for a GitHub repository.

ParametersJSON Schema
NameRequiredDescriptionDefault
repoYes
limitNo
ownerYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description bears the burden of behavioral clarification. The verb 'get' communicates a read-only operation, and the mention of commits and authors indicates the returned data. However, it does not disclose pagination, ordering, rate limits, auth requirements, or possible failure modes.

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, front-loaded sentence with no filler or redundant information. Every word contributes to identifying the action and the resource.

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

Completeness4/5

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

The the tool is simple: three scalar parameters, two required, and an output schema exists, so return values do not need to be described. The description plus the input schema is broadly sufficient for an agent to select and invoke the tool, though the exact meaning of 'recent' and the limit parameter is left to inference.

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 description needs to compensate for the schema's lack of parameter documentation. It provides only a high-level hint that the resource is a GitHub repository and that commits are recent; it does not explain how 'owner', 'repo', or 'limit' should be used or that limit defaults to 10.

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

Purpose5/5

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

The description names a specific operation ('get'), a concrete resource ('recent commits'), and the expected result ('and their authors') for a GitHub repository. This clearly distinguishes it from sibling tools that target repository info, issues, or workflow runs.

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

Usage Guidelines3/5

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

The wording implies this tool should be used when an agent needs commit history and author information, but it never explicitly states when to prefer it over get_repository_info, get_open_issues, or get_workflow_runs. There is no when-not-to-use or alternative guidance, so the usage context is only implied.

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

get_repository_infoC

Get current metadata and activity counters for a GitHub repository.

ParametersJSON Schema
NameRequiredDescriptionDefault
repoYes
ownerYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

C2.9/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 states that data is 'current' but does not mention authentication requirements, rate limits, read-only nature, or any side effects. The word 'Get' weakly implies a read operation, but this is not made explicit.

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 that immediately states the action and the resource. There is no redundant phrasing or filler, and the core information is front-loaded.

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

Completeness3/5

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

The tool is simple, there is an output schema available, and sibling names provide context. However, the description lacks usage distinctions and behavioral details such as authentication or scope, leaving the agent to infer important 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 description must compensate for the two parameters. It does not mention owner or repo at all. While 'owner' and 'repo' are somewhat self-explanatory in a GitHub context, the description adds no value to the parameter names.

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 uses a specific verb ('Get') and resource ('metadata and activity counters for a GitHub repository'), which conveys the core purpose. It is distinguishable from sibling tools that target issues, commits, and workflow runs, though it does not explicitly name those 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?

There is no explicit guidance on when to use this tool versus the siblings. The purpose implies it is for repository-level metadata and counters, but the description does not state exclusions or direct the agent to alternatives like get_open_issues or get_recent_commits.

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

get_workflow_runsB

Get recent GitHub Actions workflow runs and their conclusions.

ParametersJSON Schema
NameRequiredDescriptionDefault
repoYes
limitNo
ownerYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

B3.2/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, but it only restates the basic read function. It does not mention auth requirements, rate limits, what 'recent' means, whether filters apply, or which run conclusions are included.

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?

One concise 10-word sentence with the verb and resource front-loaded. Every word earns its place with no filler or repetition of schema structure.

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

Completeness3/5

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

This is a simple 3-param read tool with an output schema present, so return-shape documentation is unnecessary. However, usage selection guidance and behavioral context (auth, filtering, recency definition) are missing, making it merely adequate for autonomous invocation.

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 description must compensate, but it only hints at the limit parameter via 'recent' and leaves owner/repo completely implicit. An agent gets no explicit guidance on what each parameter controls or how limit interacts with recency.

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

Purpose5/5

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

The description uses a specific verb ('Get') and resource ('recent GitHub Actions workflow runs') and states what is returned ('their conclusions'). It clearly distinguishes itself from the sibling tools, which target repository info, issues, and commits.

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?

No when-to-use guidance is provided. The description does not name alternatives like get_open_issues or get_recent_commits, nor does it state conditions under which this tool should be preferred, leaving the agent to infer selection from the tool name alone.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 4 tool updatesv0.1.0
    • First observedget_open_issues
    • First observedget_recent_commits
    • First observedget_repository_info
    • First observedget_workflow_runs

TDQS

A3.7/5.0
Disambiguation5/5

Each tool targets a distinct aspect of repository health: metadata, issues, commits, and workflow runs. There is no overlap or ambiguity between them.

Naming Consistency5/5

All four tools follow a consistent get_<resource>_<detail> pattern with snake_case naming. The naming is predictable and easy to extend.

Tool Count5/5

Four tools is well-scoped for a read-only repository health MCP. Each tool covers a meaningful health signal without unnecessary redundancy.

Completeness4/5

The core health indicators—repo stats, issues, commits, and CI status—are covered. Pull request activity and contributor trends are notable omissions, but the current surface is sufficient for basic health assessments.

Maintenance

ActivityMaintained
ResponsivenessNo issues

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/chetangpande-ai/GitHubReposHealth-MCP'

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