Repository avatar
Other Tools
v0.1.0
active

rfbench

io.github.raydeoliveira/rfbench

Deterministic Smith-chart, matching, Touchstone S-param, and FCC Part 15 math oracle via HTTP 402.

Documentation

rfbench

Deterministic Smith-chart, transmission-line, IEC 60063 E-series impedance matching, Friis link-budget, Touchstone .s1p/.s2p, and 47 CFR Part 15 FCC compliance math oracle over Streamable HTTP MCP (2025-03-26).

Live Service

All 6 tools expose MCP 2025-03-26 tool annotations (readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false) in tools/list.

Tools & Pricing

ToolTierPrice (USD)Capabilities
rf_smith_transformFree$0.00Impedance / admittance / Gamma / VSWR conversions, return loss, mismatch loss, quality factor Q
rf_link_budgetFree$0.00Friis FSPL, EIRP, receiver thermal noise floor, SNR, fade margin, link closure
rf_txlineMetered$0.005Lossy complex hyperbolic transmission-line transform (tanh(gamma * l)), electrical length, attenuation
rf_match_networkMetered$0.010L, Pi, and T matching synthesis, IEC 60063 E-series snapping (E12–E96), exact swept -3 dB and VSWR <= 2.0 bandwidth
rf_touchstone_analyzeMetered$0.015.s1p/.s2p parser (RI/MA/DB, <= 204,800 B, <= 4,096 pts), delay de-embedding, passbands, Rollett K / `
rf_fcc_complianceMetered$0.02047 CFR Part 15 (§15.205 restricted bands, §15.207, §15.209, §15.249, clock harmonics up to 4,096 pts / 64 clocks)

Authentication & HTTP 402 Settlement

  • Free tier: No authentication required for rf_smith_transform and rf_link_budget.
  • x402 v2 (PAYMENT-SIGNATURE): Base Mainnet (eip155:8453) USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) per-call settlement verified before tool execution and settled only after valid tool output (RfValidationError inputs never charge).
  • Polar License (X-Polar-License-Key): Unlocks metered tools via https://buy.polar.sh/polar_cl_mOqAzUHFS8WLUnO5GA1QR7C7933zfjDqIA4h44MLSGA.
  • Bearer API Key (Authorization: Bearer <key>): Organization API key authentication.

Unauthenticated metered requests return HTTP 402 with Base64 PAYMENT-REQUIRED and WWW-Authenticate: Payment headers plus error.data.polarCheckoutUrl (also exposed at authentication.polarCheckoutUrl on the server card).

MCP Client Quickstart

Claude Code

claude mcp add --transport http rfbench https://rfbench-mcp.raymond-deoliveira.workers.dev/mcp

With a Polar license key for metered tools:

claude mcp add --transport http rfbench https://rfbench-mcp.raymond-deoliveira.workers.dev/mcp \
  --header "X-Polar-License-Key: $RFBENCH_POLAR_KEY"

Cursor / Generic Streamable HTTP JSON

Add to .cursor/mcp.json or your MCP client's mcpServers config:

{
  "mcpServers": {
    "rfbench": {
      "url": "https://rfbench-mcp.raymond-deoliveira.workers.dev/mcp",
      "headers": {
        "X-Polar-License-Key": "${RFBENCH_POLAR_KEY}"
      }
    }
  }
}

Omit "headers" to use the free tools (rf_smith_transform, rf_link_budget) without credentials.

Quickstart (curl)

Discover metadata and tool schemas:

curl -sS https://rfbench-mcp.raymond-deoliveira.workers.dev/.well-known/mcp/server-card.json

Call a free Smith-chart transform:

curl -sS https://rfbench-mcp.raymond-deoliveira.workers.dev/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"rf_smith_transform","arguments":{"z":{"re":25,"im":50},"freq_hz":100000000}}}'

Inspect flat object JSON Schemas (tools/list):

curl -sS https://rfbench-mcp.raymond-deoliveira.workers.dev/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'

Documentation & Security

  • SKILL.md — MCP schema details, exit codes, and tool conventions
  • glama.json — Glama directory maintainer manifest
  • SECURITY.md — Request bounds, numeric overflow guards, and vulnerability reporting
  • LICENSE — Proprietary license terms