Skip to main content
All Python modules · Import and compatibility guidance

Exports

FusedCLIError

A failed provisioning phase; previous remote changes are not rolled back.

FusedChannelAdapter

Normalize and reply through any Fused-connected service via one MCP client. Instantiated per binding from a FusedChannelConfig, so the platform, event shape, and reply operation are all data: this class never changes.
Fields (— means no declared default):

FusedChannelAdapter.start

Initialize provider-owned clients before accepting invocations.

FusedChannelAdapter.normalize_event

Translate one raw provider payload using this binding’s field mapping.

FusedChannelAdapter.send_reply

Call the configured Fused operation directly; never through model tool-use.

FusedChannelAdapter.close

Release provider-owned clients after invocations have drained.

FusedChannelConfig

Everything one Fused-backed channel binding needs, expressed only as data. client is the same generic FusedMCPClient used for outbound tool calls; reply_operation is the MCP tool this adapter calls to deliver a reply, and reply_arguments maps its argument names to either a literal string or a ChannelReply field reference spelled $field_name.
Fields (— means no declared default):

FusedChannelReceiver

Own one explicit generated-SDK subscription; ACK only after durable admission.

FusedChannelReceiver.start

Subscribe to the generated enum’s exact event value, never a wildcard.

FusedChannelReceiver.handle

NACK failed persistence; rejected policy events have no durable side effects.

FusedChannelReceiver.close

Stop intake before draining workers and closing their store.

FusedEventMapping

Declarative field paths translating one service’s raw payload into a ChannelEvent. Every path is dotted and resolved against the raw provider payload. Paths, not code, are what let one adapter work for any Fused-connected service.
Fields (— means no declared default):

FusedEventMapping.apply

Build one ChannelEvent by resolving every declared path against raw.

FusedMCPClient

A normal MCP client carrying an optional, offline provisioning declaration. Obtain this object from the owning Harnest API; its constructor includes runtime bindings. Fields (— means no declared default):

FusedMCPClient.from_openapi

Declare one MCP connection spanning all specs without provisioning it. Strings are shorthand for OpenAPISpec with all operations selected. client_options are the standard MCPClient.streamable_http options. Authorization always uses an execution-token environment reference. webhook_attachment names a kind: webhook registration (see FusedAdminClient.apply_webhook_config) whose inbound events this server’s resources should also surface, letting any connected service become a channel’s event source alongside its outbound tool calls.

FusedMCPClient.stdio

Create an MCP client that starts and communicates with a subprocess.

FusedMCPClient.streamable_http

Create an MCP client using the Streamable HTTP transport.

FusedMCPClient.sse

Create an MCP client using the legacy HTTP/SSE transport.

FusedMCPClient.connect

Open a developer-owned read client using the configured lifecycle and credentials.

FusedMCPClient.required_permissions_for

Combine an optional client requirement with one remote-tool requirement.

FusedMCPClient.to_adk_toolset

Use native transport while preserving portable expansion and failure rules.

FusedMCPClient.to_langgraph_connection

Return a LangChain MCP adapter connection without opening it.

FusedMCPClient.setup

Explicitly import specs and provision the server using the user’s CLI. This is a developer setup operation, never a runtime lifecycle hook. The CLI displays its one-time execution token directly to the operator.

FusedSetupResult

A provisioned standard client and non-secret setup artifacts. The CLI hands its one-time token directly to the operator. Store it in the environment variable named by token_env before connecting this client.
Fields (— means no declared default):

FusedSetupResult.write_client

Create a standard client factory without overwriting authored code.

FusedSlackReplySender

Call the SDK-scoped Engine API, keeping provider credentials inside Fused. The operation must be the exact Slack chat.postMessage selection from the immutable app’s exported execution schema. The caller owns the HTTP client authenticated with that SDK’s execution token and an explicit user selector.

FusedSlackReplySender.call

Send once, suppress broadcasts/unfurls, and check provider-level success.

OpenAPISpec

One source service; omitted operations select its entire operation surface. version supplies the provider version only when the spec omits it. auth identifies credentials already managed in the chosen Fused bucket. Source paths resolve against the project passed to setup.
Fields (— means no declared default):

OpenAPISpec.selection

Project selection into Fused’s single authoritative MCP config shape.

slack_mention

Normalize a verified Fused Slack envelope, rejecting foreign installations and bots. Call only from the authenticated generated SDK receiver. IDs in a raw public HTTP request are not proof of provider signature or connection ownership.