DD-338 Phase E.python — stallari-mcp-helpers v0.1.0 initial release #1
No reviewers
Labels
No labels
bug
devfu
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
svd:skip
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Stallari/mcp-helpers!1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/dd-338-e-python-mcp-helpers-v0.1.0"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Foundational substrate ship — first PyPI release of
stallari-mcp-helpers, the canonical helper library for first-party Stallari Python MCP servers.meta_envelope+append_meta(canonical_meta: {...}JSON-tail audit envelope) fromsyncthing-blade-mcp(sha256 pinned)Pattern+compute_domain_hint+load_patterns_from_yaml(per-record domain attribution engine) fromgmail-blade-mcp(sha256 pinned), generalised to use dot-path field navigation in place of gmail'sfield_projectorcallablegmail-,home-assistant-,mastodon-,tailscale-,syncthing-,caldav-,fastmail-blade-mcpPublic API
Locked encoding for
meta_envelope: tight JSON separators ((",", ":")), alphabetically-sortedfiltered_by,ensure_ascii=False, required fields always present (filtered_bydefaults[],next_cursordefaults JSONnull), optionalerror_notes/domain_hintsomitted when None or empty (Convention #22). Kwarg-only signature.Verification
domain_hint, 24audit_envelope)uv run ruff checkcleanuv run ruff format --checkcleanuv run mypy --strictcleanuv buildproducesdist/stallari_mcp_helpers-0.1.0.tar.gz+.whlSource-pin verification
~/src/gmail-blade-mcp/src/gmail_blade_mcp/domain_hint.py1977670f39a0b3b2db37842d25e985f06d15296814cfb8daa0f725798138dba4~/src/syncthing-blade-mcp/src/syncthing_mcp/formatters.py2ea00ebdb6da2577cfcd8c616e7560a914dd6d79f720a00d848612b49d0a79f8API divergences from sources (architect-spec'd)
compute_domain_hint(record, patterns)— gmail's reference takes a thirdfield_projectorcallable. The spec lifts this to a generic public API by dropping the projector and using built-in dot-path navigation (labels.priorityreadsrecord["labels"]["priority"]). All gmail-specific projector behaviour for nested lists / scalar-coercion preserved.meta_envelope(...)— syncthing's reference omittednext_cursor+error_notesfields and used kwarg shapelatency_mspositioned afterredactions. Spec adopts the canonical wire-contract shape withnext_cursorALWAYS-present (JSONnulldefault) anderror_notesper DEVFU2026-05-23-granularity-doc-optional-envelope-fields.append_meta(body, meta_line)— syncthing's reference was a fat helper accepting fullmeta_envelopekwargs and constructing both. Spec collapses to a simple 2-arg joiner; callers composemeta_envelope(...)separately.Test plan
uv sync --group devcleanuv run pytest tests/ -v→ 52 passeduv run pytest tests/ --cov=src/stallari_mcp_helpers --cov-report=term-missing --cov-branch→ 100% line + branch ondomain_hint.pyandaudit_envelope.pyuv run ruff check src/ tests/cleanuv run ruff format --check src/ tests/cleanuv run mypy src/stallari_mcp_helpersclean (strict)uv buildproduces sdist + wheelv0.1.0+ PyPI publish (out of scope for this PR)References
~/master-ai/atlas/utilities/agent-harness/specs/2026-05-24-dd-338-e-python-mcp-helpers-package.md🤖 Generated with Claude Code