MESH ONLINECODENAME: Paranoid
v0.36
concept

Tool federation

Tool federation lets one participant publish a tool as a capability and lets applications on other machines discover and invoke it at runtime. The provider keeps its credentials and executes the operation locally.

Federated tool call
provider announces a typed tool
→ caller discovers it by capability
→ authority is evaluated
→ provider executes locally
→ caller receives the permitted result

What federation adds

Live discovery. Providers announce tools through the capability fold. A watch reports when tools appear, change, or disappear, so callers do not maintain a static server list.

Provider-local authority. The provider decides who may invoke the tool and keeps any API keys or device credentials required to execute it.

Scoped visibility. A tool may be public, visible only to its owner organization, or encrypted for organizations holding a discovery grant. Callers outside the audience do not receive the descriptor.

Portable schemas. Tool descriptors carry input and output schemas. A caller can inspect or generate bindings for a tool it discovered at runtime.

The pieces

PieceRoleDocumentation
Capability announcementspublish what a provider offersCapabilities
serve_tool, call_tool, list_tools, watch_toolsserve, discover, and invoke toolsDiscover and invoke
nRPCtyped request/response and streaming transportnRPC
Organization authoritycontrol discovery and invocationPrivate capabilities
MCP bridgepublish MCP tools on Net or expose Net to an MCP hostNet and MCP
A2Adelegate a longer job to another agentAgent-to-agent
Agent identityidentify the principal an agent representsAgent identity

MCP tools and native capabilities

net-mesh wrap publishes tools from an existing stdio MCP server. net-mesh mcp serve exposes mesh capabilities to a local MCP host.

Bridged tools retain request/response semantics and carry compat_tier: "mcp_bridge". Native Net capabilities can additionally define streams, artifact movement, migration, and Net task state. Choose native semantics when the operation needs them; the bridge is sufficient for ordinary MCP calls.

When federation is unnecessary

Use MCP directly when tools are fixed, local, and known to one host. Federation is useful when providers change at runtime, capabilities span machines or organizations, or credentials must remain on the provider.

See also: