The MemWal relayer is the public protocol/API layer for SDKs, MCP clients, and self-hosted deployments. Treat every route, signed header, response field, runtime config field, and documented environment variable on this page as a versioned contract.Documentation Index
Fetch the complete documentation index at: https://docs.memwal.ai/llms.txt
Use this file to discover all available pages before exploring further.
Relayer SemVer
The relayer package version follows SemVer, and the public API contract is exposed separately asapiVersion.
| Change | Required bump | Examples |
|---|---|---|
| Compatible public behavior | patch | bug fix, clearer error body, additive docs |
| Additive public surface | minor | new response field, new route, new optional env var, new feature flag |
| Breaking public surface | major | removing or renaming a header, route, env var, response field, auth canonical format, or changing field meaning |
- HTTP routes under
/api/*,/health,/version,/config,/sponsor, and/api/mcp* - signed auth headers and the canonical signature format
- JSON request/response field names and status-code semantics
- runtime config and environment variables used by self-hosted relayers
- MCP transport behavior and bearer credential expectations
Compatibility Matrix
| Relayer API | Relayer package | TypeScript SDK | Python SDK | MCP package | Notes |
|---|---|---|---|---|---|
1.x | 0.1.x | >=0.0.4 | >=0.1.0 | >=0.0.1 | Requires x-nonce; TypeScript and Python SDKs use x-seal-session for relayer-mode decrypt flows; MCP uses bearer delegate credentials for SSE |
/version before protected requests and fail with an explicit compatibility error when the relayer API major or minimum SDK version is unsupported.
Runtime Metadata
Modern relayers expose compatibility metadata atGET /version and include the same block in GET /health.
/health keeps the legacy version field for older monitoring checks. New automation should prefer relayerVersion.
Deprecation Process
Breaking changes must follow this process unless there is an active security incident:- Add a deprecation notice to
/version.deprecations. - Document the replacement path and removal
apiVersion. - Keep the old surface working for the rest of the current API major.
- Add or update contract tests and docs in the same PR.
- Remove the surface only in the next API major.
Environment Variables
Environment variables documented in Environment Variables are public contract items for self-hosted deployments. Renaming, removing, or changing their meaning is a breaking relayer API change. Additive env vars may ship in a minor release. Deprecating an env var requires a/version.deprecations entry, docs update, and a replacement path. SEAL_KEY_SERVERS is currently deprecated in favor of SEAL_SERVER_CONFIGS and remains supported through relayer API 1.x.
Contract Checks
CI runspnpm check:compatibility, which verifies that:
- relayer API and minimum supported SDK/MCP constants are valid SemVer contract values
- SDK/MCP compatibility baselines match the relayer’s minimum supported versions
- SDK/MCP package versions are not older than the compatibility baseline they advertise
- this policy document contains the current API version and compatibility matrix values