MDK Logo

Packages

Every package in the MDK monorepo, grouped into Core, Extensions, UI, and Tools, with what each is for and how to get it

Overview

This page lists every package in the MDK monorepo. Core is the Kernel, the Gateway, and the runtimes around them. Extensions are the Workers and apps that connect MDK to hardware, pools, and agents. UI is the browser toolkit, and Tools are what you develop with.

Availability says how you get a package:

  • workspace: private to the monorepo, used from a clone
  • publishable: not marked private. A release publishes it to npm once it also sets publishConfig.access to public and its repository

Core

PackagePurposeAvailability
@tetherto/mdk-agentMDK operator agent — headless loop over a local (QVAC) model, consuming MDK tools via MCPpublishable
@tetherto/mdk-app-runtimeMDK app runtime: runs one app's controllers in its own process and serves them over HRPCpublishable
@tetherto/mdk-clientMDK protocol client — HRPC (RPC listener) transport for Kernelpublishable
@tetherto/mdk-coreMDK lifecycle: start the Kernel and Gateway, generate PM2 stacks, local discovery and a private HyperDHT bootstrappublishable
@tetherto/mdk-gatewayMDK Gatewaypublishable
@tetherto/mdk-identityMDK identity: the token issuer (users, service accounts, rotating refresh tokens) and JWT verification for the Gateway, MCP server and Kernelpublishable
@tetherto/mdk-kernelMDK Kernel - Orchestration Kernelpublishable
@tetherto/mdk-mcpMDK MCP Serverpublishable
@tetherto/mdk-protocolMDK Protocol — the message envelope, action set, payload and parameter validators, command states and device metadata rules shared by the Kernel, Workers and clientspublishable
@tetherto/mdk-rbacMDK RBAC policy library — validates spec.rbac from mdk.yaml and evaluates callers at the Gateway, MCP server and Kernelpublishable
@tetherto/mdk-statsMDK telemetry aggregation ops: composable sum/avg/group/concat operations the Worker Runtime aggregates with, the Kernel merges Worker results with, and the Worker plugins' stats templates usepublishable
@tetherto/mdk-workerMDK Worker Runtime — hosts a Worker Plugin's devices behind one HRPC channel to the Kernelpublishable

Extensions

Miners

NamePackagePurposeModelsAvailability
Avalon@tetherto/mdk-worker-avalonControls Canaan Avalon Bitcoin miners over the CGMiner ASCII APIA1346workspace

Containers

NamePackagePurposeModelsAvailability
Antspace@tetherto/mdk-worker-antspaceControls Antspace container cooling systemsHK3, IMMworkspace
Bitdeer@tetherto/mdk-worker-bitdeerControls Bitdeer D40 immersion containersD40-A1346, D40-M30, D40-M56, D40-S19XPworkspace

Power meters

NamePackagePurposeModelsAvailability
ABB@tetherto/mdk-worker-abbReads ABB power meters via Modbus TCPB23, B24, M1M20, M4M20, REU615workspace
SATEC@tetherto/mdk-worker-satecReads SATEC PM180 power meters via Modbus TCPPM180workspace
Schneider Electric@tetherto/mdk-worker-schneiderReads Schneider Electric power meters via Modbus TCPP3U30, PM5340workspace

Sensors

NamePackagePurposeModelsAvailability
Seneca@tetherto/mdk-worker-senecaReads Seneca Z-4RTD-2 temperature sensors via Modbus TCPZ-4RTD-2workspace

Mining pools

NamePackagePurposeModelsAvailability
F2Pool@tetherto/mdk-worker-f2poolReports F2Pool mining pool account data: hashrate, miners, balances, and revenueF2POOL-BTCworkspace

Plugins and tooling

PackagePurposeAvailability
@tetherto/mdk-worker-mockGeneric mock framework for MDK device workers (BaseMock + transport adapters)workspace

UI

PackagePurposeAvailability
@tetherto/mdk-react-adapterReact framework adapter for @tetherto/mdk-ui-foundation. Binds Zustand vanilla stores and TanStack QueryClient to React-native hooks. No Reduxpublishable
@tetherto/mdk-react-devkitMDK Devkit (React) — generic UI primitives (src/primitives) plus mining-domain components, hooks, and state bindings (src/domain)publishable
@tetherto/mdk-ui-agentInjectable operator Co-pilot chat UI for the MDK agent app. Streams the six-event agent contract over SSE and renders it as a docked panel or a full-page routepublishable
@tetherto/mdk-ui-foundationFramework-agnostic headless foundation for the MDK Devkit. Currently exposes Zustand vanilla stores and a TanStack QueryClient factory. No Reactpublishable

Tools

PackagePurposeAvailability
@tetherto/mdk-cliMDK command-line tool: onboard, scaffold, run and inspect an MDK stackpublishable
@tetherto/mdk-skillMDK Developer Skill Suite — Agent Skills (SKILL.md) bundle assembled from the MDK monorepo's real artifacts and versioned to track the MDK release line. Copy-only assembler: each library owns its artifacts, this package curates them into dist/skills/ and installs them flat into .cursor/skills/ or .claude/skills/publishable

Export subpaths

A package in this table declares an exports map in its package.json, which closes deep imports: only the subpaths listed here resolve, and any other path fails with ERR_PACKAGE_PATH_NOT_EXPORTED. . is the package root, and ./<subpath> is imported as <package>/<subpath>. None marks a map that opens no path, the package root included. A package missing from this table declares no exports map, so its deep imports stay open.

PackageSubpaths
@tetherto/mdk-agent., ./package.json
@tetherto/mdk-app-runtime., ./lib/plugin-loader, ./lib/module-context, ./lib/authority, ./bin/run-app.js, ./package.json, ./mdk-plugin.schema.json
@tetherto/mdk-client., ./package.json
@tetherto/mdk-core., ./lib/dht-bootstrap, ./lib/local-discovery, ./package.json
@tetherto/mdk-gateway./plugin, ./workers/lib/plugin-loader, ./workers/lib/plugin-adapter, ./workers/lib/plugin-gateway, ./workers/lib/authority, ./workers/lib/logger, ./workers/http.node.wrk, ./package.json
@tetherto/mdk-identity., ./package.json
@tetherto/mdk-kernel., ./protocol/actions, ./protocol/envelope, ./protocol/params, ./protocol/schemas, ./device-metadata, ./testing, ./dht, ./package.json
@tetherto/mdk-mcp., ./plugin, ./package.json
@tetherto/mdk-protocol., ./actions, ./envelope, ./schemas, ./params, ./command-states, ./device-metadata, ./dht, ./package.json
@tetherto/mdk-rbac., ./package.json
@tetherto/mdk-react-adapter., ./hooks, ./provider, ./hooks.json
@tetherto/mdk-react-devkit., ./primitives, ./domain, ./registry.json, ./styles.css, ./styles-domain.css, ./styles, ./tokens.scss, ./src/styles/index.scss, ./package.json
@tetherto/mdk-skill., ./package.json
@tetherto/mdk-stats., ./utils, ./ops, ./package.json
@tetherto/mdk-ui-agent., ./core, ./chat-page, ./panel, ./styles.css, ./package.json
@tetherto/mdk-ui-foundation., ./store, ./query, ./types, ./app-shared-modules, ./app-ui-paths, ./stores.json, ./app-page-paths
@tetherto/mdk-worker., ./device, ./kit, ./testing, ./sweep-memo, ./lib/module-context, ./lib/worker-runtime, ./mdk-contract.schema.json, ./package.json, ./lib/schema-subset

Next steps

On this page