Repository navigation
Releases
Releases · roscocheeta/dockhand-mcp-py
v0.8.2
v0.8.1 - Fix Phantom Required Args Schema & Misplaced Docstrings
What's Changed
Bug Fixes
- Fix #82: Removed *args: Any\ from 76 MCP tool signatures across 9 tool modules so FastMCP no longer exposes a phantom required \�rgs\ parameter in tool JSON schemas.
- Docstrings: Fixed 36 misplaced docstrings across 6 tool modules so FastMCP tool descriptions render properly.
Testing & Engineering Guidelines
- Added \ ests/test_mcp_contracts.py\ validating FastMCP schema/signature contracts across all 182 tools and end-to-end \call_tool()\ dispatch.
- Updated \AGENTS.md\ with contract testing and variadic-parameter rules.
v0.8.0 - Result Pagination & In-Place Container Runtime Updates
What's New
- Result Pagination (P3): Added optional
limitandoffsetpagination (returning{"items", "total", "limit", "offset", "hasMore"}whenlimitis set, preservinglistwhenlimit=None) acrosslist_containers,list_images,list_stacks,list_git_stacks,list_networks, andlist_volumes, with deterministic pre-pagination sorting and raw-ID wildcard search. - In-Place Container Runtime Updates (P4): Added
update_container_runtimetargetingPOST /api/containers/{id}/update-runtimefor live CPU (cpus,cpu_shares,cpu_period,cpu_quota,cpuset_cpus,cpuset_mems), memory (memory,memory_reservation,memory_swapwith exactDecimalsize-string parsing), PIDs, blkio, and restart-policy updates without recreating containers. - Documentation & Automation: Updated
README.md(182 Tools),CONTRIBUTING.md,AGENTS.md, and.github/dependabot.yml(weekly grouped updates targetingdev, ignoringmcp >= 2.0.0). - Verification: 202 tests passing (96% coverage), CodeQL & CodeRabbit clean,
pip-audit& Bandit clean.
v0.7.3 - Security Hardening & Dependency CVE Fixes
What's New
- Security Hardening:
- Reject empty and dot-segment (., ..) path parameters in \encode_path().
- Validate Git repository URLs (\�alidate_repo_url) and notification webhook URLs (\�alidate_http_url).
- Sanitize \upload_container_file\ filenames, enforce strict base64 validation, and cap upload size at 10 MiB.
- Close secret redaction gaps across \list_config_sets, \create_git_repository, \update_git_repository, Git \Url\ fields, \https://token@host\ userinfo, YAML multiline block scalars, and \DOCKHAND_URL\ logs/errors.
- Implement \DOCKHAND_DISABLE_TOOLS\ filtering and expand \destructiveHint=True\ coverage.
- Bug Fixes:
- Fix missing
esolve_environment_id()\ calls in \environments.py, \containers.py, and \system.py.
- Fix missing
- CI & Dependencies:
- Fix \pip-audit\ in .github/workflows/security.yml\ to audit exported \uv.lock\ dependencies.
- Upgrade \certifi\ (\2026.10.23), \mcp\ (\1.30.0), and \pyjwt\ (\2.15.1) to resolve 21 known CVEs.
- Add .github/dependabot.yml\ targeting \dev\ and mark CodeQL as enabled in \README.md.
v0.7.2 - Public Repository Readiness
What's New
- Licensing & Security Policy: Added \LICENSE\ (MIT) and \SECURITY.md\ (vulnerability reporting policy).
- Documentation & Configuration: Updated .env.example\ with \DOCKHAND_API_TOKEN\ and optional variables; updated \README.md\ tool count to \181 Tools.
- Packaging & CI: Enriched \pyproject.toml\ metadata (\�uthors, \keywords, \classifiers, [project.urls]) and added Python \3.13\ to the CI test matrix.
v0.7.1 - Dockhand v1.0.58 Support
What's New
- Korean Locale Support: Documented \ko\ (Korean) locale support in \set_language_preference\ and \README.md\ (matching Dockhand v1.0.58).
- Git Credential UX: Clarified in \create_git_repository, \update_git_repository, and \create_git_stack\ docstrings that SSH URLs (\ssh://...\ or \git@...) require an SSH key credential rather than a username/password credential.
- Testing & Metadata: Added test coverage for Korean (\ko) locale in \ ests/test_misc.py\ and updated package/issue template versions to \�0.7.1\ / \�1.0.58.
Closes #50
v0.7.0 - Upstream Dockhand v1.0.57 Alignment & Stack Conversion
What's Changed in v0.7.0
Upstream Dockhand v1.0.57 Alignment
- Stack Management Conversion:
convert_stack_to_git: Convert internal/local compose stacks to Git tracking (sourceType: 'git') viaPOST /api/stacks/{name}/attachwith optionaldeploy_now=True(streaming deploy logs) without recreating containers.convert_git_stack_to_local: Convert Git-managed stacks back to internal/local management (sourceType: 'internal') viaPOST /api/git/stacks/{id}/detach, materializing compose definitions and environment files on disk while preserving database-managed variables. Supports human-readable stack names and numeric IDs.
- Extended Internationalization:
set_language_preference: Added support for Ukrainian (uk), Turkish (tr), and Brazilian Portuguese (pt-BR).
- Container File Operations:
- Robust handling and test coverage for filenames containing special characters (
{,},=).
- Robust handling and test coverage for filenames containing special characters (
- Token Optimization & Security:
- Redaction of sensitive credentials across stack conversion payloads.
- Automatic stack ID resolution for git stack detachment.
Full Changelog: v0.6.0...v0.7.0
v0.6.0 - Upstream Dockhand v1.0.56 Alignment & Stack Redeploy Policies
Release v0.6.0: Upstream Dockhand v1.0.56 Alignment & Stack Redeploy Policies
Summary of Changes
1. Stack Redeploy & Build Policies (Dockhand v1.0.56)
- Extended
deploy_stack,update_stack_compose,create_stack,deploy_git_stack, andsync_git_stackwith fine-grained redeployment options:respect_pull_policy: bool: Honors each service's individualpull_policy(e.g.never,build,missing) rather than forcing a universal re-pull.pull_base: bool: Triggersdocker compose build --pullbefore starting services, ensuring base images in Dockerfiles are refreshed.no_cache: bool: Triggersdocker compose build --no-cacheon rebuilds.force_recreate: bool: Recreates containers even if configurations and images are unchanged.
2. Token Economy & Held Update Release Notes
- In
get_pending_container_updates, surfaced release notes for held container updates during their cooldown periods (introduced in Dockhand v1.0.56 #1824). - Added
compact: bool = Falseandinclude_release_notes: bool = Truewith default 2048-byte truncation guardrails to prevent large changelogs from bloating LLM context windows.
3. Wildcard Search Filtering
- Added
search: str | None = Nonefilter parameter tolist_containers,list_stacks, andlist_git_stacks. - Supports standard wildcards (
*and?) matching against container/stack names and display names (e.g.,prod-*,*arr*).
4. Interface Locales & Strict Security Validation
set_language_preferencenow documents and supports Spanish (es) and Russian (ru) locales alongside English, German, French, etc.- Added strict regular expression validation (
^[a-zA-Z]{2}(?:-[a-zA-Z0-9]{2,4})?$) to reject malformed or injected locale strings.
5. Quality & Security Gates
- 182/182 unit and integration tests passing (96% statement coverage).
- Pip-audit: 0 known vulnerabilities.
- Bandit SAST: 0 medium or high severity findings.
- Gitleaks: 0 secret leaks identified across full repository history.
- Packaging:
.tar.gzsdist and.whlwheel verified viauv build.
v0.5.0 - Agent Ergonomics: Optional environment_id, Git Stack Name Resolution & Compact Inspect
What's Changed
🚀 Agent Ergonomics & Performance Enhancements
- Optional
environment_idAuto-Resolution:environment_id: int | None = Noneis now optional across all tools (containers, stacks, git stacks, images, networks, volumes, security, tags). Automatically resolves to the default/active environment in single-host setups or viaDOCKHAND_DEFAULT_ENVenvironment variable, avoiding throwawaylist_environmentscalls. If multiple environments exist without a default, raises a helpful disambiguation error listing available IDs. - Git Stack Lookups by Human-Readable Name: Tools like
get_git_stack,sync_git_stack,deploy_git_stack,delete_git_stack,update_git_stacknow acceptstack_id: int | str. Passing a human name (e.g."radarr") automatically resolves to its integer stack ID, eliminating the need to pre-querylist_git_stacks. - Token Economy & Compact Container Inspect Mode: Added
compact: bool = Falsetoget_containerandinspect_container. When enabled, drops bulky Docker engine internals (graph drivers, image layers, network endpoint options) while preserving essential state, health, port bindings, mounts, networks, restart policy, and secret-redacted environment variables. Reduces context footprint by up to 65%. - Container State Filtering: Added optional
status: str | None = Nonefilter tolist_containers(e.g.status="running"orstatus="exited"). - Hatchling Wheel Configuration: Configured
tool.hatch.build.targets.wheelpackage mapping fordockhand_mcp.
🧪 Test Suite & Quality
- Added unit and integration tests in
tests/test_phase2_resolution.pyverifying single environment auto-resolution, environment variable overrides, disambiguation errors, git stack name resolution, and compact inspect payload stripping. - Test suite expanded to 176 passing tests with 96% total coverage across all modules.
Full Changelog: v0.4.0...v0.5.0
v0.4.0: Agent Ergonomics & GitOps Deployments
Release v0.4.0 - Phase 1 Enhancements
- Git Stack Upstream Mapping: Fixed field mapping in _compact_git_stack to match upstream Dockhand keys (stackName, repository.url, repository.branch, syncStatus, composePath).
- Atomic GitOps Deployment: Added deploy=True parameter to sync_git_stack and introduced sync_and_deploy_git_stack. Added _compact_sync_result to strip large file digest lists.
- Shell Strings in Exec: Allowed cmd in run_container_exec to accept shell strings (automatically executed via /bin/sh -c) alongside string lists.
- Enhanced Log Filtering: Added timestamps: bool and relative duration/ISO/epoch since parameter to get_container_logs with automatic Unix epoch conversion.
- Batch Operations: Documented schemas and supported plain string lists in execute_batch_operation.