hyperd.pricing.get
Retrieve current USDC pricing for hyperD paid endpoints on Base. Free access without a wallet.
Instructions
Get the current price list for all hyperD paid endpoints (in USDC on Base). FREE — no wallet required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:177-182 (registration)Registration of the 'hyperd.pricing.get' tool on the MCP server. It has no input schema (empty {}), a description, and calls freeGet('/api/pricing') as its handler.
server.tool( "hyperd.pricing.get", "Get the current price list for all hyperD paid endpoints (in USDC on Base). FREE — no wallet required.", {}, async () => asText(await freeGet("/api/pricing")), ); - src/server.ts:64-77 (handler)The 'freeGet' helper function is the actual handler used by hyperd.pricing.get. It makes a GET request to the API_BASE + path, formats query params, and returns JSON. Since hyperd.pricing.get is a free tool, it delegates to this function.
async function freeGet( path: string, query: Record<string, string | number | boolean | undefined> = {}, ): Promise<unknown> { const url = new URL(`${API_BASE}${path}`); for (const [k, v] of Object.entries(query)) { if (v !== undefined && v !== "" && v !== null) url.searchParams.set(k, String(v)); } const r = await fetch(url); if (!r.ok) { throw new Error(`HTTP ${r.status} on free request: ${await r.text()}`); } return r.json(); } - src/server.ts:155-157 (helper)The 'asText' helper wraps the JSON response into the MCP content format (text type). Used by all tool handlers including hyperd.pricing.get.
function asText(data: unknown) { return { content: [{ type: "text" as const, text: JSON.stringify(data, null, 2) }] }; } - src/server.ts:180-180 (schema)Input schema for hyperd.pricing.get — empty object (no input parameters required). The free pricing tool takes no arguments.
{},