Skip to main content

mDNS service-discovery binding for the ZAP protocol (HIP-0069)

Project description

zap-mdns — mDNS auto-discovery for ZAP services

Replaces the hard-coded [9999..9995] port-probe in browser extensions and the lock-file dance in ~/.hanzo/extension/config.json with proper multicast DNS service discovery (_hanzo._tcp.local., canonical per HIP-0069).

Why

  • ZAP currently fixed-ports collide between agents, hosts, and accidentally mature lqd-check test daemons.
  • Lock-file registry is single-host and fragile (stale PIDs, race on finally-cleanup).
  • mDNS works across the LAN, multi-MCP, multi-host. Bonjour/Avahi gives us service-type browsing for free on every modern OS.

Service definition

type:       _hanzo._tcp.local.
name:       <server_id>._hanzo._tcp.local.
port:       <bound port>
txt:
    server_id   = mcp-py-12345
    agent_label = osage-screenshot-test
    version     = 0.5.0
    capabilities = tabs,navigate,screenshot,evaluate,...
    proto       = zap/1

Layout

python/      Python publisher + browser via `zeroconf`
ts/          TypeScript publisher (Node) + browser shim
ext/         Browser-extension polyfill (native-messaging helper)
README.md    this file

Backwards compat

Existing port-probe path remains in the extension as a fallback. mDNS is attempted FIRST; if zero services found within 2s, fall through to the fixed-port probe. Once mDNS adoption is stable, port-probe is removed.

Install

pip install zap-mdns
# or
uv pip install zap-mdns

Status

Published on PyPI: https://pypi.org/project/zap-mdns/ — wired into ~/work/zap/ for cross-org reuse (hanzo / lux / zoo / liquidity all consume the same package).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zap_mdns-0.1.1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zap_mdns-0.1.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file zap_mdns-0.1.1.tar.gz.

File metadata

  • Download URL: zap_mdns-0.1.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for zap_mdns-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7cd9f515d50d2398fa20d48f1b8e1b53a1bd326aa77908ff2e774980465dad77
MD5 cce6c169467da464d37f5d49750ef565
BLAKE2b-256 0cebea26b3cc72c2582d640d5ede5e303d713eb76c98dcfef84826389e9e377c

See more details on using hashes here.

File details

Details for the file zap_mdns-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: zap_mdns-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for zap_mdns-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f66d2945c5d435c37465286a7bc250eb97504362f735a96ec8eb5b96f2fd2a0
MD5 6206caf064c6cfd1f046ad8377a1f6ba
BLAKE2b-256 1f68e133149f50f33eddc3214e44d2e52e8cce2bdba9bb006500c4b390fc0ec1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page