Skip to content

Instantly share code, notes, and snippets.

@xpufx
xpufx / paseo-cross.mjs
Created August 14, 2026 09:34
MCP tool for Paseo cross domain agent communication
#!/usr/bin/env node
// paseo-cross — MCP server for cross-daemon (relay) agent conversation.
//
// Bridges the paseo CLI's `--host <pairing-offer>` to a named-remote registry
// so agents can talk to agents on other hosts without handling offers inline.
//
// Remotes: ~/.paseo/cross-remotes.json { name: "<pairing offer b64 or URL>" }
// Register: cross_add_remote(name, offer) (offer from `paseo daemon pair` on the target)
//
// Zero dependencies: implements the MCP stdio subset (NDJSON JSON-RPC 2.0):