McpNetwork.Orchestrator 1.0.3

dotnet add package McpNetwork.Orchestrator --version 1.0.3
                    
NuGet\Install-Package McpNetwork.Orchestrator -Version 1.0.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="McpNetwork.Orchestrator" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="McpNetwork.Orchestrator" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="McpNetwork.Orchestrator" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add McpNetwork.Orchestrator --version 1.0.3
                    
#r "nuget: McpNetwork.Orchestrator, 1.0.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package McpNetwork.Orchestrator@1.0.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=McpNetwork.Orchestrator&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=McpNetwork.Orchestrator&version=1.0.3
                    
Install as a Cake Tool

McpNetwork.Orchestrator

A lightweight, strongly-typed orchestration engine for composing independent features into explicit, state-driven workflows.

Designed for clarity, safety, and zero magic.


Why McpNetwork.Orchestrator?

Modern applications often require coordinating multiple features into a predictable execution flow.

Common orchestration approaches tend to rely on:

  • Hidden reflection\
  • Implicit state mutation\
  • Convention-based magic\
  • Complex pipeline abstractions

McpNetwork.Orchestrator takes a different approach.

It provides:

  • Explicit orchestration steps\
  • Strongly-typed feature composition\
  • Deterministic, state-driven execution\
  • Controlled and safe state mutation\
  • No hidden behavior

Everything is visible. Everything is intentional.


Installation

dotnet add package McpNetwork.Orchestrator

Core Concepts

IFeature<TIn, TOut>

A feature represents a single, isolated unit of behavior.

It:

  • Takes an input\
  • Produces an output\
  • Does not know about orchestration or global state

Orchestration

An orchestration composes multiple features into a workflow.

Each step:

  • Executes a feature\
  • Optionally reads from state\
  • Optionally writes to state

Execution order is deterministic and explicit.


OrchestrationState

A strongly controlled key-value store used during execution.

It supports:

  • Set -- Define a value (write-once)\
  • Update -- Modify an existing value\
  • Replace -- Explicit overwrite\
  • Delete -- Remove a value

State keys cannot be accidentally reused.

This prevents subtle bugs caused by silent overwrites.


Minimal Example

            var orchestrator = new Orchestrator<InventoryResult>()
                .AddStep(Steps.NoInput(canStartFeature))

                .AddParallel(p => p
                    .AddStep(Steps.NoInput(getInventory1, (s, r) => s.Set("Inventory1Items", r.Items!)))
                    .AddStep(Steps.NoInput(getInventory2, (s, r) => s.Set("Inventory2Items", r.Items!)))
                )

                .AddStep(
                    Steps.FromState(
                        mergeInventoriesFeature,
                        state => new MergeInventoryRequest
                        {
                            Sources = new[]
                            {
                                state.Get<List<string>>("Inventory1Items"),
                                state.Get<List<string>>("Inventory2Items")
                            }
                        },
                        (state, result) => state.Set("MergedInventory", result.Items)
                    )
                )

                .AddStep(
                    Steps.FromState(
                        processingFeature, 
                        s => new ProcessingRequest { Items = s.Get<List<string>>("MergedInventory") }, 
                        (s, r) => s.Set("finalResult", r)
                    )
                )


                .EndsWith(state =>
                {
                    var items = state.Get<ProcessingResponse>("finalResult");
                    return InventoryResult.Success(items.Items);
                });


            var context = new OrchestrationContext(CancellationToken.None, logger);
            var orchestrationResult = await orchestrator.ExecuteAsync(context);

Each step is explicit.
State mutation is controlled.
No hidden behavior.


State Safety Philosophy

State management is intentionally strict.

  • Set throws if the key already exists.\
  • Update throws if the key does not exist.\
  • Replace is explicit.\
  • Delegates cannot be stored in state.

The goal is to prevent accidental data corruption and enforce clarity.


Design Goals

  • Explicit over implicit\
  • Strong typing everywhere\
  • Deterministic execution\
  • No reflection-based magic\
  • No hidden conventions\
  • No runtime code generation

This library is intentionally minimal.


When To Use

  • Coordinating application-layer features\
  • Clean Architecture projects\
  • Domain workflows\
  • Deterministic pipelines\
  • Explicit orchestration scenarios

When Not To Use

  • Simple CRUD operations\
  • Distributed workflow engines\
  • Background job scheduling systems\
  • Full BPM solutions

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.3 39 4/1/2026
1.0.1 117 1/21/2026
1.0.0 99 1/16/2026