mDNS service-discovery binding for the ZAP protocol (HIP-0069)
Project description
@hanzo/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-zap._tcp.local.).
Why
- ZAP currently fixed-ports collide between agents, hosts, and accidentally
mature
lqd-checktest 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-zap._tcp.local.
name: <server_id>._hanzo-zap._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.
Status
Skeleton — wired into ~/work/zap/ for cross-org reuse (hanzo / lux /
zoo / liquidity all consume the same package).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zap_mdns-0.1.0.tar.gz.
File metadata
- Download URL: zap_mdns-0.1.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
155cc5ddeecce0af16037a51867b6719d9b60d6ccf1118c4f2ee20098b421578
|
|
| MD5 |
c692cc5245d13ba985f4ea064ea6ec64
|
|
| BLAKE2b-256 |
2d5c10429bb74baaaf169bad7c364c6434b9b380ab444d2b87c3503a8bd67e97
|
File details
Details for the file zap_mdns-0.1.0-py3-none-any.whl.
File metadata
- Download URL: zap_mdns-0.1.0-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.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81ff1e5f5cff1749d90c381405bdda15cfc8b5f9975d95b96e876fd7d10dcba7
|
|
| MD5 |
5b1c7dafd920abb81537f1e2a7ccbe27
|
|
| BLAKE2b-256 |
086a02d86e5b23d34d50c070e7089debf8c2e32b58bf407388c370bac7ba4daa
|