cyberneticlibrary

Track metered usage and billing

sdkmcp_serversetup L20
Metronome-Industries/metronome-node
What it does

Send metered usage events and manage billing via Metronome

Best for

Integrating metered billing and usage tracking into SaaS applications.

Inputs
  • · usage event (transaction_id, customer_id, event_type, properties)
  • · contract parameters (customer_id, starting_at)
Outputs
  • · usage ingestion confirmation
  • · contract object with pricing
  • · billing summary data
Requires
  • · Metronome API
  • · bearer token
Preconditions
  • · METRONOME_BEARER_TOKEN environment variable
  • · Metronome account with API access
  • · Node.js or browser runtime
Failure modes
  • · automatic retries on 429/5xx may mask rate limits
  • · SDK in JS bundle lacks tree-shaking hints
  • · error handling incomplete for network timeouts
Trust signals
  • · Official Metronome SDK
  • · MCP server with Cursor/VS Code quick-install
  • · full TypeScript definitions
  • · documented error types and retry logic