mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-26 11:49:36 +00:00
Address the estate at /v1, not /api/v1
Two defaults carried an /api/ prefix this estate does not serve: the commerce base and the DNS endpoint. Neither resource answers at either spelling today — api.hanzo.ai serves commerce carts under /v1/commerce and none of the products or orders this tool asks for, and dns.hanzo.ai answers nothing at all. The prefix is the part that was wrong either way; what those tools reach is a separate question.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"""MCP tool for Hanzo Commerce -- orders, products, collections, stores.
|
||||
|
||||
Wraps the Hanzo Commerce API at api.hanzo.ai/api/v1/.
|
||||
Wraps the Hanzo Commerce API at api.hanzo.ai/v1/.
|
||||
Auth: Uses HanzoSession from hanzo-tools-auth for bearer tokens.
|
||||
"""
|
||||
|
||||
@@ -36,7 +36,7 @@ Actions:
|
||||
- webhooks: List configured webhooks
|
||||
"""
|
||||
|
||||
API_BASE = "https://api.hanzo.ai/api/v1"
|
||||
API_BASE = "https://api.hanzo.ai/v1"
|
||||
|
||||
|
||||
def _get_session():
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""CoreDNS (Hanzo DNS) provider.
|
||||
|
||||
Manages DNS via Hanzo's CoreDNS API (K8s-native DNS for Hanzo infrastructure).
|
||||
Endpoint: configurable, defaults to https://dns.hanzo.ai/api/v1
|
||||
Endpoint: configurable, defaults to https://dns.hanzo.ai/v1
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -12,7 +12,7 @@ import click
|
||||
|
||||
from .provider import DNSZone, DNSRecord, DNSProvider, register_provider
|
||||
|
||||
DEFAULT_ENDPOINT = "https://dns.hanzo.ai/api/v1"
|
||||
DEFAULT_ENDPOINT = "https://dns.hanzo.ai/v1"
|
||||
|
||||
|
||||
class CoreDNSProvider(DNSProvider):
|
||||
|
||||
Reference in New Issue
Block a user