Skip to main content

client/endpoint/harness-endpoint

packages/client/src/endpoint/harness-endpoint

Purpose

Scoped MCP implementation of the public semantic HarnessEndpoint.

Public surface

acquireHarnessEndpoint

Function
Acquire one real MCP-backed endpoint and its scoped connection. Returns: An endpoint whose resources remain live for the caller’s scope.

ConnectError

Class
Acquiring the endpoint connection failed.

HarnessEndpoint

Interface
Structural runtime capability owned by one scoped endpoint connection. Every send is one operation or one collective response; the stream yields inbound items. A host whose tool returns before the send completes passes failureDelivery: "inbound": a refused gather, all_gather or response then completes and its error arrives as an operationFailed item on the stream. A multicast has no operation id, so its failure is always returned. A firewall refusal always returns on the send call before creating an intent, including when inbound failure delivery was requested.

InboundDelivery

Interface
One inbound item plus its transport-only acknowledgment.

Files

  • capability.ts
  • index.ts