Delx Mcp Kit
БесплатноПоддерживаетсяShared primitives for Delx local-first MCP servers: privacy escalation, GPS redaction, token store, annotations, agent error codes, agent-safe-series/v1.
Описание
Shared primitives for Delx local-first MCP servers: privacy escalation, GPS redaction, token store, annotations, agent error codes, agent-safe-series/v1.
README
Shared primitives for Delx local-first MCP servers.
Not another wearable connector — the contract layer the fleet already dogfoods (whoop-mcp, google-health-mcp). Node >=20, ESM only.
npm i delx-mcp-kit
import {
resolvePrivacyMode,
stripGpsDeep,
TokenStore,
userActionRequired,
buildAgentSafeSeries,
clampMaxPoints,
} from "delx-mcp-kit";
const mode = resolvePrivacyMode(
{ privacyMode: "structured" },
params.privacy_mode,
{ explicit_user_intent: params.explicit_user_intent, include_gps: params.include_gps },
);
Public API
| Export | Role |
|---|---|
resolvePrivacyMode |
Agent raw / include_gps requires explicit_user_intent |
stripGpsDeep / deepRedact / isGpsKey |
Recursive GPS/PII key stripping |
TokenStore |
Local tokens: dir 0700, file 0600, exclusive lock |
readOnlyAnnotation / readOnlyOpenWorldAnnotation / mutationAnnotation |
Scorecard-ready MCP annotations |
ERROR_CODES / userActionRequired / authRequired / isUserActionRequired |
Stable agent error strings |
AgentSafeSeries / buildAgentSafeSeries / clampMaxPoints |
Frozen agent-safe-series/v1 envelope + hard cap 500 |
Re-exports live on the package root (import { … } from "delx-mcp-kit"). There is no subpath export.
Privacy annotations
- Default tools:
readOnlyAnnotation()(openWorldHint: false). - Tools that hit a live upstream:
readOnlyOpenWorldAnnotation(). - Writes:
mutationAnnotation({ destructive }). privacy_mode=rawandinclude_gps=truethrowUSER_ACTION_REQUIREDunlessexplicit_user_intent=true. A config-defaultraw(env) is allowed without per-call intent.
Series caps (agent-safe-series/v1)
Connectors still downsample. This kit only freezes the envelope:
- Stats stay on full-resolution samples (connector-owned).
- Server hard cap is 500 points (
SERIES_HARD_MAX_POINTS); default budget 400. - Honest loss metadata:
downsampled,method,source_points,returned_points. - GPS/latlng never enters a series tool —
buildAgentSafeSeriesrejects those metric names. buildAgentSafeSeriesstampscontract_versionandt_unit: "seconds_from_start". Do not invent a second contract string.
Canonical field rules: delx-wellness agent-safe-series.md. Local note: docs/0.2-story.md.
const series = buildAgentSafeSeries({
activity_id,
metric: "heart_rate",
unit: "bpm",
resolution_seconds: 60,
requested_resolution_seconds: 60,
points, // already shaped + capped by the connector
stats,
downsampled: points.length < source_points,
source_points,
method: points.length < source_points ? "time_bucket_mean" : "none",
data_quality,
notes: [],
});
Use clampMaxPoints(params.max_points) on the input budget before shaping. If points.length is still over 500, the builder throws INVALID_INPUT instead of silently truncating.
Versioning
Two version lines:
| Line | What | Bump when |
|---|---|---|
Package semver (0.2.0) |
JS API of this kit | new export, behavior change, bugfix |
agent-safe-series/v1 |
Frozen envelope string | never for optional fields; new required field / rename / meaning change → v2 and package major |
Package bumps (0.x, keep it boring):
- Additive export or optional envelope field agents may ignore → minor (
0.1.1→0.2.0) - Breaking JS API, tighter hard cap, or required-field change → major
- Bugfix that keeps the envelope identical → patch
Keep the previous contract major readable for ≥1 minor after a bump. Do not silently reinterpret v1 fields.
How to bump
- Edit
versioninpackage.json(and the lockfile if npm rewrites it). - Add a
CHANGELOG.mdsection. Mentionagent-safe-series/v1when the envelope changes. - Prove with
npm teston this machine. GitHub Actions in.github/workflowsis a leftover template, not a merge gate (no paid Actions minutes). - Maintainer publishes from a trusted machine:
npm publish(prepublishOnlyre-runs tests). This repo does not publish from CI.
Do not bump the contract string from a connector. Propose additive fields via the hub ADR / garmin-mcp#19 first.
Develop
npm ci
npm test # typecheck + build + kit + series fixtures
npm run typecheck
See AGENTS.md, CONTRIBUTING.md, SECURITY.md.
MIT · part of the Delx wellness MCP surface. Yardstick: mcp-scorecard.
Установить Delx Mcp Kit в Claude Desktop, Claude Code, Cursor
unyly install delx-mcp-kitСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add delx-mcp-kit -- npx -y delx-mcp-kitПошаговые гайды: как установить Delx Mcp Kit
FAQ
Delx Mcp Kit MCP бесплатный?
Да, Delx Mcp Kit MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Delx Mcp Kit?
Нет, Delx Mcp Kit работает без API-ключей и переменных окружения.
Delx Mcp Kit — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Delx Mcp Kit в Claude Desktop, Claude Code или Cursor?
Открой Delx Mcp Kit на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Изменения
Версии и запрашиваемые доступы со временем.
- Новая версия опубликована
- Новая версия опубликована
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
Roblox Studio
Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce
автор: paralovAWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
автор: lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
MCPHub
Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.
MCP Servers Rating and User Reviews
Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)
Compare Delx Mcp Kit with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
