fix(billing): drop extraneous /api prefix — api.hanzo.ai/v1/billing

The billing tool hardcoded api.hanzo.ai/api/v1/billing (double prefix). Per
the /v1-only canonical API contract, the gateway serves everything under bare
/v1/* — never /api/. Scrub to api.hanzo.ai/v1/billing.

Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
2026-07-03 12:31:09 -07:00
co-authored by Hanzo Dev
parent 3da02092db
commit 93330d3091
@@ -1,6 +1,6 @@
"""MCP tool for Hanzo Billing -- balance, usage, plans, subscriptions, invoices.
Wraps the Hanzo Commerce billing API at api.hanzo.ai/api/v1/billing/.
Wraps the Hanzo Commerce billing API at api.hanzo.ai/v1/billing/.
Auth: Uses HanzoSession from hanzo-tools-auth for bearer tokens.
"""
@@ -39,7 +39,7 @@ Actions:
- credit: Grant starter credit to account
"""
API_BASE = "https://api.hanzo.ai/api/v1/billing"
API_BASE = "https://api.hanzo.ai/v1/billing"
def _get_session():