# SCRIPTMASTERLABS x402 Dev Momentum Endpoint

> SCRIPTMASTERLABS x402 Dev Momentum Endpoint is a paid API for AI agents from mcp-x402.onrender.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-12-02).

Fetches GitHub repository developer momentum metrics (PRs, commits) for a given owner and repo over configurable time windows

## Facts

- Endpoint: GET https://mcp-x402.onrender.com/x402/dev-momentum?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-x402-dev-momentum-endpoint-ce56ea8f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QPf9wkLFMj3Mx-Ny593PP

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 scriptmasterlabs-x402-dev-momentum-endpoint-ce56ea8f
```

Example prompt: Can you pull the developer momentum stats for the vercel/next.js GitHub repo — look at PRs over the last 30 days and commits over the past 4 weeks?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call snapshot of a GitHub repository's recent developer momentum — PR frequency and commit cadence — without setting up your own GitHub API integration. Ideal for due diligence workflows, competitive benchmarking, or monitoring open source project health. Prefer this over raw GitHub API calls when cost-per-query economics favor micropayments over API key management.

## Known failure modes

- Missing required github_owner or github_repo parameters returns an error
- Invalid or non-existent GitHub owner/repo combination may return empty or error data
- Payment not provided or X-Api-Market-Key missing results in HTTP 402 response
- Rate limits or GitHub API upstream failures may cause timeouts or partial data
- Extremely large repositories with high activity may have response delays

## How this service works

SCRIPTMASTERLABS x402 Gateway. Discover paid APIs and inspect fresh x402 v2 payment requirements before calling them. Current hosted authority is USDC on Base mainnet (eip155:8453); caller controls spending policy. MARKETPLACE REVIEW: use free /x402/playground/* (no key, no payment). Production /x402/* returns 402 unless paid via x402 or X-Api-Market-Key / X-API-Key from seller dashboard.

## Output

A JSON object containing developer momentum indicators for the specified GitHub repository, including pull request counts over the configured day window and commit counts over the configured week window, reflecting recent engineering activity and velocity.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "github_owner",
      "github_repo"
     ],
     "properties": {
      "github_repo": {
       "type": "string"
      },
      "github_owner": {
       "type": "string"
      },
      "pr_window_days": {
       "type": "integer"
      },
      "commit_window_weeks": {
       "type": "integer"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "source": "api.github.com (real-time REST v3)",
  "repository": {
   "full_name": "microsoft/vscode",
   "pushed_at": "2026-10-29T03:11:44Z",
   "description": "Visual Studio Code",
   "forks_count": 44903,
   "default_branch": "main",
   "stargazers_count": 194397,
   "open_issues_count": 22151
  },
  "pr_velocity": {
   "count": 3297,
   "window_days": 30
  },
  "momentum_score": 88.56,
  "commit_velocity": {
   "window_weeks": 4,
   "commits_in_window": 2839
  },
  "methodology_note": "momentum_score = sum(weight * log1p(real_value)) over commits_in_window(w4) + pr",
  "contributor_count": 3289,
  "excluded_from_score": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scriptmasterlabs-x402-dev-momentum-endpoint-ce56ea8f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-x402.onrender.com](https://www.zero.xyz/host/mcp-x402.onrender.com/llms.txt)
