@adaptivemcp/orchestration
v0.2.2
Published
Composition and execution strategies for Adaptive MCP.
Readme
@adaptivemcp/orchestration
Composition and execution strategies for Adaptive MCP.
Status: published to npm as
@adaptivemcp/orchestration. It is the client-side executor of policy the server governs.
orchestration turns learned stats into retry/execution policy. It plans a
retry policy per tool (e.g. cap maxAttempts for flaky tools) and is consulted
by the thin client at execution time.
Usage
import { MemoryStore } from "@adaptivemcp/memory";
import { Orchestrator } from "@adaptivemcp/orchestration";
const memory = new MemoryStore();
const orchestrator = new Orchestrator({ memory });
orchestrator.planAll(); // writes a `workflow` recommendation (retry policy)
// per tool, scaled to the observed failure rateWhat it does
planAll()/planTool(toolName): derive a retry policy from observed failure behavior.- Default policy:
maxAttempts: 3;policyForcapsmaxAttemptsat6. - Flags tools as flaky when failure rate exceeds
flakyThreshold.
Defaults
| Option | Default |
| --- | --- |
| flakyThreshold | 0.1 |
| minInvocations | 10 |
License
Released under the MIT License. Copyright (c) 2026 Kemal Elmizan.
