Files
mcp-use__mcp-use/lychee.toml
T
Ayaan Gazali 612a87d561 fix(ci): exclude stargazers and star-history badge URLs from link checker (#2026)
Both URL classes are false positives that the weekly Link Checker
workflow has re-reported three Sundays running (#1838, #1867, #1939):

- GitHub /stargazers pages serve 404 to non-browser clients as bot
  mitigation; they load fine in a browser. Verified the same behavior
  on unrelated repos' stargazers pages.
- api.star-history.com/svg intermittently returns 5xx; the badge it
  serves is decorative.

Both patterns are anchored so they only skip these exact cases: the
plain repo URL and any future /svg-* endpoint still get checked.
2026-08-04 12:39:47 -07:00

54 lines
1.8 KiB
TOML

# Accept redirects (302, 307) as valid - these are fine
accept = ["100..=103", "200..=299", "302", "307"]
# Exclude patterns - links that are known to be okay or not checkable in CI
exclude = [
# npmjs.com - 403s are rate limiting, packages exist
"^https://www\\.npmjs\\.com",
"^https://npmjs\\.com",
"npmjs\\.com",
# OpenAI platform docs - requires authentication
"^https://platform\\.openai\\.com/docs/apps",
# Auth0 dashboard - redirects are fine
"^https://manage\\.auth0\\.com",
# WorkOS - some redirects and network issues in CI
"^https://dashboard\\.workos\\.com",
"^https://community\\.workos\\.com",
# Lychee GitHub repository - self-reference
"^https://github\\.com/lycheeverse/lychee",
# Langfuse Cloud API endpoints - 403s from bot protection in CI, valid defaults
"^https://(us\\.|jp\\.|hipaa\\.)?cloud\\.langfuse\\.com",
"cloud\\.langfuse\\.com",
# Example/template URLs
"^https://github\\.com/your-org/",
# GitHub /stargazers pages return 404 to non-browser clients (bot mitigation);
# they load fine in a browser. Verified against other repos' stargazers pages too.
"^https://github\\.com/[^/]+/[^/]+/stargazers$",
# star-history.com badge API intermittently returns 500s; the badge is decorative
"^https://api\\.star-history\\.com/svg(\\?|$)",
]
# Skip generated changelogs - historical release notes reference docs URLs
# that were valid at release time; rewriting them is misleading
exclude_path = [
"libraries/typescript/packages/cli/CHANGELOG\\.md$",
"libraries/typescript/packages/create-mcp-use-app/CHANGELOG\\.md$",
"libraries/typescript/packages/inspector/CHANGELOG\\.md$",
"libraries/typescript/packages/mcp-use/CHANGELOG\\.md$",
]
exclude_loopback = true
exclude_link_local = true
# Maximum number of redirects to follow
max_redirects = 5