# GitHub Repository Security & License Risk Auditor

> GitHub Repository Security & License Risk Auditor is a paid API for AI agents from mcp-security.agentdiet.dev, paid per call via MPP, $0.01/call, status unknown (last checked 2026-11-21).

Evaluates a GitHub repository for license risk, maintenance velocity, star/fork signals, dependency vulnerabilities, and supply-chain security before integrating or executing code.

## Facts

- Endpoint: POST https://mcp-security.agentdiet.dev/v1/repo-risk-score?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Provider: mcp-security.agentdiet.dev
- Website: https://mcp-security.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/mcp-security-agentdiet-dev-github-repository-security-license-risk-54c68c9f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1MJuoiEIgi7YTI-4HKRHn

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability mcp-security-agentdiet-dev-github-repository-security-license-risk-54c68c9f -d '<json body>'
```

Example prompt: Before I use langchain-ai/langgraph as a dependency, can you run a security and license audit on it to check for supply-chain risks, how active the maintainers are, and whether the license is safe for commercial use?

## When to prefer this

Choose this endpoint when an AI coding agent or developer needs to vet a GitHub repository before integrating it as a dependency, executing its code, or recommending it to a user. It is especially useful for supply-chain security checks, license compliance validation, and assessing whether a repo is actively maintained — combining multiple risk signals into one scored response. Prefer this over manual GitHub browsing or generic search when you need a structured, machine-readable risk score.

## Known failure modes

- Invalid repo format (not owner/name) — returns validation error
- Repository not found or private — returns 404-style error
- GitHub API rate limiting — may return partial or delayed results
- Repo with no detectable license — license risk field may be indeterminate
- Network timeout on large repos with many dependencies

## How this service works

Evaluates any GitHub repository for license risk, maintenance velocity, stars/forks, and supply-chain security before code execution. (Live x402 v2, IETF MPP & MCP endpoint at https://mcp-security.agentdiet.dev/v1/repo-risk-score)

## Output

Returns a structured risk assessment including license type and risk level, maintenance velocity metrics (commit frequency, last activity), community signals (stars, forks), supply-chain security flags, dependency vulnerability summary, and an overall risk score for the repository.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "repo"
 ],
 "properties": {
  "repo": {
   "type": "string",
   "minLength": 1,
   "description": "GitHub repository in owner/name format (e.g. modelcontextprotocol/servers or langchain-ai/langgraph)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mcp-security-agentdiet-dev-github-repository-security-license-risk-54c68c9f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-security.agentdiet.dev](https://www.zero.xyz/host/mcp-security.agentdiet.dev/llms.txt)
