Hexalith.McpCli
5.0.3
dotnet tool install --global Hexalith.McpCli --version 5.0.3
dotnet new tool-manifest
dotnet tool install --local Hexalith.McpCli --version 5.0.3
#tool dotnet:?package=Hexalith.McpCli&version=5.0.3
nuke :add-package Hexalith.McpCli --version 5.0.3
Hexalith.McpCli
Hexalith.McpCli provides a shared MCP server and CLI for decorated Hexalith Contracts libraries.
Contracts authors reference Hexalith.McpCli.Abstractions and declare one module on the assembly. Place each operation type in its own file:
// Module.cs
using Hexalith.McpCli.Abstractions;
[assembly: HexalithModule("inventory", "Manage inventory items.", IdentifierKind.Ulid,
WireTypeConvention = WireTypeConvention.KebabCase)]
// CreateItemCommand.cs
using System.ComponentModel;
using Hexalith.McpCli.Abstractions;
[HexalithCommand("Create an inventory item.", Domain = "inventory",
AggregateIdProperty = nameof(ItemId))]
public sealed record CreateItemCommand(
[property: HexalithIdentifier, Description("The item's ULID.")] string ItemId);
// GetItemQuery.cs
using System.ComponentModel;
using Hexalith.McpCli.Abstractions;
[HexalithQuery("Read an inventory item.", Domain = "inventory",
AggregateIdProperty = nameof(ItemId), ProjectionType = "inventory-items")]
public sealed record GetItemQuery(
[property: HexalithIdentifier, Description("The item's ULID.")] string ItemId);
The module's identifier kind applies to [HexalithIdentifier] properties and aggregate identifier properties. Descriptions are required constructor arguments; routing values can instead come from the EventStore contract interfaces.
Envelope-owned tenant, actor, correlation, and idempotency members can use string-backed value objects with a Contracts-provided JSON converter. Catalog construction checks that the converter reads and writes the same JSON string; numeric, object-valued, and string-changing converters are rejected. These members remain filled from the envelope. Tenant and actor schemas use strings independently of the module's identifier kind; correlation and idempotency schemas require canonical uppercase ULIDs.
The Hexalith.McpCli.Abstractions package includes a build analyzer. Diagnostic MCPCLI001 warns on a command or query type whose [HexalithCommand] or [HexalithQuery] description is empty, whitespace, or null. Supply a nonblank description to resolve it. The bundled analyzer requires .NET SDK 11.0.100 or later. The corrected pre-migration SDK 10.0.404 probe failed with CS8032 because System.Collections.Immutable 11 was unavailable; the retained correction invalidates the earlier cached-package success claim. Its compiler API and build-time Microsoft.CodeAnalysis.Analyzers rules use Roslyn 5.12; the analyzer itself retains its netstandard2.0 target. Contracts projects need only the Abstractions package reference.
The product, Abstractions and active verification hosts target net11.0. Repository builds select the 11.0.1xx SDK feature band: global.json pins 11.0.100 with rollForward: latestPatch. Install an SDK from that feature band for repository builds. The analyzer's minimum SDK requirement above applies separately to consumers. The current public cohort selects EventStore 5.7.1, Tenants 8.1.1, Parties 4.0.3, UniqueIds 3.0.4, Redis 3.4.35 and JsonSchema.Net 9.7.0. Existing transitive packages select Google.Protobuf 3.36.2, gRPC 2.85.0 and AI abstractions 11.0.0. Thirteen package identities supplied by the .NET 11 shared framework leave the restored production closure; no identity is added. Root reference source pins can advance independently of the exact runtime selection. The migration evidence records local checks and their acceptance limits.
MCP and CLI ownership
The authoritative Hexalith rule makes Hexalith.McpCli the target Hexalith-owned MCP server and CLI. New modules declare gateway-ready operations in decorated Contracts. The pinned rule follows AD-23 for confidential UI, explicit withdrawal, named local tooling exemptions and deferred capabilities. Existing proprietary module servers, plug-ins and CLIs receive only safety and continuity fixes; they remain migration sources, never templates for new modules.
CI enforces this rule with the blocking proprietary-surface-census job. The
census guide documents committed-pin
scope, detection signals, exact exemptions and UTC exception expiry. Run it
locally with python3 tools/proprietary-surfaces/v1/check.py --output /tmp/mcpcli-census.json.
The scan covers inherited/imported project metadata, effective package names,
MCP registrations and direct construction, and literal workflow/script/container
publication identities. Unsafe publication paths and unresolved workflow project
targets fail with source context. Finite literal shell variables, loops, function
arguments, working directories, Compile item aliases and committed Copy inputs
resolve without executing inspected code. Committed-script path locators and
bounded JSON object arrays/wrappers are also inspected. A finite committed-JSON
selector can bind ordered tab-separated fields to a literal shell read loop;
every selected project still undergoes metadata inspection. Unsupported
selector, mutation and shell-input forms fail coverage. Comments and quoted
diagnostics do not establish commands; executable substitutions remain visible
and unsupported command wrappers fail coverage. Runtime/generated sources remain
coverage errors. MSBuild imports and Compile sources may cross one tree
boundary: a path escaping a root is read from the root-declared reference it
lands in, at that root's committed pin, and a path inside a nested gitlink is
read at the exact nested commit from the single root reference whose declared
URL matches. Other cross-tree paths, unresolvable nested pins and missing
objects fail coverage; nothing is fetched, initialized or checked out, and Git
reads ignore replace refs and inherited repository variables. Each such read's
repository, commit, path and SHA-256 appear in the report, and a fixture
allowance's compilation closure binds each cross-tree member by its requested
label and hash. A nested pin must therefore be reachable from the matching
root reference's remote refs, or it fails as nested-object-unavailable. An
absent import target that would otherwise be refused is excused only when a
balanced top-level and of Exists()/!Exists() checks in the import's own
or ImportGroup condition, or in every definition of the single $(P) it
imports, proves against committed workspace facts that the import never
evaluates. Present imports and property alternatives are never skipped. Partial
roots retain other observations and do not establish stale allowances. The
report names new surfaces and stale allowances; baseline changes require a
versioned, hash-chained amendment. Successful census execution is required in CI
before central release and publication.
The authoritative migration plan 1.3.0 indexes all eight inventory histories. Story 5.11 delivered the approved Admin 1.0.3 and technical-tools 1.0.4 inventories and integrated the plan into the pinned AI.Tools revision. Story 5.10 delivered its approved ChatBot and Memories inventories and all five owner labels. Migration plan 1.3.0
The shared release tooling appends the committed migration status to McpCli's conventional notes. The authorized CiCd/Builds owner approved Story 5.11's release-note criterion based on the published v5.0.1 notes and successful release run 46285853838. Completion receipt · Published release
Legacy retirement requires separate evidence and owner approval. Parties remains blocked by G01–G06 and its separate restriction conflict. Folders K12 and Projects paging remain independent gates. Migration status and removal gates
McpCli has adopted Hexalith.CiCd. The committed .github/hexalith-ci.json requires the shared Builds check before every push. The earlier missing-configuration report predates adoption.
The FR-22 migration-instruction prerequisite (authoritative main containing the finished rule and plan, a baseline reference in this repository containing that revision, and passing local instruction synchronization) gated the paired v1 publication and was satisfied by the historical 2.0.1 evidence; central releases do not repeat it. Dependency, inventory, loopback, live and package gates remain independent. Current package releases follow the central procedure below.
Central package release
The central Hexalith.CiCd nightly orchestrator dispatches .github/workflows/release.yml, which uses the delivered Hexalith.Builds release workflow. Manual dispatch takes one optional input, delivered-sha, for the exact validated delivered-state commit. An empty value selects the live delivered main tip.
AD-17 / Platform AD-11 hold: Stable
Hexalith.McpClitool promotion requires Platform, McpCli, and CiCd owners to record the joint release track first. No such record exists. On 2026-11-28 the central release published stableHexalith.McpCli4.0.0, 4.0.1 and 4.0.2 without it and without central acceptance. These versions are recorded deviations from the hold, not accepted releases. Non-publishing rehearsals and candidate verifications below never publish packages, tags, or GitHub releases.
Publication is enabled and GitHub does not enforce approval: The
hexalith-releaseenvironment has no required reviewer. Thepublishjob can run as soon as Builds creates the draft. Keep stable release dispatches on hold until the owners record the release track and Hexalith.CiCd and the repository owners enforce pre-publication approval. For already-public versions, use the available evidence for a post-publication audit and follow When verification fails after publication if any check fails.
Single end-to-end release procedure
Require the latest
.github/workflows/ci.ymlpush or workflow-dispatch run on the exact release commit to have succeeded. Linux validates the build, unit tests, live Aspire topology, census, conformance vectors and CI package fixtures. The Windows and macOS product jobs verify those same fixtures. Retainprepared.jsonfrom that run'smcpcli-product-packagesartifact.Confirm that the owners have recorded the stable release track and that
hexalith-releaserequires a reviewer before using the nightly route or dispatchingReleasewithdelivered-sha. Hexalith.Builds resolves the source, selects the version, builds onubuntu-latestwithContinuousIntegrationBuild=trueand creates the draft. The originalreleaseartifact containsrelease-manifest.jsonbesidepackages/, with the final unsignedHexalith.McpCli.AbstractionsandHexalith.McpCliarchives at the same version. Both opt in toIsPackableandHexalithVerifyPublishedPackage.Before
hexalith-releaseapproval, read Builds' trailers in the draft release notes. For an audit of an already-public version, use the same trailers in the published notes. SetRELEASE_RUN_IDfromhexalith-release-run. Confirm that thereleaseartifact in that run matches the artifact ID and SHA-256 digest inhexalith-release-artifact. A resumed draft still uses that original run and artifact. SetCI_RUN_IDto the successful exact-commit CI run from step 1 and setRELEASE_DIRandEVIDENCE_DIRto new absolute directories outside the checkout. Download the original release artifact and the CI fixture receipt.gh api "repos/Hexalith/Hexalith.McpCli/actions/runs/$RELEASE_RUN_ID/artifacts" \ --jq '.artifacts[] | select(.name == "release") | {id, name, digest, expired}' gh run download "$RELEASE_RUN_ID" --repo Hexalith/Hexalith.McpCli --name release --dir "$RELEASE_DIR" gh run download "$CI_RUN_ID" --repo Hexalith/Hexalith.McpCli --name mcpcli-product-packages --dir "$EVIDENCE_DIR/ci-fixtures" cp "$EVIDENCE_DIR/ci-fixtures/prepared.json" "$EVIDENCE_DIR/ci-prepared.json" VERSION=$(python3 -c 'import json, sys; print(json.load(open(sys.argv[1], encoding="utf-8"))["version"])' "$RELEASE_DIR/release-manifest.json") SOURCE_SHA=$(python3 -c 'import json, sys; print(json.load(open(sys.argv[1], encoding="utf-8"))["sha"])' "$RELEASE_DIR/release-manifest.json")Verify the archives from a clean checkout of
SOURCE_SHAwithreferences/Hexalith.Buildsat the commit's recorded pin. Choose new, disjoint absolute paths for the checkout (CHECKOUT_DIR),RELEASE_DIR, andEVIDENCE_DIRthat you can publish before running the checks; the retained consumer build log and command receipt can contain local paths. Clone intoCHECKOUT_DIR, check outSOURCE_SHAdetached, initializereferences/Hexalith.Buildsat the recorded pin, restore and build the Release solution so the archive validator can check the generatedModuleAssemblyManifest.g.csandproject.assets.json, and run the remaining verification commands fromCHECKOUT_DIR.git clone https://github.com/Hexalith/Hexalith.McpCli.git "$CHECKOUT_DIR" cd "$CHECKOUT_DIR" git checkout --detach "$SOURCE_SHA" git submodule update --init references/Hexalith.Builds dotnet restore Hexalith.McpCli.slnx && dotnet build Hexalith.McpCli.slnx --no-restore --configuration Release -warnaserror python3 scripts/verify-central-release.py check-archives \ --packages-dir "$RELEASE_DIR/packages" --version "$VERSION" --source-sha "$SOURCE_SHA" \ --release-manifest "$RELEASE_DIR/release-manifest.json" --output "$EVIDENCE_DIR/final-checks"Use the operator checklist to prepare
ci-receipt.jsonand obtain the human-authoredacceptance.jsoninEVIDENCE_DIR. SetAPPROVED_BYto the independently confirmed approver's GitHub login. Candidate verification checks the clean source, project packaging, packed README bytes and approver.python3 scripts/verify-central-release.py verify-candidate \ --packages-dir "$RELEASE_DIR/packages" --version "$VERSION" --source-sha "$SOURCE_SHA" \ --release-manifest "$RELEASE_DIR/release-manifest.json" \ --validation "$EVIDENCE_DIR/final-checks/validation.json" \ --smoke "$EVIDENCE_DIR/final-checks/smoke/smoke.json" \ --consumer "$EVIDENCE_DIR/final-checks/consumer.json" \ --ci-receipt "$EVIDENCE_DIR/ci-receipt.json" --ci-prepared "$EVIDENCE_DIR/ci-prepared.json" \ --acceptance "$EVIDENCE_DIR/acceptance.json" --expected-actor "$APPROVED_BY" \ --output "$EVIDENCE_DIR/verified.json"The designated reviewer approves the
hexalith-releasedeployment after candidate verification passes. The Hexalith.Builds publisher pushes the authenticated original archives to nuget.org, verifies their public signatures and payloads, and attacheshexalith-package-publication.v1.jsonto the GitHub release.Download that inventory into
EVIDENCE_DIRand verify it against the candidate receipt and the original archives.gh release download "v$VERSION" --repo Hexalith/Hexalith.McpCli \ --pattern hexalith-package-publication.v1.json --dir "$EVIDENCE_DIR" python3 scripts/verify-central-release.py verify-published \ --publication "$EVIDENCE_DIR/hexalith-package-publication.v1.json" \ --packages-dir "$RELEASE_DIR/packages" --version "$VERSION" --source-sha "$SOURCE_SHA" \ --candidate-receipt "$EVIDENCE_DIR/verified.json" --readme README.md \ --output "$EVIDENCE_DIR/published.json"Verification keeps all three archive-hash layers strictly separate:
- CI fixture hashes (
prepared.jsonfromscripts/product_ci.py), - Final unsigned archive hashes (computed from the archives listed in
release-manifest.json), - Signed nuget.org archive hashes (
hexalith-package-publication.v1.json, whose nonsignature member hashes must match the final unsigned archives byte for byte).
- CI fixture hashes (
After publication verification passes, use a separate checkout to fetch current
origin/mainand start a documentation branch from it. Retain the evidence indocs/release/evidence/v$VERSION/on that branch. Copy the files below from their source directories and preserve the listed paths and exact bytes. Check the files for credentials or other private data before copying. Commit the evidence asdocs(release): record v<VERSION> release evidence, substituting the published version.File to retain Source directory ci-prepared.jsonEVIDENCE_DIRci-receipt.jsonEVIDENCE_DIRacceptance.jsonEVIDENCE_DIRfinal-checks/validation.jsonEVIDENCE_DIRfinal-checks/consumer.jsonEVIDENCE_DIRfinal-checks/final-prepared.jsonEVIDENCE_DIRfinal-checks/smoke/smoke.jsonEVIDENCE_DIRfinal-checks/consumer/build.logEVIDENCE_DIRfinal-checks/consumer-check.command.jsonEVIDENCE_DIRrelease-manifest.jsonRELEASE_DIRverified.jsonEVIDENCE_DIRhexalith-package-publication.v1.jsonEVIDENCE_DIRpublished.jsonEVIDENCE_DIRFor a verified stable release, confirm that the Hexalith.Builds catalog includes the published Abstractions version. The Builds package-family workflow runs daily and opens a
hexalith-mcpclipull request for a newer eligible version. It updatesHexalithMcpCliVersion, which drivesHexalith.McpCli.AbstractionsinProps/Directory.Packages.props, and refreshes the package audit. A Builds maintainer reviews the proposal and merges it with a merge commit to retain the audited revision. The central CiCd nightly run then delivers eligible released Builds tags to consumers. Builds package-family workflow
When verification fails after publication
When check-archives, verify-candidate or verify-published fails for a version that is already on nuget.org:
- Do not reuse, repack or republish that version. NuGet versions and the repository's GitHub releases are immutable.
- Record the failing command, its exit code and its stderr message. The verifiers write no receipt on failure. Remove credentials and private paths before sharing the record.
- Report the version, release run, failing check and record to the McpCli and Hexalith.CiCd owners before the next release, so they can decide on deprecation and further publication.
Recorded release decisions (2026-11-28)
- Platform checks: Exact-commit 3-OS CI (
ci.yml) validates CI fixture packages; McpCli's local final-archive verifier/rehearsal gate validates finalContinuousIntegrationBuild=true.nupkgs; both packable projects setHexalithVerifyPublishedPackage=true. This supersedes historicalstage-paired3-OS final-archive staging (any central post-build3-OS hook is an upstreamHexalith.CiCdfollow-up). - Acceptance & bypass: The hash-bound central acceptance record (
mcpcli-central-release-acceptance/v1:version, 40-hexsource_sha, final per-archive SHA-256s, exact-commit 3-OS CI receipt, non-bot humanapproved_by, and timing-exception status) supersedes mandatory 3-client sessions beforehexalith-releaseapproval.user-requested-human-validation-bypassis forbidden on all future candidates. The accepted assisted 685-second timing exception is tracked at docs/release/operator-setup-timing-exception.json. See the operator checklist for the schemas. - Legacy scripts: Unwired
stage-paired/pairedandbootstrapscripts are retained and labeled historical.scripts/verify-paired-publication.pypins the historical bypass strictly to2.0.1(aa2845edbea23444a1d362060b8d0f5dc05a132e) and readsdocs/release/operator-setup-timing-exception.json.
Abstractions consumer reference
Hexalith.McpCli.Abstractions has no consumer-visible package dependencies. A standalone .NET 11 Contracts consumer pins one verified published version with a single exact reference, for example:
<PackageReference Include="Hexalith.McpCli.Abstractions" Version="[3.0.0]" />
Hexalith Contracts repositories use central package management. Their Builds catalog supplies HexalithMcpCliVersion and <PackageVersion Include="Hexalith.McpCli.Abstractions" Version="$(HexalithMcpCliVersion)" />; the Contracts project uses a versionless reference:
<PackageReference Include="Hexalith.McpCli.Abstractions" />
To verify a published Abstractions version from nuget.org against a fresh target directory, run from the repository root:
python3 scripts/smoke_bootstrap_consumer.py 3.0.0 https://api.nuget.org/v3/index.json "$(mktemp -d)/consumer"
Historical release procedures (unwired legacy workflows)
The central release workflow replaced the bootstrap, stage-paired, and paired workflow phases. Their scripts and evidence remain available for historical audit. Run their regression tests and the CI guard suite from the repository root.
python3 -m unittest discover -s tools/manual-release-tests -p 'test_*.py'
python3 -m unittest discover -s scripts/tests -p 'test_legacy_release_guards.py'
- Closed Abstractions bootstrap (
1.0.0,1.1.0,2.0.0): Independent Abstractions-only publication is permanently closed becauseHexalith.McpCliis public on nuget.org. scripts/bootstrap-history.json and docs/release/bootstrap-history.md preserve the fixed historical identities and owner decisions for the1.1.0and2.0.0AD-17 deviations. - Historical
stage-paired/pairedscripts:scripts/prepare-paired-release.py,scripts/compare-paired-evidence.py,scripts/verify-paired-publication.py, andscripts/publish-paired-release.pydocument the pre-central release flow used for2.0.1. Historical sessions and operator setup history remain bound only to their archived sources and never qualify new candidates.
Operator setup with a verified release candidate
First-time operators follow the quick start. The rest of this section is for the environment owner, for other clients and for troubleshooting.
Quick start: Claude Code sets it up for you
Claude Code installs and registers the tool from one prompt. You only type your token yourself.
Before you start, your environment owner gives you the accepted package version (VERSION), the full expected tool version (VERSION+SOURCE_SHA), and:
- the absolute path of a handoff folder with the tool packages and a
NuGet.Config(the owner has already checked them); use a path beginning with/, without~; - the Gateway URL, your tenant and your actor. The URL must use HTTPS or a numeric loopback address such as
http://127.0.0.1:18170. A URL for the private port-forward works only while that forward is running on this machine. - a short-lived token and its expiry, handed to you privately (for example copied to your clipboard). You paste it only at the hidden
Token:prompt in step 3; - a new Party ID for your test, for example
party-operator-ana-1.
You need a Linux or WSL bash terminal where dotnet --list-sdks shows .NET SDK 11.0.100 or later and dotnet --list-runtimes shows Microsoft.NETCore.App 11.x, and Claude Code installed and signed in (claude --version). Check that env | grep '^EVENTSTORE_' prints nothing: inherited EVENTSTORE_* variables override the profile, so remove them from the setup and client launch environment before continuing.
1. Open a terminal and start Claude Code in a new folder:
mkdir -m 700 ~/hexalith-operator && mkdir ~/hexalith-operator/project && cd ~/hexalith-operator/project && claude
If the root folder already exists, stop and inspect it. Use step 5 only after confirming that it contains solely an earlier Hexalith setup; never delete an unrelated existing folder.
2. Copy this prompt and paste it into Claude Code as it is. Claude Code first asks for your handoff folder, accepted package version, expected tool version, tenant and actor. Answer, then approve the commands it runs:
Set up the Hexalith MCP server for me. Before running anything, ask me for my handoff folder, accepted package version, full expected tool version, tenant and actor. Use the accepted package version for the VERSION argument. Replace each whole HANDOFF, VERSION, TENANT or ACTOR argument below with a shell-quoted literal value, never insert an answer inside existing quotes. For --configfile, replace the entire "HANDOFF/NuGet.Config" argument with the shell-quoted absolute path to NuGet.Config in my handoff folder. Preserve spaces, dollar signs and command-substitution text as literal characters; use Bash single-quoted literals and escape any embedded single quote. Never run a command that still contains one of those four placeholder words. Otherwise run each command below with Bash, exactly as written, one at a time. Stop at the first error and show it to me. Never ask for, read or print my token.
1. export DOTNET_ROOT="$(dirname "$(readlink -f "$(command -v dotnet)")")" NUGET_PACKAGES="$HOME/hexalith-operator/packages" && dotnet tool install Hexalith.McpCli --version VERSION --tool-path "$HOME/hexalith-operator/tools" --configfile "HANDOFF/NuGet.Config" --no-cache && "$HOME/hexalith-operator/tools/hexalith" --version
The last line must match the full expected tool version supplied by the owner, including the plus sign and 40-character source commit.
2. Ask me to run the token command from step 3 of the README in another terminal, with the token my environment owner gave me, and wait until I say it is done.
3. export DOTNET_ROOT="$(dirname "$(readlink -f "$(command -v dotnet)")")" MCPCLI_HOME="$HOME/hexalith-operator/home" && "$HOME/hexalith-operator/tools/hexalith" config set operator tenant TENANT && "$HOME/hexalith-operator/tools/hexalith" config set operator actor ACTOR && "$HOME/hexalith-operator/tools/hexalith" config current --profile operator
Show me url, tenant and actor. The token must stay masked.
4. claude mcp add hexalith --transport stdio --scope local --env MCPCLI_HOME="$HOME/hexalith-operator/home" --env DOTNET_ROOT="$(dirname "$(readlink -f "$(command -v dotnet)")")" -- "$HOME/hexalith-operator/tools/hexalith" mcp --transport stdio --profile operator && claude mcp get hexalith
The status must be Connected. Then tell me to restart Claude Code.
3. When Claude Code asks for the token command, open a second terminal running Bash. Run these lines with your Gateway URL in place of GATEWAY-URL. Paste your token at the hidden prompt and press Enter, then tell Claude Code that setup can continue.
export DOTNET_ROOT="$(dirname "$(readlink -f "$(command -v dotnet)")")" MCPCLI_HOME="$HOME/hexalith-operator/home"
"$HOME/hexalith-operator/tools/hexalith" config profile add operator --url GATEWAY-URL --token-input prompt
To replace an expired token, close Claude Code and run the command below from the same profile home. Restart Claude Code afterward so the stdio server loads the new token.
export DOTNET_ROOT="$(dirname "$(readlink -f "$(command -v dotnet)")")" MCPCLI_HOME="$HOME/hexalith-operator/home"
"$HOME/hexalith-operator/tools/hexalith" config profile rotate-token operator --token-input prompt
4. When Claude Code says setup is done, type /exit, run claude again in the same folder and type /mcp: hexalith must be connected. Then paste this request as it is. Claude Code first asks for your tenant and Party ID. Answer, then approve each hexalith tool call:
Use only the hexalith MCP tools. Before calling any tool, ask me for my tenant and my Party ID, and put my answers in place of TENANT and PARTY-ID below. Never send TENANT or PARTY-ID themselves as values. First list the modules. Then read tenant TENANT with tenants.get-tenant. Then create one person exactly once with parties.create-party: PartyId PARTY-ID, first name Operator, last name Setup, preferred email operator@example.test with ContactChannelId email-PARTY-ID, and an Other identifier with value operator-setup and IdentifierId external-PARTY-ID. Do not pass a tenant or an idempotency key. Then read the person back with parties.get-party using entityId PARTY-ID. If the read-back does not find the person yet, repeat only the read every few seconds for up to 45 seconds. Otherwise, if any call fails or its result is uncertain, stop, show me the error and do not retry.
You are done when the creation result shows status: accepted with your tenant and Party ID, and the read-back shows the person with isActive: true. If a step fails, see Resolve setup failures. Never repeat the creation.
5. When you have finished, remove the registration and the private folder, which holds your token. Run the second line even if the first reports that no server named hexalith is registered:
cd ~/hexalith-operator/project && claude mcp remove hexalith -s local
cd ~ && rm -rf ~/hexalith-operator
Environment owner: environment and handoff
Use a fresh verified candidate pair at the shared version built by the central Release workflow. Obtain both final ContinuousIntegrationBuild=true .nupkg archives, release-manifest.json, and the mcpcli-central-release-verification/v1 receipt with its bound 3-OS CI receipt and human acceptance. Use the owner's accepted version as VERSION and record the original release run ID and exact per-archive SHA-256 values before installation.
Before starting, have .NET SDK 11.0.100 or later installed (dotnet --info and dotnet --list-runtimes must show .NET 11), and an installed, signed-in MCP client. The framework-dependent executable also needs the .NET 11 runtime in the environment that launches it. Record exact client, extension/harness, OS and runtime versions. The registration formats below were checked against official documentation on 2026-10-30.
The environment owner must supply an approved, ready task environment on the approved Platform target, a private local Gateway port-forward, the selected test tenant, a short-lived operator token, actor, expiry and permission to create one synthetic Party per session. Supply a Gateway URL that uses HTTPS or a numeric loopback address such as http://127.0.0.1:18170. The identity must read Tenants and read/write Parties in the selected tenant. Current Tenants commands and cross-tenant reads require the cataloged platform:tenants scope and its permissions; a single-tenant read uses the selected canonical tenant and matching aggregate identity. A discovery result alone cannot establish those permissions. Temporary Platform preparation and its concrete deployment review are separate prerequisites; an isolated secrets-test endpoint is not this environment. Keep bootstrap administrator credentials and signing keys with the environment owner. For the independent README-only attempt, an observer starts timing immediately before the operator pastes the quick-start setup prompt (manual path: immediately before dotnet tool install) and stops at the first successful MCP send_command with the correct tenant and Party ID; include installation, configuration, registration, all failures and assistance. The target is 900 seconds.
For the first-time timed exercise, start with a fresh profile home and have the operator create the profile and register the client during the timed run. Bind each optional attempt to its README, package and receipt hashes, and environment approval. Keep a record of failed attempts and assistance. Use the central acceptance record for release approval. Central acceptance procedure · Historical sessions
Replace VERSION in installation commands and both archive filenames with the accepted shared version supplied by the owner.
For the quick start, first verify the supplied hashes and receipts as described in the manual installation below. Copy the two verified packages by name into a handoff folder that the operator can read and write its NuGet.Config. Choose a folder path without &, <, > or quotes because the command writes the path into XML.
handoff=/absolute/path/handoff
mkdir "$handoff" &&
cp /absolute/path/accepted-packages/Hexalith.McpCli.VERSION.nupkg /absolute/path/accepted-packages/Hexalith.McpCli.Abstractions.VERSION.nupkg "$handoff"/ &&
cat > "$handoff/NuGet.Config" <<EOF
<configuration>
<packageSources>
<clear />
<add key="accepted-local" value="$handoff" />
</packageSources>
<fallbackPackageFolders><clear /></fallbackPackageFolders>
</configuration>
EOF
Install into an isolated directory
Use a new absolute task directory outside the repository. On Linux/macOS, create the isolated profile and package cache paths:
operator_root="$HOME/hexalith-operator"
mkdir -m 700 "$operator_root"
export MCPCLI_HOME="$operator_root/home"
export DOTNET_CLI_HOME="$operator_root/dotnet-home"
export NUGET_PACKAGES="$operator_root/packages"
export NUGET_HTTP_CACHE_PATH="$operator_root/http-cache"
export NUGET_PLUGINS_CACHE_PATH="$operator_root/plugin-cache"
The PowerShell commands below use native Windows paths.
$operator_root = Join-Path $env:USERPROFILE 'hexalith-operator'
New-Item -ItemType Directory -Path $operator_root -ErrorAction Stop | Out-Null
$env:MCPCLI_HOME = Join-Path $operator_root 'home'
$env:DOTNET_CLI_HOME = Join-Path $operator_root 'dotnet-home'
$env:NUGET_PACKAGES = Join-Path $operator_root 'packages'
$env:NUGET_HTTP_CACHE_PATH = Join-Path $operator_root 'http-cache'
$env:NUGET_PLUGINS_CACHE_PATH = Join-Path $operator_root 'plugin-cache'
Verify the supplied archive and receipt hashes with sha256sum (Linux), shasum -a 256 (macOS), or Get-FileHash -Algorithm SHA256 (PowerShell). In release-manifest.json, confirm the accepted version and full commit in sha, and check that both package entries set verifyPublishedPackage: true. In verified.json, confirm the same version and commit in source_sha, check that final_packages matches both archives and is distinct from ci_fixture_packages, and confirm the exact-commit 3-OS CI receipt and human acceptance hashes. Stop on any mismatch.
Create NuGet.Config in the task directory with the absolute local package path, escaping XML characters such as & as &. This clears inherited sources and fallback folders:
<configuration>
<packageSources>
<clear />
<add key="accepted-local" value="/absolute/path/accepted-packages" />
</packageSources>
<fallbackPackageFolders><clear /></fallbackPackageFolders>
</configuration>
Install and check the absolute executable (PowerShell: prefix an executable path with &; the file is tools\hexalith.exe):
dotnet tool install Hexalith.McpCli --version VERSION --tool-path "$operator_root/tools" --configfile "$operator_root/NuGet.Config" --no-cache
"$operator_root/tools/hexalith" --version
"$operator_root/tools/hexalith" modules --strict
Require --version to report VERSION+SOURCE_SHA, using the accepted package version and the full commit recorded in verified.json. Require modules parties (7 operations), projects (4), and tenants (15). Do not put the tool on a shared PATH. These package and protocol checks do not establish a live client session.
Configure the private operator profile
Remove inherited EVENTSTORE_* settings from the launching terminal/client environment: they override profile fields. Use the owner's actual Gateway URL, tenant and actor below. The URL is the operator-local port-forward, for example http://127.0.0.1:18170, and works only while that private forward is running in the same network environment. On PowerShell, replace $operator_root paths with their Windows equivalents and use & to invoke them.
"$operator_root/tools/hexalith" config profile add operator --url http://127.0.0.1:18170 --token-input prompt
"$operator_root/tools/hexalith" config set operator tenant APPROVED-TENANT
"$operator_root/tools/hexalith" config set operator actor APPROVED-OPERATOR-SUBJECT
The CLI saves the token in the private profile file. Enter the owner's token only at the hidden prompt. Close clients before rotating it with "$operator_root/tools/hexalith" config profile rotate-token operator --token-input prompt, then restart them to load the updated profile.
Check "$operator_root/tools/hexalith" config current --profile operator. The token is masked; URL, tenant and actor must match the owner's approval, with profile sources for those settings. Leave allowTenantOverride false. The enrolled Tenants 8.1.1 package declares platform scopes for the coordinated gateway boundary. Tenants commands and cross-tenant reads declare platform:tenants, while single-tenant reads use an explicit canonical tenant matching their aggregate identifier. Parties uses the configured session tenant. No tenant belongs in the Party payload. Do not read or edit the admin CLI's profiles.json.
Move from eventstore-admin or Parties.Mcp
This section covers connection settings only. It makes no parity or retirement claim: every EventStore Admin operation still has no McpCli replacement, so keep eventstore-admin for administration, and Parties.Mcp stays in service until its own retirement gates pass.
Nothing is imported. McpCli never reads the admin CLI's ~/.eventstore/profiles.json, even though it sits beside mcpcli.json, and takes no setting from EVENTSTORE_ADMIN_URL, EVENTSTORE_ADMIN_TOKEN, EVENTSTORE_ADMIN_FORMAT, any other EVENTSTORE_ADMIN_* variable or the Parties__Mcp__* host settings. Its operator settings come only from the nine variables EVENTSTORE_PROFILE, EVENTSTORE_URL, EVENTSTORE_TOKEN, EVENTSTORE_TENANT, EVENTSTORE_ACTOR, EVENTSTORE_ALLOW_TENANT_OVERRIDE, EVENTSTORE_FORMAT, EVENTSTORE_READ_ONLY and EVENTSTORE_STRICT, plus MCPCLI_HOME, which selects the profile store. The host reads no appsettings*.json file and no .NET host configuration variable such as DOTNET_ENVIRONMENT or Logging__*, so neither the working directory nor those variables change its settings or diagnostics. Create each McpCli profile by hand:
| Legacy setting | McpCli setting |
|---|---|
eventstore-admin config profile add NAME --api-url URL --api-token TOKEN --default-format FORMAT |
hexalith config profile add NAME --url GATEWAY-URL --token-input prompt --format json (or table; there is no CSV). Use a Gateway-issued token from your environment owner: the Gateway may not accept an Admin API token. |
eventstore-admin global --url/-u, --token/-t, --format/-f, --profile/-p |
--url, --token, --format, --profile; McpCli has no short aliases |
eventstore-admin global --output/-o |
McpCli's own --output contract below; no admin output-file behavior carries over |
Parties.Mcp Parties:Mcp:EventStoreGatewayBaseUrl |
the profile's --url |
Parties.Mcp forwarded caller Authorization header |
the profile's own Gateway token |
Parties.Mcp tenant from claims or headers |
config set NAME tenant TENANT and config set NAME actor ACTOR |
The admin --api-url names the Admin API, which is not necessarily the EventStore Gateway; use the Gateway URL from your environment owner. Keep one profile per environment: a profile binds one Gateway URL, one token, one tenant and one actor. Switch environments with --profile NAME or EVENTSTORE_PROFILE, never by overriding only the URL.
Settings resolve in this order:
- Profile selection:
--profile, thenEVENTSTORE_PROFILE, then the storedactiveProfile, then none.config profile,config useandconfig setignore both selectors. url,token,tenant,actorandformat: the flag, then itsEVENTSTORE_*variable, then the selected profile, then the default (none;jsonfor format).allowTenantOverride: the flag, thenEVENTSTORE_ALLOW_TENANT_OVERRIDE, then the profile, thenfalse.readOnlyandstrict: the flag, then the variable, thenfalse.output: the flag only.allowedExtensions: the selected profile only.
The Gateway URL and token must come from the same source. Supply both from flags, both from the environment, or both from the selected profile. A mixed pair fails with configuration_invalid and exit 2 before any Gateway call. For example, --url with a profile token on config current produces The gateway URL from flag and the token from profile must come from the same source: flags, environment, or the selected profile. The error names both sources and omits the token. Every verb that resolves connection settings applies the check, including discovery, send, and query. MCP sends startup errors to stderr. config profile add ignores profile selection and checks its explicit flags against inherited environment settings. For either head, a Gateway URL paired with a token must use HTTPS or a loopback IP address such as 127.0.0.1 or [::1]. Credentialed HTTP loopback traffic connects directly, bypassing HTTP proxies. A URL without a token can use HTTP.
Upgrading credentialed HTTP settings. A token paired with remote HTTP or http://localhost now causes settings resolution to fail with configuration_invalid and exit 2. The rule applies to --url and --token flags, EVENTSTORE_URL and EVENTSTORE_TOKEN, and stored profiles. For affected flag or environment pairs, change the URL to HTTPS or a numeric loopback address. Affected profiles also fail on config set and config profile rotate-token.
To recover, use the existing MCPCLI_HOME and unset inherited EVENTSTORE_* settings in the recovery shell. Run "$operator_root/tools/hexalith" config profile list to record the saved fields. Re-add the profile with "$operator_root/tools/hexalith" config profile add --url GATEWAY-URL --token-input prompt -- NAME. Use the approved HTTPS URL or an operator-local forward such as http://127.0.0.1:18170. If the profile had a saved format, pass --format before --. Re-adding replaces the profile.
Use the same executable to restore each saved setting. Substitute each placeholder as one shell-quoted argument, including actor names with spaces.
config set -- NAME tenant TENANTconfig set -- NAME actor ACTORconfig set -- NAME allowTenantOverride true(use the savedtrueorfalse)config set -- NAME allowedExtensions KEY1,KEY2(use the saved keys, comma-separated)
Restart the clients that use the profile.
Error privacy: a gateway_error document carries only status, detail (or the title), reason, retryable, clientAction, retryAfter and a canonical correlationId. Other Problem Details members, such as type, instance, tenantId, errors, rejectionType and extensions, non-JSON response bodies and exception text never reach stdout, stderr or MCP content in either head. Gateway HTTP diagnostics on stderr name only the method, the request URL without its query, the elapsed time and the status, and a failed request logs no exception. McpCli copies detail (or the title), reason, clientAction and retryAfter as the Gateway sends them; for a non-JSON response, detail is the HTTP reason phrase. The Gateway sanitizes Command rejections, but it passes a module's Query error message through as detail for every status except the invalid-page 400 and 403, including the 400 malformed-request response built from the module's sentinel: detail message, so that text is only as private as the module makes it. Parties returns only sentinel codes there. For denied, absent and foreign Projects targets, the Gateway maps the module's safe-denial sentinel to its canonical 404 detail, The requested resource was not found. McpCli returns that safe detail in a gateway_error document with exit 2 and no payload, rejected values or remote detail.
Legacy Party IDs: McpCli refuses a braced {GUID}, parenthesized (GUID) or X-format {0x…,{0x…}} root PartyId with validation_failed at /PartyId before any Gateway call, and does not convert it. Parties accepts these forms, but the Gateway's aggregate rules cannot address them. Support-safe IDs such as Legacy.party_01-A work, and child identifiers such as ContactChannelId and IdentifierId reach the Gateway unchanged in any of these forms.
Register one stdio server per client
All clients launch the same absolute executable with arguments mcp --transport stdio --profile operator and the same private MCPCLI_HOME. A client owns its own server process; one registration exposes every enrolled module and the five generic tools. Do not add separate module servers or point a client at the Gateway as an MCP HTTP URL.
For Claude Code, run from the project in which you will test, replacing both absolute paths:
claude --version
claude mcp add hexalith --transport stdio --scope local --env MCPCLI_HOME=/absolute/path/hexalith-operator/home -- /absolute/path/hexalith-operator/tools/hexalith mcp --transport stdio --profile operator
claude mcp get hexalith
If .NET is installed in your home directory (for example ~/.dotnet), add --env DOTNET_ROOT=/absolute/path/.dotnet before --. Open Claude Code in that project, inspect /mcp, and approve the intended server/tools. Local scope is private to that project. Record the actual initialization/connection result and expand the returned tool calls in the conversation.
For Claude Desktop, open Settings → Developer → Edit Config and merge this entry into mcpServers in claude_desktop_config.json, preserving other servers. Fully quit and reopen Desktop, then inspect its connector/tool list and server logs. Desktop's Code tab is a separate harness and does not count as the Desktop conversation session. In the Cowork tab, the tools appear as mcp__remote-devices__hexalith__*.
{
"mcpServers": {
"hexalith": {
"command": "/absolute/path/hexalith-operator/tools/hexalith",
"args": ["mcp", "--transport", "stdio", "--profile", "operator"],
"env": {"MCPCLI_HOME": "/absolute/path/hexalith-operator/home"}
}
}
}
For VS Code, record Help → About, the Copilot extension version and the selected agent harness. Run MCP: Add Server → Command (stdio) with the absolute launch command. The current Global → Copilot Global destination uses ~/.copilot/mcp-config.json (or $COPILOT_HOME/mcp-config.json) and the same mcpServers entry above. Its portable format does not support inputs or envFile. For the Local harness, open the user-profile mcp.json or a private test workspace's .vscode/mcp.json and merge the following servers entry. Select that harness in Chat, trust/start hexalith, enable its tools and inspect the actual tool output. Do not commit a personal workspace configuration. With a Windows wsl.exe registration (see Windows/WSL below), run the Copilot CLI harness from a local VS Code window, not a WSL remote window. In a WSL remote window that harness runs inside Linux, receives the Windows definition and cannot start wsl.exe (No such file or directory in its runtime log). In a local window, the Copilot CLI harness reads the user-profile mcp.json entry.
{
"servers": {
"hexalith": {
"type": "stdio",
"command": "/absolute/path/hexalith-operator/tools/hexalith",
"args": ["mcp", "--transport", "stdio", "--profile", "operator"],
"env": {"MCPCLI_HOME": "/absolute/path/hexalith-operator/home"}
}
}
}
On Windows, change the JSON command to C:\\Users\\YOUR-USER\\hexalith-operator\\tools\\hexalith.exe and MCPCLI_HOME to its Windows home path, using JSON-escaped backslashes. A GUI launch may inherit neither the shell PATH nor shell variables. Use literal absolute paths, restart after environment changes, and set DOTNET_ROOT in the entry's env to the actual .NET installation directory if the apphost cannot find the runtime. Never assume ~, $HOME or shell expansion in JSON.
For Windows/WSL, either install the tool, .NET and profile natively on Windows, or launch the WSL installation explicitly. A native Windows client cannot execute /home/.../hexalith directly. An explicit bridge uses command: "C:\\Windows\\System32\\wsl.exe" and args: ["--distribution", "YOUR-DISTRO", "--cd", "/home/YOUR-USER/hexalith-operator/home", "--exec", "/usr/bin/env", "MCPCLI_HOME=/home/YOUR-USER/hexalith-operator/home", "/home/YOUR-USER/hexalith-operator/tools/hexalith", "mcp", "--transport", "stdio", "--profile", "operator"]. Keep --cd with a small Linux directory: a Windows GUI starts wsl.exe in its own Windows directory (for example C:\Users\YOU or System32), and without --cd the server starts under /mnt/c/.... Earlier releases watched their working directory there and could stall before answering initialize while scanning that tree. The host now reads nothing from its working directory, and --cd keeps the bridge independent of the client's directory. --exec does not load your shell profile: if .NET is installed in your Linux home (for example ~/.dotnet), add "DOTNET_ROOT=/home/YOUR-USER/.dotnet" after the MCPCLI_HOME=… argument, and add the wsl.exe options "--user", "YOUR-USER" before "--exec" when the tool belongs to a user other than the distribution's default user. Confirm .NET and the private Gateway port-forward are reachable inside that distribution. Record this combination as its own tested environment.
Read an approved tenant (Tenants 8.1.1)
Call run_query with the following MCP argument object. Replace every APPROVED-TENANT with the same approved canonical lowercase tenant configured in your operator profile; tenant, aggregateId and payload TenantId must match.
{"operation":"tenants.get-tenant","tenant":"APPROVED-TENANT","aggregateId":"APPROVED-TENANT","payload":"{\"TenantId\":\"APPROVED-TENANT\"}"}
Require isError: false, matching JSON text and structuredContent, result tenant equal to the selected tenant, and document.tenantId equal to that tenant with document.status: "Active". For the optional operator exercise, continue with the cross-module task below.
<a id="complete-the-approved-cross-module-task"></a>
Complete the approved cross-module task
The historical sessions used Tenants 5.10.0 and its system scope. Use the selected canonical tenant with Tenants Contracts 8.1.1 for this exercise. See the Gateway boundary for its explicit scopes.
In each actual client, request the tools from server hexalith explicitly. First call list_modules with {}, then list_operations with {"module":"tenants"} and {"module":"parties"}, and describe_operation for tenants.get-tenant, parties.create-party and parties.get-party. Confirm the five tools list_modules, list_operations, describe_operation, send_command, run_query, all enrolled modules and submittable: true for the selected operations.
Replace APPROVED-TENANT with the approved tenant and use a fresh Party ID, contact ID and identifier ID for every client and attempt. The following are MCP argument objects, not CLI commands. payload is a string containing JSON; keep its property casing. Use synthetic names and contact details only.
{"operation":"tenants.get-tenant","tenant":"APPROVED-TENANT","aggregateId":"APPROVED-TENANT","payload":"{\"TenantId\":\"APPROVED-TENANT\"}"}
Call run_query with those arguments. Require result tenant and document.tenantId equal to the selected canonical tenant, with document.status: "Active". Then obtain the operator's write approval and call send_command once:
{"operation":"parties.create-party","payload":"{\"PartyId\":\"party-CLIENT-ATTEMPT\",\"Type\":\"Person\",\"PersonDetails\":{\"FirstName\":\"Operator\",\"LastName\":\"Setup\"},\"ContactChannels\":[{\"PartyId\":\"party-CLIENT-ATTEMPT\",\"ContactChannelId\":\"email-CLIENT-ATTEMPT\",\"Type\":\"Email\",\"Value\":\"operator@example.test\",\"IsPreferred\":true}],\"Identifiers\":[{\"PartyId\":\"party-CLIENT-ATTEMPT\",\"IdentifierId\":\"external-CLIENT-ATTEMPT\",\"Type\":\"Other\",\"Value\":\"operator-setup\"}]}"}
A successful command has isError: false, matching JSON text/structuredContent, status: "accepted", the selected Parties tenant and your fresh Party ID. This is the timer's stop point. Keep the message/correlation IDs. Complete the exercise by checking the persisted result with run_query:
{"operation":"parties.get-party","payload":"{\"PartyId\":\"party-CLIENT-ATTEMPT\"}","entityId":"party-CLIENT-ATTEMPT"}
Require the selected result tenant, document.id equal to your Party ID, isActive: true, isErased: false, the synthetic person, contact and identifier values. If projection state is pending, bounded read checks for up to 45 seconds are permitted; record each query. Never repeat send_command after a timeout or ambiguous error. Stop and let the owner inspect the message ID and persisted state. Retain sanitized actual client connection, discovery, call and persisted-result evidence; a model's narrative answer or SDK smoke is insufficient. Stop the client-owned server and private port-forward after the session; the environment owner removes only task-owned state according to the reviewed cleanup plan.
Resolve setup failures
| Failing step | Correction and required record |
|---|---|
| Install/hash mismatch | Stop; reacquire the accepted archives/receipts. Retain the exact failing command and hash. |
| Executable/runtime not found | Check the absolute native/WSL command, permissions, .NET 11 runtime and GUI DOTNET_ROOT; restart the client. If dotnet is a snap or version-manager shim, the quick start derives the wrong DOTNET_ROOT: use the folder that contains shared/Microsoft.NETCore.App (the path dotnet --list-runtimes prints, without that suffix). |
configuration_invalid or missing profile |
Check absolute MCPCLI_HOME, private file access, --profile operator and inherited EVENTSTORE_*; inspect masked config current. |
configuration_invalid: the gateway URL and the token must come from the same source |
Supply both from one source: remove the inherited EVENTSTORE_URL/EVENTSTORE_TOKEN or the extra --url/--token, or select another profile; see Move from eventstore-admin or Parties.Mcp. |
configuration_invalid with A gateway URL with a token must use HTTPS or a loopback IP address. |
Use an approved HTTPS URL or a numeric loopback address for the private port-forward. For a stored profile, follow the full profile recovery under Move from eventstore-admin or Parties.Mcp. |
configuration_invalid: The mcpcli profile document has an invalid profile entry. |
A stored profile name is invalid, for example one with a trailing newline saved by an earlier release, so every verb that reads profiles fails. Close clients, then edit the private $MCPCLI_HOME/.eventstore/mcpcli.json (default ~/.eventstore/mcpcli.json) in place to rename or remove that key. If activeProfile names that key, update it to the renamed key or set it to null when removing the profile. Keep the file's permissions, then check config profile list. |
Four tools / read_only |
Remove an unintended inherited read-only setting only after confirming write approval; keep the failed attempt. |
submittable: false with configuration_invalid |
The profile has no Gateway URL; check config current. Discovery can succeed offline. |
| Connection refused on a call | Check the approved URL and that the private forward runs in the launching environment. |
| Authentication/authorization failure | First check that the call used your real tenant, not a placeholder such as TENANT. Then ask the environment owner to check expiry, the operation's declared platform scope or selected-tenant membership, Parties write scope and actor. Never substitute bootstrap credentials. |
| Tool absent / wrong config shape | Check client version, selected harness, scope, trust prompts and mcpServers versus servers; expand client server logs. |
VS Code Copilot CLI harness reports no hexalith tools |
In a WSL remote window its runtime cannot start a Windows wsl.exe registration; open a local VS Code window and start a fresh chat. Keep the failed session. |
Setup run again reports already installed or already exists |
Inspect ~/hexalith-operator first, as in quick-start step 1. Only if it contains solely an earlier Hexalith setup, run step 5 to remove it, then start again from step 1. |
claude mcp add reports Invalid environment variable format |
Put the server name right after add; --env takes several values and otherwise reads the name as one. |
Client keeps waiting for initialize (WSL bridge) |
Add --cd with a small Linux directory before --exec, then restart the server. Without it the server starts in the client's Windows directory under /mnt/c/..., which earlier releases watched and could stall scanning. Keep the stalled server log. |
| Command outcome uncertain / persisted result missing | Preserve message IDs and errors, stop writes and request owner investigation. Record the exercise as incomplete. |
Record every attempted session, failure, assistance and elapsed time. An assisted, interrupted, unexecuted or over-900-second attempt remains visible and cannot be reported as unassisted success. The historical 685-second exception records an assisted run by an experienced operator. Follow the timing evidence instructions for a later candidate to reference a fresh measurement. Central operator checklist
Gateway boundary
See the canonical scope upgrade for the 2.0.0 bootstrap and 2.0.1 paired release, tenant normalization and platform-scope migration.
The CLI and MCP server share one catalog and executor. McpCli discovers operations only from flagged, referenced *.Contracts packages. It submits commands and queries to the EventStore gateway; the gateway routes them to the owning module server. McpCli never connects to a module server or references its implementation packages.
Decorating a type with HexalithCommand or HexalithQuery is the owning maintainer's consent to expose that operation to agents and operators through the Gateway without human confirmation. UI-only and confirmation-required operations are never decorated. The Gateway still authorizes every call. McpCli does not re-approve decorated operations: a cataloged operation that no release-inventory row mentions is reported, not refused. This rule is documented, not mechanically enforced; no name heuristic stands in for the owner's decision.
DependencyPolicyTests enforces this boundary against the restored production graph and project references. tools/dependency-policy.json pins the exact closure reachable from the approved stack roots, the Decoration Package, and each flagged Contracts module. A module cannot widen that baseline or import another module's packages. Every rejected dependency includes its resolved identity and path from Hexalith.McpCli; every restored package permits only the Microsoft.NETCore.App framework reference. Adding a production direct root requires a PRD change and review of directPackages.
Test projects may use the policy's directPackages, enrolled modules, the Decoration Package, the named test packages (including EventStore testing/Aspire helpers and Hexalith.Tenants.Aspire), and the synthetic Hexalith.McpCli.Sample.Contracts fixture. Any other package, including one listed only in baselinePackages, is rejected as a direct test dependency. The gate checks the references evaluated in Debug and Release, plus every PackageReference and ProjectReference in the test project file itself, whatever its condition. The test packages and the sample are rejected in the production runtime graph even if added to a production policy list. The build-time analyzer project at src/Hexalith.McpCli.Analyzers is excluded from the production source-project checks; it uses Microsoft.CodeAnalysis.CSharp and Microsoft.CodeAnalysis.Analyzers with PrivateAssets="all". Test projects may reference local src/ projects and tests/ fixtures, but cannot reference projects in references/. Hexalith.Parties.Aspire 4.0.3 is an approved test package after exact published archive and closure review. The AppHost closure test pins its version and server-free closure. Its independent Builds pin leaves the production Parties Contracts pin unchanged. The AppHost helper closure is checked separately against its approved helpers and support packages; a separate Manifest test pins the exact Hexalith.* package set of Integration.Tests. The isolated test fixture owns its existing AppHost lifecycle through Aspire’s public API; Hexalith.EventStore.Testing.Integration and the restored test-only .Server, .DomainService and .ServiceDefaults packages use the coordinated 5.7.1 cohort. The AppHost helper closure excludes .Server and .DomainService; its reviewed aspireHelperSupportPackages are Hexalith.Commons.UniqueIds 3.0.4 and Hexalith.EventStore.Client, .Contracts and .ServiceDefaults 5.7.1. The production graph excludes .Server, .DomainService and .ServiceDefaults.
Offline captured closures prove that decorated Tenants- and Parties-shaped packages can depend on McpCli Abstractions without adding production dependencies. Hexalith.Projects.Contracts 1.0.0 remains excluded: its closure adds Microsoft.AspNetCore.App and UI/web dependencies such as Fluxor, Fluent UI, and FrontComposer.Shell. Adding those packages to the baseline still fails the gate. The slim public Hexalith.Projects.Contracts archive introduced in 2.0.0 removes that UI/web closure. The enrolled 2.1.0 archive keeps the same dependency boundary. Run a fresh dotnet restore Hexalith.McpCli.slnx before building and running tests/Hexalith.McpCli.Manifest.Tests.
The current manifest references Hexalith.Parties.Contracts 4.0.3, Hexalith.Tenants.Contracts 8.1.1 and public Hexalith.Projects.Contracts 2.1.0. Restored-package integrity binds each archive: its NuGet content hash must match project.assets.json. Each module's approval.json binds its inventory and vector hashes only, never an artifact hash. Directory.Build.props pins these module versions before importing the Builds catalog; advancing the Builds submodule leaves them unchanged. For the enrollment gates, a Contracts version change that alters no vector or inventory is reported, not failed, and needs no re-approval. The live lane's native runtime cohort in tools/live-topology/native-runtime-current.json is a separate selection: it binds an exact Tenants Contracts version, so a Tenants release still moves that cohort before the required live lane passes. A newly decorated operation with an existing Operation Shape needs no vector, plan, inventory or approval change; the package pin and the README operation list still move, and a description lint finding on that operation still needs an approved row in tools/inventory-coverage/v1/<module>-accepted-lint.json. Offline discovery with hexalith modules --strict lists parties, projects and tenants; hexalith operations projects --strict lists the four approved Projects reads, hexalith operations parties --strict lists the seven approved Parties operations, and hexalith operations tenants --strict lists fifteen decorated Tenants operations. Inspect a complete name with, for example, hexalith describe parties.search-parties --lint --strict or hexalith describe tenants.get-tenant --lint --strict.
tenants.refresh-tenant-access was introduced in Tenants 8.0.2 and shares an already approved Operation Shape. Its omission from the retained release inventory and differing vector/approval versions are reported without refusing enrollment. The existing vectors do not prove that operation's downstream repair semantics.
Current Tenants commands and the cross-tenant reads tenants.list-tenants and tenants.get-user-tenants declare platform:tenants. The single-tenant reads tenants.get-tenant, tenants.get-tenant-users and tenants.get-tenant-audit use an explicit canonical tenant matching the payload's TenantId aggregate. TenantId supplies aggregate routing; an optional --aggregate-id or MCP aggregateId must match it. The module has no fixed system scope. Strict discovery and descriptions are available offline; they establish no backend authorization or persisted effect.
The operations appear in this order in each module's strict discovery output:
| Parties | Projects | Tenants |
|---|---|---|
parties.create-party |
projects.describe |
tenants.add-user-to-tenant |
parties.deactivate-party |
projects.list |
tenants.change-user-role |
parties.get-party |
projects.trace-attachments |
tenants.create-tenant |
parties.list-parties |
projects.trace-conversation |
tenants.disable-tenant |
parties.reactivate-party |
tenants.enable-tenant |
|
parties.search-parties |
tenants.get-tenant |
|
parties.update-party |
tenants.get-tenant-audit |
|
tenants.get-tenant-users |
||
tenants.get-user-tenants |
||
tenants.list-tenants |
||
tenants.refresh-tenant-access |
||
tenants.remove-tenant-configuration |
||
tenants.remove-user-from-tenant |
||
tenants.set-tenant-configuration |
||
tenants.update-tenant |
Production enrollment requires an approved release inventory for every module and approved conformance vectors that cover every Operation Shape in its Catalog. A shape is the tuple of kind, Identifier Kind, Wire Type convention, tenant source (platformScope, fixedTenant or public), aggregate-identifier source (property, constant or none), query projection selector (projectionActorType, projectionType or none) and required idempotency key. Only the C# OperationShape test code derives it from Catalog descriptors; the Python gates compare its key as an opaque string. An uncovered shape, a duplicate vector or a stale vector fails; a vector is stale when its operation is absent from the restored Catalog or Core rejects its inputs. Two things are reported and never fail: a vector or receipt version that differs from the restored package, and a cataloged operation that no inventory row mentions. Each report appears on stderr as a reported: … line and in the reported array of enrolled.json, verification.json and live-lane.json; a report never changes the exit code. For every Operation kind it declares, each module also needs at least one approved live vector with a strict companion plan in tools/live-topology/plans-current/<operation>.json. A vector without a plan runs in loopback only, and a plan without an approved vector fails the live preflight. The live set, and CI's discovery assertion, are the approved vector files that have a plan. For a new enrollment, the live Command vector creates an aggregate in a prerequisite, submits a second Command to it with a caller-supplied idempotency key, and reads the effect back with a postcondition Query. The count pin in tools/live-topology/test_live_plans.py counts the companion plans of the requiredModules in tools/conformance-vectors/v1/v1-scope.json: update it only when such a plan is added or removed. A new enrollment's plans leave it unchanged, and every plan is still loaded against its approved vector. CI checks the built manifest, strict Catalog discovery, description lint, name/type inventory coverage, Operation Shape coverage, restored-package integrity and complete CLI/MCP replay independently of dependency policy. The retained Parties and Tenants sets contain seven and fourteen vectors; together their 21 vectors cover six shapes, three per module. Story 4.11 also replays all 21 operations in the combined production manifest and benchmarks its first Catalog construction plus exactly one Ulid sample in a fresh process. Full-v1 acceptance requires both parties and tenants from tools/conformance-vectors/v1/v1-scope.json. The separately qualified normal Tenants 5.10.1 five-package/container release repairs the container source labels. At that publication, enrollment stayed on Contracts 5.10.0 because the approved vectors and inventory bound its signed Contracts archive. The 2026-11-06 enrollment restored Contracts 7.0.5; its receipt's owner-approval reference is the automated public-artifact approval, and the receipt binds the fourteen vectors, with only package-version metadata refreshed, and the unchanged inventory digest. That approval records delegated Codex automation under the user's explicit bypass of human validation. The historical 2026-11-12 package cohort restored Parties 3.1.1 and Tenants 7.0.7 with separate signed-artifact and vector qualification; that evidence does not qualify the .NET 11 cohort. The 2026-11-15 Parties/Tenants cohort restores Tenants 8.0.0 and exposes 22 decorated operations; its full hosted native lane remains required. The local Projects candidate adds the four supported read operations described below. The following Ubuntu measurement is historical evidence for the former cohort: its strict gate passed all 21 production operations; first Catalog construction plus exactly one Ulid sample measured 194.5002 ms against the 500 ms limit. See the artifact and matrix audit. Local available-package evidence alone cannot grant acceptance. See inventory coverage and artifact verification. Move from eventstore-admin or Parties.Mcp states the tested error-privacy and legacy Party ID behavior; their inventory dispositions, live authorization, domain effects, and legacy-host retirement retain their separate migration gates.
Both production gates run from the repository root after python3 -m pip install -r tools/conformance-vectors/v1/requirements.txt, dotnet restore Hexalith.McpCli.slnx and dotnet build Hexalith.McpCli.slnx --no-restore --configuration Release -warnaserror. check_enrolled.py uses the prebuilt Release ConformanceHost and tests/Hexalith.McpCli.ConformanceHost/obj/project.assets.json. The complete command sequence is in Production parity and first-construction gate. Run the complete production replay gate with python3 tools/conformance-vectors/v1/check_enrolled.py --output /tmp/mcpcli-story411-evidence. Use --local to collect available-package evidence labeled local-only; the default fails explicitly when either required module is absent. Then run MCPCLI_BENCHMARK_REQUIRE_V1=true MCPCLI_BENCHMARK_OUTPUT=/tmp/mcpcli-catalog.json dotnet tests/Hexalith.McpCli.Core.Tests/bin/Release/net11.0/Hexalith.McpCli.Core.Tests.dll -class Hexalith.McpCli.Core.Tests.CatalogPerformanceTests for the strict 500 ms gate. Omit MCPCLI_BENCHMARK_REQUIRE_V1 for a local measurement that records missing modules and fullV1Accepted: false.
Projects is enrolled against public Hexalith.Projects.Contracts 2.1.0, compiled for EventStore 5.6.0 and McpCli.Abstractions 3.0.0. The projects.list vector uses 2.1.0. The three unchanged vectors retain their historical 2.0.0-story66.3 metadata, which enrollment reports as a version difference. Native live qualification of Projects hosts remains DW-82. Offline strict discovery exposes exactly projects.list, projects.describe, projects.trace-conversation and projects.trace-attachments. projects.describe takes the Project identifier through --aggregate-id; payload fields use camelCase. For projects.list, use --page-size and --cursor on the CLI, or pageSize and cursor alongside payload in MCP. The page size defaults to 50 and the maximum is 200. Projects rejects offset. Start a new list after upgrading because v2 rejects cursors from v1. For another page, reuse the same filters and send paging.nextCursor from the response as the cursor. The document contains the items and snapshot. Safe Metadata is the default; descriptive reads require projects:inspect_descriptive_metadata and durable server audit. HTTP 200 Partial or Unavailable results exit 0 and retain their JSON truth. Missing credentials reach the Gateway, which returns 401 before the Projects query executes; errors exit 2 with no payload. No Projects audit, writes, previews, maintenance or Diagnostic Export operation is enrolled. The legacy Projects CLI and MCP plug-in remain frozen. The list live plan requires an authenticated Projects Gateway deployment; local replay does not qualify that topology.
The requested Works, Timesheets, Agents, Conversations and Folders packages are not enrolled yet. Their current Contracts assemblies lack declarations or live gateway paths required by the integration spec.
Run and debug from the Platform workspace
Run and debug McpCli from the Hexalith.Platform workspace, where this repository is the direct references/Hexalith.McpCli submodule. module/hexalith.module-manifest.v2.json declares McpCli with no servers and no interfaces. Its only dependency is eventstore, the gateway McpCli targets, so that gateway is its whole minimum environment. Platform pins a Builds tool of 4.34.0 or later, the first release that builds run-scoped McpCli; the Platform README names the current pin. From the Platform root, restore and run that pinned tool:
dotnet tool restore
dotnet tool run hexalith-module -- debug --manifest references/Hexalith.McpCli/module/hexalith.module-manifest.v2.json
The tool starts the EventStore gateway from source. It builds this checkout's src/Hexalith.McpCli in Debug into the run workspace, never packs or publishes it, and leaves this checkout's bin and obj untouched. When the environment is ready, an HXI010 diagnostic names the run-scoped Hexalith.McpCli.dll, and down deletes it with the run. A CLI exits after each command, so launch that DLL under a debugger rather than attaching to a process; the Platform README has the recipe. Offline discovery verbs such as modules need no gateway URL and list the enrolled Parties and Tenants modules.
This repository's own references/*, including references/Hexalith.Platform, serve only this repository's own builds and tests. A run from this repository's root is not Platform evidence. Inside a Platform checkout, leave them uninitialized: the tool refuses any initialized nested submodule (HXW003).
CLI and MCP
Run the executable from source with dotnet run --project src/Hexalith.McpCli --, or use hexalith after installing the tool package. A gateway URL is required for execution, but discovery works offline.
hexalith modules
hexalith operations your-module --kind read
hexalith describe your-module.your-operation --lint
hexalith config profile add dev --url https://gateway.example
hexalith config set dev tenant acme
hexalith config set dev allowedExtensions task-id,trace-id
hexalith config use dev
hexalith config current
hexalith send your-module.your-command --payload @command.json --idempotency-key 01ARZ3NDEKTSV4RRFFQ69G5FAV
hexalith send your-module.your-command --payload @command.json --extension task-id=abc --extension trace-id=xyz
hexalith query your-module.your-query --payload @query.json --page-size 25
hexalith mcp --transport stdio
--url, --token, --tenant, --actor, --allow-tenant-override, --profile, --format json|table, --output, --read-only, and --strict are global options. Other local processes can see a token supplied as a --token argument. Use --token-input prompt or --token-input stdin when saving a profile credential. Command and query payloads can be inline JSON, @file, or - for stdin. --read-only removes command submission from the MCP tool list and makes CLI send fail. The local profile file is ~/.eventstore/mcpcli.json. An absolute MCPCLI_HOME relocates it to $MCPCLI_HOME/.eventstore/mcpcli.json on every OS; an unset override retains the default, and an empty, relative, control-character-containing or file-valued override fails safely with configuration_invalid. Explicit constructor file paths take precedence. The Gateway URL and token must come from one source; see Move from eventstore-admin or Parties.Mcp for the full precedence. This is a behavior change: an existing setup that mixes sources, such as a profile URL with an injected EVENTSTORE_TOKEN, now fails with configuration_invalid; supply both from the environment, both as flags, or select a profile that holds its own token. Token values are masked in config output. config profile, config use, and config set ignore --profile and EVENTSTORE_PROFILE and render their output using --format, then EVENTSTORE_FORMAT, then json, never the active profile's format.
Profile mutations keep the directory, profile, lock and temporary files private. On Windows, the protected directory grants inheritable access only to the current user and LocalSystem, keeping existing files accessible to those identities. Profile, lock and temporary-file ACLs remain protected, explicit and non-inheritable. A mutation publishes the staged file with its private ACL and filesystem attributes in one same-directory rename. The staged file inherits the directory’s default filesystem attributes. It is created with Windows Encrypting File System (EFS) encryption when the existing profile is encrypted. On Unix, the directory uses mode 0700 and profile files use mode 0600.
Commands use hexalith send MODULE.OPERATION --payload '{"ItemId":"..."}', --payload @command.json, or cat command.json | hexalith send MODULE.OPERATION --payload -. The payload follows the declared schema and supplies the aggregate identifier; an optional --aggregate-id must equal it. A successful send exits 0, makes one Gateway request, and returns operation, the Gateway messageId when provided (otherwise the submitted message ID), the submitted correlationId, resolved tenant and aggregateId, and status: "accepted". Each call generates a new ULID message ID and uses it as correlation unless --correlation-id supplies one. --correlation-id and --idempotency-key must be canonical uppercase ULIDs; any other value, including lowercase ULID text, fails with validation_failed instead of being replaced. The tool never generates an idempotency key. When a command declares a non-nullable or serializer-required idempotency member, the caller must supply --idempotency-key, including when a required member is nullable. describe reports this requirement as envelope.idempotencyKeyRequired: true. A supplied key replaces any raw mapped payload value; without it, a raw non-null key is rejected and a raw null key is removed. The result includes idempotencyKey only when supplied and result only when returned by the Gateway. It never includes a duplicate field. Validation failures exit 2 and submit nothing. Gateway failures exit 2 with a gateway_error document. A present empty, whitespace-only, or noncanonical acknowledgment message ID produces gateway_error on both heads. The error carries the actual HTTP status and submitted correlation ID and reports that the command may have succeeded. A timeout or other uncertain Gateway outcome may have reached the Gateway; gateway_error reasons gateway-timeout and gateway-unreachable are uncertain even when the detail says the Gateway could not be reached. Cancellation before dispatch prevents submission. Once dispatch starts, cancellation and transport failure can leave the command outcome uncertain. Check the outcome before resubmitting.
Queries use hexalith query MODULE.OPERATION --payload '{"Key":"item-42"}', --payload @query.json, or cat query.json | hexalith query MODULE.OPERATION --payload -. The payload follows the operation's described schema and preserves its property casing. Aggregate selection uses --aggregate-id, then the declared payload accessor, then a query's declared constant. An explicit value must agree with a payload accessor, may override a constant, and is required when neither source exists. Validation completes before exactly one Gateway submission using the catalog's routing values. Computed domain queries may omit both projectionType and projectionActorType; both heads preserve their absence without inventing a selector. A projectionActorType requires a resolved projectionType; actor-only declarations are rejected as missing_routing_values. Explicit selectors retain their validation and interface/attribute precedence. Both heads preserve the descriptor's projectionActorType exactly when one is declared; omitting it would change the enrolled wire contract. Native receiver selection remains bound to the committed Gateway catalog. The pinned SDK 5.1.0 supplies the exact owner-enrolled selector policy. Parties 3.1.1 omits the deprecated actor compatibility hints and retains the same cataloged domain-service projection handlers; its exact legacy aliases remain accepted by the receiver. The separately hash-bound current vectors in tools/conformance-vectors/v1/current/modules and companion plans-current record that published form. Historical vectors, plans and native receipts remain unchanged. Full native compatibility still requires fresh complete live CI for this selected cohort; offline replay and owner compilation do not replace that gate.
Enable a read-only session with --read-only or EVENTSTORE_READ_ONLY=true. After settings resolution and catalog access succeed, a send naming a declared write returns read_only with exit code 2 and zero Gateway requests, even without a Gateway URL. Refusal happens before reading payload files or stdin, parsing JSON, processing --extension key=value entries, or validating --aggregate-id, --correlation-id, and --idempotency-key. A missing or blank send operation returns invalid_arguments for operation before catalog lookup in either mode. For read-only send, an unknown operation returns unknown_operation and naming a read operation returns validation_failed; these errors take precedence over missing or unreadable payloads and malformed extensions. Without read-only mode, send returns invalid_arguments for missing payloads or unreadable payload files, an --extension value with no =, an empty key before =, or repeated identical extension keys before those operation errors. Queries and discovery remain available; writes remain listed and describe reports submittable: false, reason: read_only. An explicit --read-only false overrides the environment setting. Run hexalith config current --format json with the same read-only flag and environment to check readOnly and its origin in sources.readOnly (flag, EVENTSTORE_READ_ONLY, or default).
--read-only enables the mode without a value, or accepts an explicit true or false value (case-insensitive). The flag does not accept 1 or 0 as boolean values; use true or false. For example, operations --read-only 0 enables read-only mode and takes 0 as the module name. EVENTSTORE_READ_ONLY accepts exactly true, false, 1, or 0, with case-sensitive matching. Settings resolution for discovery, execution, config (including profile management), and MCP stdio startup rejects any other value, including True, with configuration_invalid and exit code 2 unless an explicit --read-only flag overrides it. Command-line parse failures, help, --version, and MCP --transport, --format, or --output errors can return before this check. Profile add can first refuse an explicit --tenant, --actor, or --allow-tenant-override, or an unrecognized --token-input mode. Profile rotate-token first checks --url and the same three operator flags, the required profile name, the token-source arguments and the input mode. An earlier configuration error, such as an invalid Gateway URL or a missing selected profile, can also take precedence.
The global CLI --tenant sets the session tenant; it is never a per-call override. A command or query may declare an exact PlatformScope such as platform:tenants; describe reports it as envelope.platformScope and omits tenant from the operation arguments. That declared scope wins over the session tenant, and a conflicting MCP per-call tenant fails at /tenant before any Gateway call. The Gateway still checks its cataloged operation, credential, and required permission; the tool declaration does not grant platform authority. A platform scope cannot be combined with a module FixedTenant. For other operations, a module's fixed tenant wins over the session value. A query requires a resolved tenant. MCP per-call tenants may replace a session tenant only when tenant override is enabled; matching values need no override, and a per-call value cannot conflict with a fixed tenant. After checking execution availability and performing the initial payload checks, both heads reject non-ASCII variable-scope session and MCP per-call tenants with validation_failed at /tenant before contacting the Gateway, even when the value contains only whitespace. That whitespace case applies to session tenants from --tenant or EVENTSTORE_TENANT; a whitespace-only tenant stored in any profile in the profile file makes profile reading fail with configuration_invalid. They lowercase ASCII input invariantly without trimming before tenant selection and override comparison. When no session tenant is configured, the canonicalized MCP per-call tenant is selected without the override gate. Public variable-scope calls using system are refused. Commands take a declared payload tenant from the resolved tenant and a declared actor from the session only. A command that declares an actor requires a session actor from --actor, EVENTSTORE_ACTOR, or the selected profile's actor; without one it fails with validation_failed at /actor, even if the payload supplies an actor. If the caller includes either mapped member, it must be a JSON string exactly matching the trusted value. The executor fills omitted or matching members before submission and validates the rebuilt payload. A mapped correlation member is always replaced with the supplied --correlation-id or the generated message ID.
Commands and queries follow the module's declared ULID or String kind for aggregate identifiers. In ULID-kind modules, aggregate identifiers and marked payload identifiers must use canonical uppercase ULID text. Payload properties of CLR type Ulid must also use canonical uppercase text in any module, as must Ulid elements in nested collections and dictionaries. In String-kind modules, marked string-typed payload properties have no added ULID pattern or nonempty requirement; other schema rules may still constrain them. Aggregate identifiers also require 1–256 ASCII letters, digits, dots, underscores, or hyphens, starting and ending with a letter or digit. Ordinary tenants must be 1–64 ASCII letters, digits, or hyphens with the same start/end rule. The tenant system is reserved for historical storage. A declared platform scope uses platform: followed by a nonempty canonical lowercase name with no doubled hyphen; the Gateway must also recognize the exact cataloged scope. A declared payload tenant member is filled from the resolved request scope; a conflicting or non-string caller value fails validation.
A declared query aggregate constant must satisfy both the Gateway identifier syntax and the module's identifier kind. Catalog discovery excludes a query that declares both an aggregate property and a constant with ambiguous_aggregate_id, even when the constant is invalid. A sole invalid constant yields invalid_routing_value. For an admitted default, describe and describe_operation report aggregateIdRequired: false. Omitting the aggregate argument uses the default. A valid explicit argument overrides it. A query with neither a mapped aggregate property nor a default requires an explicit aggregate argument.
Queries accept --entity-id for an optional entity within the aggregate. Entity identifiers require 1–256 ASCII letters, digits, dots, underscores, or hyphens, starting and ending with a letter or digit. They follow this Gateway syntax even for ULID-kind modules.
Only the selected Profile supplies the extension allowlist, which is empty by default; unlisted keys are refused. Set a Profile's extension allowlist with config set PROFILE allowedExtensions task-id,trace-id, using comma-separated keys without spaces; config set PROFILE allowedExtensions '' clears the list. Supply values with repeatable send --extension key=value options or the MCP send_command tool's extensions object. Both heads use the same validation. Allowlist matching ignores case, but a call cannot contain two keys that differ only by case. Keys may contain ASCII letters, digits, dots, underscores, hyphens, and colons; each colon-separated segment must start and end with a letter or digit. Keys and values must pass the Gateway's injection checks, and values cannot contain <, >, &, ', or ". The reserved actor:globalAdmin key and every key beginning with identity: are rejected regardless of case, both in Profile allowlists and command calls. A colon-delimited key also requires exactly one Gateway trusted-extension policy to claim and accept it for that authenticated caller and command. A single command can send up to 32 extensions, with keys up to 100 UTF-16 code units, values up to 1,000 UTF-16 code units, and 4,096 UTF-8 bytes combined. Both heads send approved keys and values unchanged; queries do not carry extensions.
During extension validation, a map with more than 32 entries produces a single validation_failed violation at /extensions before any member checks.
Extension checks reject case-insensitive script or HTML patterns (javascript followed by optional whitespace and :, on followed by word characters, optional whitespace and =, or < followed by optional whitespace and script, iframe, object, or embed), SQL patterns (an apostrophe and semicolon followed by optional whitespace and DROP, ALTER, DELETE, INSERT, UPDATE, or EXEC; UNION followed by whitespace and SELECT; or -- followed only by whitespace to the end), LDAP fragments )(, *)(, |(, or &(, and path traversal fragments ../ or ..\. These checks match anywhere in a key or value, so values such as session_id=abc and partition_key=7 are refused by the on…= rule. Values also reject control characters below U+0020 except tab, LF, and CR.
--page-size accepts 1–200, --offset accepts 0–2,147,483,647, and --cursor accepts at most 4,096 UTF-16 code units. A nonblank cursor cannot be combined with an offset, including offset 0; empty or whitespace cursors are preserved. To request the next page when the projection uses cursor paging, pass the returned paging.nextCursor as --cursor without --offset. These options populate the query envelope's Paging with only the values supplied. Omitting all three omits envelope paging. Payload members named PageSize, Offset, or Cursor remain ordinary payload data, retain their lint warnings, and never supply or override envelope paging.
Query success exits 0 and always returns operation, tenant, and document, including "document": null when the Gateway returns no payload. paging appears only when returned by the Gateway; it includes pageSize and independently returned offset, nextCursor, totalCount, or hasMore. Unavailable metadata is omitted; returned zero counts/offsets and hasMore: false are preserved. Request paging never supplies result metadata. Queries carry no correlation identifier or extensions. Validation failures exit 2 without submitting to the Gateway.
modules, operations <module>, and describe <operation> browse the local Contracts catalog without making Gateway requests, even when a URL is configured. Modules and operations are listed in ordinal name order. operations includes both reads and writes by default; --kind read or --kind write filters the list. Read-only mode keeps writes visible. describe includes the payload schema, an example when declared, envelope requirements and arguments, and lintFindings. Without a URL it reports submittable: false and reason: configuration_invalid; a write in read-only mode reports reason: read_only first. submittable reflects only read-only mode and whether a URL is configured; it does not check the token, tenant, actor, or Gateway reachability. Module property casing is preserved in schemas and examples.
With --format table, modules use tab-separated NAME, OPERATIONS, DESCRIPTION columns, operations use NAME, KIND, DESCRIPTION, and configuration displays use FIELD, VALUE. Raw NAME, KIND, and DESCRIPTION cells escape backslash as \\, tab as \t, carriage return as \r, and newline as \n; configuration VALUE cells retain their serialized JSON escapes. describe stays JSON. It exits 0 even with lint findings unless --lint is supplied; with that flag, findings produce exit 1 without changing the document. Errors exit 2.
Output and exit codes
Results use the canonical JSON serializer on stdout, or in --output when a result file is selected. JSON uses UTF-8 with LF internally and one LF terminator on every OS; table formatting keeps the platform newline. JSON result and error text, including MCP tool text, result files and configuration table values, is ASCII: double quotes, backslashes, control characters and every character outside ASCII use JSON escapes such as \u00E9, while characters such as ', <, >, & and + appear as written. Module and operation table cells show declared names and descriptions as written, apart from the cell escapes described above. Tables apply only to module, operation, and configuration displays. Successful describe, send, and query results remain JSON and emit one format note on stderr when table format was requested.
- Exit 0 means a result. Help, version, and normal MCP shutdown also exit 0.
- Exit 1 is reserved for
describe --lintwith findings. - Exit 2 means no result. Non-MCP failures are one JSON object on stdout containing only
error;--format tableand--outputdo not redirect or change it. MCP failures before request serving use stderr and leave stdout empty.
When a non-MCP action observes caller cancellation, it exits 130 without an error document. If the action does not stop after Ctrl+C or SIGTERM, System.CommandLine's termination timeout can return 130 or 143. Failures before result writing leave an existing result file unchanged; runtime write failures and interruptions have the restoration risks described below. An interrupted send can also exit 2 with internal_error after the Gateway accepted it; do not retry without a trusted idempotency mechanism.
error.code is one of validation_failed, gateway_error, unknown_operation, unknown_module, invalid_arguments, read_only, catalog_empty, catalog_invalid, unsupported_transport, configuration_invalid, or internal_error. Validation errors identify the requested operation and all detected violations with JSON Pointer paths. Unknown names include up to three canonical suggestions. Unexpected failures return a fixed internal_error message without exception text or secrets. mcp --transport http is refused with unsupported_transport because HTTP is planned for the next release.
A payload schema rejection without evaluator details receives a single violation with / as the payload root marker.
Parsing and help
- Parse failures return
invalid_argumentsand exit 2, without printing usage or echoing supplied values. Unknown-option and invalid-argument messages point to--helpfor usage. Theargumentmember names a recognized option (for example,pageSizeorreadOnly), or usesargumentsfor command syntax. MCP parse failures use stderr; other parse failures use stdout. - Help must appear alone after its command path, such as
hexalith send --help.--versionmust be the only argument. - Leading directive-shaped tokens such as
[suggest]are refused. - Put
--before a positional value beginning with-or matching a slash help alias or its attached-value form. Examples:hexalith config set dev actor -- -bob,hexalith config set dev actor -- /h, andhexalith config set dev actor -- /h:x(also for/?). - Every token after
--is positional, so put options before it. - For an option value beginning with
-or resembling a help alias, attaching it with=or:is unambiguous. Examples:--token=--abcand--token=-h.
Execution, configuration, and MCP
MCP input schemas describe each argument and enumerate read and write for the optional kind filter.
Gateway authentication and authorization refusals remain gateway_error with status 401 or 403; both heads preserve the same shared error document. gateway_error.status is copied from the EventStore client exception, including when the client reports a malformed or semantically failed 2xx response. A Gateway Problem Details status may differ from the HTTP response status. detail falls back from the client exception's Detail to Title, then a generic message. reason, retryable, clientAction, retryAfter, and correlationId appear only when the exception provides them, and a correlationId that is not a canonical uppercase ULID is omitted; no message or retry identifier is invented. A Gateway error after a command submission is not proof that the command was rejected, so do not retry an uncertain outcome without a trusted idempotency mechanism.
On Unix, new regular --output files use mode 0600; on Windows they inherit the directory ACL. Before a Gateway request or profile mutation, the CLI checks predictable destination and staging failures without changing the result target. Result output also refuses the profile store, its lock, and its transaction files, including aliases. These preflight failures use internal_error with the stable message The result destination cannot be written; no request was sent. New regular files stage beside the destination; existing regular files and backups stage in the system temporary directory. Existing regular files retain their permissions, ACL, and symbolic-link target; a dangling output link creates its target. Read-only and write-only existing files are refused before mutation because their previous bytes cannot be safely replaced or backed up. Character devices, pipes, and FIFOs receive output directly. The CLI verifies the opened target’s type and filesystem identity before writing to an existing file or a Unix device or FIFO. A replacement detected during result preflight or writing produces the corresponding output error. On Windows, use --output NUL to discard a result or --output CON to write it to the attached console. Runtime failures can still occur after preflight, including disk exhaustion, a disappearing path, or a device error. FIFO preflight checks write access. Reader availability and pipe capacity are checked during the result write, which fails promptly if no reader is connected or the pipe cannot accept the result. A caught write failure to a regular file restores its previous bytes; process interruption or another failure during restoration can leave a partial file. If the Gateway accepts a send and a later --output write fails, the CLI exits 2 with an internal_error on stdout. Its message includes the accepted command message ID and its correlationId contains the submitted correlation ID. Use those identifiers to check the outcome before retrying. Likewise, a config profile add, config profile rotate-token, config profile remove, config use, or config set change may already be saved when that write fails; check config current or config profile list before retrying.
Catalog diagnostics go to stderr while ordinary discovery retains valid entries. --strict rejects any catalog diagnostic, including warnings, with catalog_invalid at exit 2 before checking for an empty catalog. Lint findings alone do not invalidate a strict catalog. A catalog with no valid operations returns catalog_empty at exit 2 when strict diagnostics have not already rejected it. config and --version bypass catalog construction.
config profile add stores the explicitly supplied URL, token, and format; it replaces the whole record when the profile already exists and refuses an explicit --tenant, --actor, or --allow-tenant-override without writing anything. Pass --url explicitly when adding a profile. An explicit --tenant on config profile add returns invalid_arguments for ASCII input and configuration_invalid for non-ASCII input. Use config set PROFILE FIELD VALUE to change one field of an existing profile. Reads and config set edits to other fields preserve stored tenants as-is, including legacy values such as \u212Aelvin (U+212A KELVIN SIGN). Use config set PROFILE tenant VALUE to replace the stored tenant. This command rejects non-ASCII tenant values with configuration_invalid before changing the file. Profile names are case-sensitive. Use config set PROFILE tenant --clear or config set PROFILE actor --clear to remove the stored setting. Pass --clear without a value. For a name starting with a hyphen, put options before -- and the name after it, as in hexalith config profile add --url https://gateway.example -- -dev.
The profile file can contain up to 1,048,576 bytes of serialized UTF-8 JSON, including JSON escaping; reads and writes enforce the same limit. If a change would exceed that limit, the CLI exits 2 with configuration_invalid on stdout and leaves any previous file and active profile intact (or creates no file on initial creation). Shorten profile values or remove an unused profile before retrying.
| Field | Accepted value |
|---|---|
tenant |
Use 1 to 64 ASCII letters, digits, or hyphens as supplied. Start and end with a letter or digit. The profile retains the supplied spelling. |
actor |
Nonblank text. |
allowTenantOverride |
true, false, 1, or 0 (lowercase). |
allowedExtensions |
Comma-separated keys without spaces. An empty string clears the list. |
Use --token-input prompt on config profile add for non-echoing terminal entry. Prompt mode for both adding and rotating a token requires interactive stdin and writable stderr. Stderr can be redirected to a writable destination. On Unix, a disconnected or full stderr pipe fails before the CLI waits for input. Backspace edits the token and Enter submits it. Ctrl+C, Ctrl+D or Esc cancels the prompt and writes a configuration_invalid error to stdout with the message Token input was cancelled. and exit 2. If the CLI encounters an I/O failure while using the terminal or writing the prompt, it exits 2 with configuration_invalid and the message The token prompt could not use the terminal or standard error. Use --token-input stdin with a redirected stream from a secret provider for automation. Supply one token followed by end of input, with an optional LF or CRLF before EOF. Both modes accept 1 to 16,384 visible ASCII characters (! through ~). Invalid or cancelled input leaves the profile untouched.
Use config profile rotate-token NAME --token-input prompt|stdin to replace only the stored token. Supply at most one token source when adding a profile. Rotation refuses --token, --url, --tenant, --actor and --allow-tenant-override with invalid_arguments. An unrecognized --token-input mode also returns invalid_arguments on either command. Both mutations refuse a token paired with HTTP unless the URL uses a loopback IP address. If the Gateway URL changes during rotation, repeat the command for the updated profile.
CLI describe and MCP describe_operation report envelope.identifierKind even when the operation has no mapped aggregate property. For an explicit aggregate ID, ulid requires canonical uppercase ULID text and string uses the Gateway aggregate-ID syntax.
config use NAME selects an existing profile by its case-sensitive name. To clear the selection, run config use --clear with no name. config profile remove NAME clears the active selection only when it removes the active profile.
Start the server with hexalith mcp --transport stdio. It starts without a prompt, resolves settings and checks the local Catalog before serving, and supports both the 2025-06-18 initialization flow and the 2026-07-28 discovery flow. Discovery works without a Gateway URL. Stdout carries only JSON-RPC; logs and diagnostics use stderr. A valid inherited table format does not change protocol output, and explicit --format json is accepted. Explicit --format table and any --output are rejected before Catalog or transport startup; format takes precedence when both are supplied, and the output path is not opened.
Before serving, invalid settings, an empty Catalog, or strict Catalog diagnostics produce one structured {"error": ...} document on stderr, exit 2, and leave stdout empty. MCP stdio defers validation of a session tenant from --tenant or EVENTSTORE_TENANT made up entirely of whitespace containing a non-ASCII character, such as U+00A0 NO-BREAK SPACE. The server starts and discovery works. Variable-scope calls refuse that tenant with validation_failed at /tenant. The CLI discovery verbs modules, operations, and describe refuse the same setting with configuration_invalid during settings resolution. A whitespace-only tenant stored in any profile in the profile file fails before serving. Once serving, tool failures are MCP results, without a second stderr error document. Caller cancellation during host startup exits 0 without an error document. A normal client shutdown also exits 0. An unexpected host failure exits 2 with the fixed stderr diagnostic MCP server stopped unexpectedly.
The stdio MCP server advertises five generic tools in a normal session, in this order: list_modules, list_operations, describe_operation, send_command, and run_query. A read-only session advertises four, omitting only send_command. Start with list_modules for names and operation counts, pass a module name to list_operations (optionally with kind: "read" or "write"), then pass an operation name to describe_operation for its payload schema, optional example, envelope arguments, lint findings, and submittable state. When the description says submittable: true, use run_query for a read or send_command for a write. submittable reflects only read-only mode and whether a URL is configured; it does not check the token, tenant, actor, or Gateway reachability. These discovery calls work without a Gateway URL; descriptions then report submittable: false with reason: configuration_invalid. In a read-only MCP session, writes remain visible in discovery and describe reports reason: read_only for them, which takes precedence over configuration_invalid. Its protocol output uses stdout and diagnostics use stderr. HTTP transport is planned for the next release. Requesting --transport http returns unsupported_transport on stderr and exits 2.
MCP execution requires operation and payload as strings: payload contains JSON text with the module's property casing, for example {"operation":"sample.get-item","payload":"{\"ItemId\":\"01ARZ3NDEKTSV4RRFFQ69G5FAV\"}"} for an enrolled sample contract. File and stdin shorthand (@file, -) belongs to the CLI; MCP passes JSON text directly. Both execution tools accept optional string tenant and aggregateId. send_command also accepts string correlationId and idempotencyKey, plus an extensions object mapping keys to string values. run_query accepts string entityId and cursor, plus integer pageSize and offset. The tenant, identifier, extension, and paging rules above apply unchanged.
MCP success returns the same complete document as CLI/Core in structuredContent, with isError: false and matching JSON in the first text content item. Command results omit idempotencyKey unless supplied and result unless returned; query results always contain document, preserving objects, scalars, arrays, and JSON null, and include paging only when the Gateway returns it. Returned paging requires a positive page size, nonnegative optional offset and total count, and a nonempty cursor when present. It preserves hasMore: false and valid page sizes above the request limit. Malformed Gateway paging produces gateway_error with the actual HTTP status on both heads, after one request. Core refusals and Gateway failures return isError: true with the same {"error": ...} document in structured and text content. The MCP session handles caller-cancelled requests through protocol cancellation. Unexpected tool exceptions return a sanitized internal_error. Missing required arguments and invalid argument types return JSON-RPC InvalidParams errors before execution. An unsupported string value for the list_operations kind filter returns a structured invalid_arguments tool result. For example, a missing, empty, or whitespace-only module in list_operations or operation in describe_operation yields InvalidParams. An unknown nonblank catalog name reaches the tool and returns unknown_module or unknown_operation in its error document. run_query pageSize and offset values that are not representable as an Int32 integer (for example 2147483648, 25.0, or 1e20) also return invalid-parameters, with the message "<field> must be representable as an Int32 integer." Use the exact run_query argument names aggregateId, pageSize, offset, and cursor. The advertised query input schema rejects case variants of these names, and the server returns JSON-RPC InvalidParams before any Gateway call. Each advertised output schema has an object root and closed success/error document branches; embedded payload schemas and returned JSON values retain their own allowed structure. Both the legacy 2025-06-18 initialization flow and the 2026-07-28 discovery flow are verified through SDK stdio clients.
Core owns the advertised result constraints: canonical success names and uppercase ULIDs, Gateway tenant/scope and aggregate syntax, nonempty text, positive page sizes, nonnegative counts and offsets, at most three canonical suggestions, and at least one validation violation. Descriptions require a valid unavailability reason when submittable is false, restrict lint findings to the four warning codes with valid property pointers when applicable, and enforce duplicate-free envelope arguments appropriate to the operation kind and fixed tenant or platform scope. Embedded schema and example roots are objects with open contents, including nested boolean schemas; returned result and document values may contain arbitrary JSON. An unknown_operation error echoes the exact nonempty requested name, including noncanonical spelling, while suggestions remain canonical.
Live topology and semantic vectors
Retained CI and release diagnostics use the shared Python redactor. Before committing an evidence packet, run the evidence secret scanner to produce an exact-file scan receipt; detected secrets and incomplete scans fail.
The canonical test lane composes the owned package gateway and qualified Tenants and Parties source hosts through published Aspire helpers, with the separately qualified Platform catalog reader. The AppHost keeps its direct-checkout guards; CI additionally verifies exact source identities, clean owned files and authenticated public archives. Only disposable hosted CI selects revisions from tools/live-topology/native-runtime-current.json. Do not initialize nested dependencies or substitute a locally cached candidate. The AppHost references no server project or implementation package; separate owner metadata preparation does not alter the Parties host graph. The independent integration harness retains its reviewed test-only closure.
Once the exact public dependencies and artifact approvals are available, run these non-launching checks from this repository root:
dotnet restore tests/Hexalith.McpCli.Integration.Tests/Hexalith.McpCli.Integration.Tests.csproj
dotnet build tests/Hexalith.McpCli.Integration.Tests/Hexalith.McpCli.Integration.Tests.csproj --no-restore --configuration Release -warnaserror
python3 -m unittest discover -v -s tools/live-topology -p 'test_*.py'
python3 tools/live-topology/run-vectors.py --output /tmp/mcpcli-live-preflight --preflight-only
Use the bounded CI preparation/execution hooks below for the live lane. Preparation must succeed against the exact selected sources before either isolated runner starts. The public Contracts integrity and full remote live acceptance remain independent gates.
The supported wrapper requires Linux amd64, Python 3.11.4 or later, GNU or uutils coreutils timeout, and permission to create user, PID, network and mount namespaces. Install Aspire CLI 17.0.0 with its DCP and dashboard bundle in ~/.aspire/bundle (the AppHost uses AspireUseCliBundle=true with SDK/hosting 17.0.0), Dapr CLI 1.19.1 and runtime 1.19.2, and ensure Docker is running with a successful docker info (required by the shared platform fixture). A fresh disposable isolated Dapr environment and private Redis are mandatory: every AppHost launch persists the test-owned Tenants bootstrap administrator, the smoke can write operational metadata, vector cases submit Commands, and default host Redis may contain user state. Use the bounded private-runtime bootstrap to set private_runtime and recreate the hash-verified native binaries. The wrapper starts Redis, Sentry, placement and scheduler only inside private namespaces. The hooks enforce a mandatory outer process deadline; the fixture and live AppHost refuse direct execution without the isolation sentinel set by the wrapper after entering private namespaces. AppHost preflight and composition inspection remain available without launching resources. A wrapper-level prerequisite failure ends the run with Private environment failed: … and exit 1 before the smoke; the skip diagnostics below describe the fixture’s own checks. Missing basic prerequisites produce the platform diagnostic, DAPR integration prerequisites are unavailable. Run 'dapr init' and ensure Redis, placement, and scheduler are reachable., and a skipped smoke. The fixture supplements that basic platform probe with bounded CLI/Sentry checks and required mTLS environment inputs; missing requirements use the same standard skip prefix with specific detail. The smoke uses the fixture’s runtime skip so these additional checks execute even when discovery-time basic probes would otherwise skip it. Inside the wrapper, a vector case first requires the single-Operation selection that run-vectors.py passes, so a vector case started without it fails with that selection error instead of a skip. The owning fixture also bounds Docker health to five seconds; a missing daemon uses the same explicit prerequisite skip prefix and cannot establish live acceptance. The documented -failSkips makes a skipped smoke exit nonzero with FAIL_SKIP; a skip does not establish live acceptance.
The default-deny sidecar ACL identifies callers through mTLS, so dapr init alone is insufficient. Inside the disposable environment, the wrapper runs Sentry on 127.0.0.1:50001 with trust domain public, and placement and scheduler use TLS with the same CA and Sentry. It supplies DAPR_TRUST_ANCHORS, DAPR_CERT_CHAIN and DAPR_CERT_KEY from its fresh private Sentry CA and issuer credentials, plus NAMESPACE=default, DAPR_CONTROLPLANE_TRUST_DOMAIN=public and DAPR_CONTROLPLANE_NAMESPACE=default to the test process. Keep private keys outside the repository. The checked-in Dapr configuration enables mTLS; Dapr CLI 1.19.1 uses the standard Sentry address and the control-plane environment variables. See the Dapr self-hosted mTLS prerequisites. The isolated verification environment records the private runtime used for this story without reusing host applications or state.
The shared platform fixture owns startup, liveness checks and disposal. Startup retains its six-minute budget and explicit two-minute resource bounds. The independent smoke requires HTTP 401 for missing credentials and a differently signed JWT, then requires matching persisted native catalog readbacks and the privileged persisted administrator Query before one platform:tenants list read. That final read keeps its separate 30-second bound. The native gateway retains the mandatory public-source configuration snapshot below ordinary overrides. Each fixture generates a short-lived signing key. Business identities carry signed native surfaces, exact permissions and exact normal tenant grants, with no system grant. The vector/smoke identities, including the persisted-administrator nonmember control, also carry the signed GlobalAdministrator role from which the Gateway derives its administrator hint. The owning module independently checks persisted administrator membership, so the signed nonmember remains refused. The excluded administrator read uses a separate UI identity with only its exact read permissions. A separate writer-maintenance identity carries the existing operator role only for activation after persisted administrator authority has passed. JWT validation, sidecar authentication and owner-bound bootstrap remain active. No identity server is required.
The independent shared-head boundary creates its own tenant-B party and reads its business state with an authorized identity before and after every refusal. Its tenant-A-only and no-tenant-grant nonmember tokens omit the global-administrator role; these test the Gateway’s exact signed tenant-grant boundary. They do not claim a persisted Parties membership check. The boundary also checks local tenant guards, allowed MCP override authorization, missing-party deactivation, and two concurrent CLI deactivations with distinct message IDs, one persisted deactivation event, and an inactive persisted end-state.
The requested Dapr IDs are eventstore, tenants and parties, with Gateway sidecar HTTP port 3501. Existing registrations or an occupied port cause an explicit conflict failure; the harness never stops, restarts or reuses a user topology. Run live tests only inside the disposable wrapper. The focused CI discovery job builds and lists every Operation-labelled case for an approved vector with a companion plan, plus the independent smoke and shared-head boundary, without starting source services.
The isolated wrapper retains a verified empty Redis RDB backup before applications start. After proving persisted administrator authority, the fixture activates the existing platform writer-v2 protocol once through its authenticated maintenance endpoint and observes readiness. The parent lane verifies the retained backup bytes, SHA-256 and owned location before accepting each child's result. EventStore can then invoke Parties' SDK named projections over authenticated POST /project/v2; default deny remains enforced. No direct state-store setup is required.
The required hooks run the shared-head boundary first, then the eight current live vectors, then the independent smoke. The live set covers each declared Operation kind, the six Tenants and Parties Operation Shapes, the Tenants FR-20 audit and paging proofs, and the Projects list. The Tenants and Parties update Commands use caller-supplied idempotency keys and verify the persisted changes. Loopback parity still exercises all 25 approved vectors through both heads. Current live plans and execution
Preparation binds the owner catalog bundle once in its receipt. Each isolated AppHost validates the bundle and SDK bytes before composing its own route catalog and creating its own custody keys. The qualified CI hooks run one vector topology at a time within the existing startup budget. Direct run-vectors.py invocations default to two workers on Linux with at least four available CPUs and one elsewhere. Set --max-workers to choose a diagnostic worker limit. Each wrapper uses a private temporary directory.
Each live vector gets a new isolated process, Redis and authenticated topology. Restored-package integrity, owner approvals, inventory hashes, Operation Shape coverage, per-kind live coverage, all vector bytes and strict companion plans are rechecked before vector Commands. The existing Development bootstrap persists the test administrator through its authenticated server-owned path; a privileged Query must then prove that administrator's persisted membership. Each declared Command is submitted once. A repeated idempotent Command step is proven by its single accepted submission plus unchanged persisted state. Every Query observation also runs through the MCP head; Commands remain single CLI submissions. Explicit Queries observe persisted effects within 45-second deadlines; continuation cursors and audit timestamps come from real query documents. Static v1 assertions remain enforced. Endpoint and identity travel privately in the runner environment. Failed vectors print sanitized phase and assertion diagnostics in the selected test failure. The lane documentation explains preflight-only and selected-vector diagnostics, receipt locations, and partial/skip behavior. Full acceptance requires every approved live vector and both independent cases to pass without skips and owned cleanup; acceptance responses alone do not prove semantics.
CI configures the delivered reusable Hexalith.Builds workflow through .github/hexalith-ci.json, running the six ordinary Release test projects, the after-unit-tests hook (including the isolated live Aspire tier in tests/Hexalith.McpCli.Integration.Tests, proprietary-surface census, conformance vectors, and Linux CI fixture package checks), and the windows-product and macos-product jobs. Three split Linux composite actions (.github/actions/linux-packages/action.yml, .github/actions/linux-conformance/action.yml, and .github/actions/linux-live/action.yml) are staged for upstream proposal Hexalith/Hexalith.CiCd#12 (hooks: [], ci 30m, custom-linux-packages 20m, custom-linux-conformance 90m, custom-linux-live 300m with all five live-topology submodules including references/Hexalith.Projects, and windows-product/macos-product depending on linux-packages). .github/actions/after-unit-tests/action.yml stays intact until Hexalith.CiCd delivers the atomic switchover and a green six-job parallel run completes, then retires in a follow-up cleanup commit. Preparation selects the exact authenticated public EventStore 5.7.1 / Tenants 8.1.1 runtime declared in tools/live-topology/native-runtime-current.json, consumes Testing.Integration 5.7.1 with the test-owned isolated Aspire lifecycle, and builds the owned nonpublishable gateway and qualified domain hosts in a fresh task-owned package cache. Exact public archive hashes, embedded repository commits, clean qualified owner sources, deployed binaries and configuration are checked before the vector lane and each independent case. Only disposable hosted CI may select the declared exact source revisions. The explicit Topology:UsePackagedGateway=true profile uses the actual SDK catalog model observer and prepare/ready/commit coordinator, the separately prepared Parties adapter, native authorization and Tenants' owner-bound persisted administrator bootstrap. Every real participant must read back the same committed authority before the administrator and writer barriers. Direct native/default and publish models retain their existing selection. The runner requires every approved live vector plus independent authenticated smoke and shared-head authorization/deactivation boundary, persisted effects, zero skips and owned cleanup. Offline build/discovery or subset evidence never establishes full live acceptance. See the runtime prerequisites and evidence contract.
On Linux, the ordinary CLI test project uses python3 (3.9 or later) and the xterm-256color terminfo entry to verify hidden input against the built CLI in a pseudoterminal.
The current isolated lane uses the .NET 11.0.0 shared runtime and net11.0 output paths for the product, its two owned fixture hosts and selected owner exports. It authenticates the finite runtime profile and verifies the actual shared-runtime JSON identity before native composition. Historical runtime profiles remain unchanged.
For a local run, first place the five clean direct root checkouts for Hexalith.EventStore, Hexalith.Tenants, Hexalith.Parties, Hexalith.Projects and Hexalith.Platform at their exact selected commits in native-runtime-current.json. Normal root submodule initialization follows gitlinks that can differ from these runtime selections; the local hook refuses to select revisions automatically. Keep nested submodules uninitialized. After the same focused Release checks, ensure Python has venv and ensurepip support and perform the workflow's full dapr init --runtime-version 1.19.2. Then reproduce the two bounded CI hooks from this repository root:
ASPIRE_EVIDENCE_PATH=TestResults/live-ci bash tools/live-topology/prepare-ci.sh
ASPIRE_EVIDENCE_PATH=TestResults/live-ci bash tools/live-topology/run-ci.sh
Preparation has a 38-minute outer limit inside its 40-minute step. The standalone run hook has a 230-minute outer limit, including a 188-minute vector budget, a separate 960-second limit for each independent case, and 600 seconds for provenance checks and cleanup. Both hooks allow a 30-second kill grace; cancellation cleanup waits at most 25 seconds after TERM, then kills the owned process group and waits at most one more second for its supervisor. Interrupted Operations are named in stderr and retained in ci-live.json. On cancellation, even after a vector failure, ci.py exits 143 and ci-live.json records SystemExit: 143; the hook's own timeout then exits 143 under GNU coreutils and 124 under uutils. Each isolated child retains its 900-second deadline. The active monolithic ci job (after-unit-tests) is limited to 360 minutes; under the proposed parallel split (Hexalith/Hexalith.CiCd#12), custom-linux-live is budgeted at 300 minutes (covering Builds prepare plus the 2280-second prepare-ci.sh, 1080-second ci.py run-boundary, and 12840-second ci.py run-remaining steps with 30-second kill graces), custom-linux-conformance at 90 minutes, and custom-linux-packages at 20 minutes. TestResults/live-ci/ci-live.json grants acceptance only for a complete passing invocation. Preparation identities, source-build diagnostics, vector receipts, independent-case XML and sanitized runtime diagnostics are uploaded on success and failure; private credentials and Redis contents stay outside that evidence directory. See the CI evidence and prerequisites for the exact locations. Release publication follows the Central package release procedure above and remains subject to the AD-17 / Platform AD-11 stable-tool promotion hold.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
This package has no dependencies.