Skip to content

LarryLemonBot/gatecheck-oss

Repository files navigation

GateCheck

tests CodeQL OpenSSF Scorecard License: MIT

GateCheck is an open-source, read-only x402 and MCP readiness toolkit for paid agent-tool sellers. It helps developers inspect whether a public paid API or MCP server is discoverable, payable, inspectable, and claim-bounded before buyers or agents route spend to it.

The code is intentionally stdlib-first and safe by default. It does not contain private LarryBuildsAI workspace state, credentials, wallets, customer data, deployment secrets, or unrelated product source.

Project Status

GateCheck is an alpha-stage OSS release with a clean public history, MIT license, CI, and focused security regression coverage. The current package is most useful for developers building or reviewing paid x402/MCP services who need a local, claim-bounded preflight before public distribution.

The repository is intentionally small: it exposes the reusable GateCheck core, tests, and public documentation without bundling the private LarryBuildsAI workspace or hosted-service deployment state.

What It Includes

  • Public .well-known/x402, OpenAPI, llms.txt, agents.txt, and MCP discovery scanning.
  • Unpaid x402 paid-path probes that check HTTP 402 challenge behavior without signing or paying.
  • Deterministic receipts with secret-like evidence rejection.
  • Agent-tool readiness scoring for x402/MCP sellers.
  • Buyer-safe x402 launch-pack generation.
  • A small JSON-RPC MCP surface for GateCheck tools.
  • Focused tests for SSRF protections, URL sanitization, auth boundaries, x402 payment helpers, and claim-bounded receipts.

Install And Test

python -m pip install -e ".[dev]"
python -m pytest -q

Run a local scan:

python -m x402_resource_scanner https://example.com --agent-discovery

The scan returns structured JSON with observed public surfaces, findings, score breakdowns, and retest commands. Example output for a target with no x402 or MCP metadata:

{
  "target": "https://example.com",
  "score": 0,
  "issues": [
    "missing .well-known/x402 manifest",
    "missing OpenAPI document",
    "missing agent llms.txt discovery file",
    "missing agents.txt discovery file",
    "missing .well-known/mcp.json discovery file",
    "MCP endpoint not reachable at /mcp"
  ],
  "scoreBreakdown": {
    "confidence": {
      "score": 100,
      "reasons": [
        "public metadata and unpaid checks only; no settlement/downstream execution claims"
      ]
    }
  }
}

Maintainer Workflows

  • CI runs the full pytest suite on pushes and pull requests.
  • CodeQL scans Python code paths for security issues.
  • Dependabot watches GitHub Actions and Python packaging updates.
  • OpenSSF Scorecard records supply-chain hygiene signals for reviewers.
  • Security-sensitive behavior is covered by regression tests for private-host rejection, credentialed URL rejection, redirect handling, MCP auth boundaries, receipt sanitization, and x402 helper fail-closed behavior.

Safety Boundaries

GateCheck is designed for public metadata and unpaid challenge checks only.

  • No private endpoint probing by default.
  • No credentialed URLs.
  • No cookies, API keys, private keys, wallet secrets, customer data, or raw payment headers.
  • No signing, funds movement, custody, escrow, outreach, or listing submission.
  • No marketplace endorsement, certification, ranking, customer adoption, or downstream execution claims.
  • Scanner fetches reject private/internal hosts and DNS answers resolving to non-global IP addresses.
  • Scanner fetches do not follow redirects.

Core Modules

  • x402_resource_scanner/scanner.py checks public x402, OpenAPI, and agent-discovery metadata.
  • x402_resource_scanner/health.py probes unpaid x402 paid paths.
  • x402_resource_scanner/receipt.py creates claim-bounded receipts.
  • x402_resource_scanner/readiness.py composes scan/probe evidence into readiness reports.
  • x402_resource_scanner/launch_pack.py generates launch artifacts without publishing or outreach.
  • x402_resource_scanner/mcp.py exposes GateCheck tools over JSON-RPC.
  • x402_resource_scanner/x402_payment.py implements small x402 payment helper primitives.

Hosted Service

The hosted GateCheck service is available at:

  • Product homepage: https://proofbeforepay.vercel.app/gatecheck
  • Remote MCP endpoint: https://proofbeforepay.vercel.app/gatecheck/mcp

The hosted service may require product-specific authorization for protected tool execution. Public initialization and tool-list discovery are available for marketplace/client inspection.

Source repository:

  • https://github.com/LarryLemonBot/gatecheck-oss

Roadmap

The public roadmap is tracked in docs/ROADMAP.md and GitHub issues. Near-term work is focused on safe fixture coverage, clearer demo artifacts, MCP client examples, and stronger public metadata checks.

Release notes are tracked in CHANGELOG.md.

Claim Boundary

GateCheck documents observed public metadata, unpaid 402 challenge behavior, request summaries, hashes, and generated artifacts only. It does not prove marketplace endorsement, payment settlement, security certification, custody, KYC/AML coverage, buyer adoption, or downstream execution.

About

Read-only x402 and MCP readiness checks for paid agent-tool sellers.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages