Skip to main content
The source @stateset/edi-mcp package 0.2.1 exposes 167 tools over the EDI API. It supports local stdio and a stateless Streamable HTTP implementation. Local tools use the configured tenant/partner credential; API scopes, role, tenant, and readiness checks remain authoritative.

Build and connect

Use Node 20.19+ from the source checkout. Packaging tests do not establish npm publication; the supported example uses the in-repository build.
Configure your MCP host with a scoped key loaded through its secret configuration:

Choose the tool family

Discover the actual tool list in your connected build. The MCP surface and REST’s 202 documented operations are not one-to-one. Internal validation now covers configured X12 and EDIFACT types; a passing baseline does not automatically promote a partner.

Review mutations before invoking them

All fourteen direct outbound tools require a typed payload, partner_id, stable idempotency_key, and literal confirmation: "CONFIRM". Reviewed order sending additionally requires the original order_revision and frozen overrides from preview. The host must show the target, scope, and actual action before supplying confirmation. The string and MCP annotations do not prove a person approved it. Do not manufacture readiness attestations, external acceptance, or permission to contact a counterparty. The synthetic order-to-invoice demo creates a new test partner; its retailer acceptance is simulated fixture evidence. After a timeout or lost response, retain the key and exact payload. The server never retries mutations automatically. Errors retain status, code, and outcome_unknown where available; inspect the ledger before explicitly recovering the original request. See orders and recovery.

Runtime and hosted boundaries

Requests refuse redirects and bound response reads. The hosted implementation uses resource-specific StateSet WorkOS OAuth, live organization membership, and separate 60-second tenant credentials. It requires exact resource registration and gateway secrets; do not configure a platform API token on that service. Hosted HTTP implementation/container tests do not establish public deployment, a signed-in customer flow, or real revocation. Use local stdio until those gates are independently verified. For terminal operation see CLI and SDK.
Last modified on October 20, 2026