Zum Inhalt springen

MCP Bash Framework Updates & Release Notes

Einträge
55
Quellen
1
Zuletzt aktualisiert

Folge MCP Bash Framework, um die Release Notes in deinen Feed zu holen.

MCP Bash Framework von Yaniv Golan

Version 1.1.1: Normalisierung von MCPBASH_LOG_LEVEL

Boolesche Werte für MCPBASH_LOG_LEVEL werden nun normalisiert: "true" entspricht "debug", "false" entspricht "info". Dies ist eine Änderung bestehender Konfigurationen.

Changed

  • MCPBASH_LOG_LEVEL boolean normalization: Boolean-like values are now normalized to RFC-5424 levels: true/1 → debug, false/0 → info. This supports UI toggles (like Claude Desktop Extensions settings) that map boolean debug settings to MCPBASH_LOG_LEVEL. The normalized value is re-exported so tool subprocesses inherit canonical level names. Breaking: Existing deployments setting MCPBASH_LOG_LEVEL=true (intending "enable logging") will now get debug-level verbosity instead of info-level.

Originalquelle(öffnet in neuem Tab)Problem melden

MCP Bash Framework von Yaniv Golan

Version 1.1.0: MCP-Apps-Unterstützung und UI-Scaffolding

Vollständige Implementierung der MCP-Apps-Spezifikation für interaktive HTML-UIs, automatische Verknüpfung von Tools mit UI-Ressourcen, neue Scaffold-Befehle und Pre-Push-Hook.

Added

  • MCP Apps extension support (SEP-1865): Full implementation of the MCP Apps specification for serving interactive HTML UIs. Tools can now provide rich visual interfaces via ui:// resources. Includes auto-discovery of UI resources, CSP header generation, and template-based UI generation.

  • Auto-inference of _meta.ui.resourceUri: When a tool has a ui/ subdirectory containing index.html or ui.meta.json, the framework automatically links the tool to its UI resource. No manual _meta.ui configuration needed—the URI is generated as ui://{server-name}/{tool-name}.

  • mcp-bash scaffold ui command: New scaffold command for creating UI resources:

    • mcp-bash scaffold ui <name> — creates standalone UI in ui/<name>/
    • mcp-bash scaffold ui --tool <name> — creates UI for existing tool (auto-linked)
    • Generates index.html with MCP Apps SDK integration, ui.meta.json with CSP configuration
  • --ui flag for mcp-bash scaffold tool: Create a tool with UI in one command: mcp-bash scaffold tool weather --ui. Generates both the tool files and the ui/ subdirectory with working templates.

  • UI Resources Guide: New documentation at docs/guides/ui-resources.md covering static HTML UIs, template-based UIs, auto-linking, CSP configuration, and the MCP Apps SDK.

  • Pre-push hook: New .githooks/pre-push runs unit tests and bundle validation before pushing, catching issues locally before CI. …

Originalquelle(öffnet in neuem Tab)Problem melden

MCP Bash Framework von Yaniv Golan

Version 1.0.0: Stabil für den Produktionseinsatz

Das Framework erreicht Version 1.0.0 und gilt als stabil; zusätzlich wurden Dokumentationen für Clawdbot und Highlight AI ergänzt.

mcp-bash reaches 1.0.0 — the framework is now considered stable for production use. The protocol implementation is complete, the SDK API is mature, and the project has been validated across multiple MCP servers and clients.

Added

  • Clawdbot client documentation: Added configuration instructions for Clawdbot, which uses mcporter for MCP integration. Config goes in ~/.mcporter/mcporter.json.
  • Highlight AI client documentation: Added configuration instructions for Highlight AI. Tested end-to-end. Uses UI-based config: Settings → Connections → Add → Custom command.

Changed

  • Version bump to 1.0.0: Signals API stability. The MCP protocol implementation covers the full 2025-11-25 spec (tools, resources, prompts, elicitation, roots, progress, cancellation). No breaking changes are expected in the 1.x series.

Originalquelle(öffnet in neuem Tab)Problem melden

MCP Bash Framework von Yaniv Golan

Version 0.14.0: Schutz vor Zombie-Prozessen

MCP-Server haben nun standardmäßig einen Leerlauf-Timeout und eine Erkennung verwaister Prozesse; zusätzlich werden fehlende Felder bei der Registry-Erzeugung korrigiert.

Added

  • Zombie process mitigation: MCP servers now include automatic defenses against zombie/orphan process accumulation. Idle timeout (default: 1 hour) exits the server when no client activity is received. Orphan detection (Unix only) exits the server when the parent process dies. Both features are enabled by default and can be configured via environment variables (MCPBASH_IDLE_TIMEOUT, MCPBASH_IDLE_TIMEOUT_ENABLED, MCPBASH_ORPHAN_CHECK_ENABLED, MCPBASH_ORPHAN_CHECK_INTERVAL). See DEBUGGING.md for details.

Fixed

  • Registry generation missing progressExtendsTimeout and maxTimeoutSecs fields: Tools with progress-aware timeout configuration in tool.meta.json would silently fall back to fixed countdown mode because the registry generator did not copy progressExtendsTimeout or maxTimeoutSecs fields to .registry/tools.json. The timeout watchdog reads these values from the registry at runtime, but they were always null, causing MCPBASH_PROGRESS_EXTENDS_TIMEOUT to never be set. Fix: added both fields to auto-discovery and manual registration registry generation paths. Added unit tests to prevent regression. …

Originalquelle(öffnet in neuem Tab)Problem melden

MCP Bash Framework von Yaniv Golan

Version 0.13.0: timeoutHint-Feld und CLI-Erkennung

Neues optionales Feld "timeoutHint" in tool.meta.json liefert Hinweise bei Zeitüberschreitungen; dokumentiert wird zudem die Erkennung externer CLIs bei eingeschränktem PATH.

Added

  • timeoutHint field in tool.meta.json: New optional field that provides actionable guidance appended to timeout error messages. When a tool times out, the hint text is displayed as a "Suggestion:" in the error message and is also available programmatically via structuredContent.error.hint. This helps LLMs adjust their approach (e.g., use smaller batches, enable dry-run mode). Example: "timeoutHint": "Use dryRun=true first. For large datasets, try limit <= 100.". See Timeout Strategy Guide for details.

Documentation

  • Runtime CLI detection pattern: New section in BEST-PRACTICES.md documenting how to detect external CLIs when MCP hosts spawn servers with restricted PATH (missing version manager shims). Includes mcp_detect_cli() helper covering pyenv, asdf, mise, nvm, fnm, volta, rbenv, goenv, cargo, and Homebrew paths. Clarifies that server.d/env.sh is not auto-sourced at server startup.

Changed …

Originalquelle(öffnet in neuem Tab)Problem melden

MCP Bash Framework von Yaniv Golan

Version 0.12.0: Timeout-Fehler als isError-Format

Timeout-Fehler werden jetzt als "isError: true" statt als JSON-RPC-Fehler gesendet, was bessere LLM-Feedback und strukturierte Metadaten ermöglicht.

Changed

  • Timeout errors now use isError: true format instead of JSON-RPC -32603 errors. This improves LLM feedback by ensuring clients display the full timeout message and providing structured metadata (type, reason, timeoutSecs, exitCode) for programmatic handling. Cancellation (-32001) remains a protocol error. See Timeout Strategy Guide for details.

Originalquelle(öffnet in neuem Tab)Problem melden

MCP Bash Framework von Yaniv Golan

Version 0.11.0: Neuer --array-path-Parameter

Der Parameter "--array-path" für mcp_json_truncate gibt an, welches Array gekürzt werden soll, und liefert strukturierte Fehler bei ungültigen Pfaden.

Added

  • --array-path parameter for mcp_json_truncate: New optional parameter to specify which array to truncate in JSON responses. Allows tool authors to declare their data structure (e.g., --array-path ".data", --array-path ".hits.items") instead of relying on hardcoded heuristics. Returns structured errors (path_not_found, invalid_array_path, invalid_path_syntax) for invalid paths. Path syntax is validated before jq interpolation for security. Backward compatible: without --array-path, falls back to top-level arrays and .results heuristic. See BEST-PRACTICES.md "Truncating large results" section.

Originalquelle(öffnet in neuem Tab)Problem melden

MCP Bash Framework von Yaniv Golan

Version 0.10.0: Konfigurations-Helfer und User-Config-Unterstützung

Neue SDK-Helfer für einheitliches Konfigurationsladen sowie Unterstützung für benutzerdefinierte Konfigurationsoptionen in Bundles hinzugefügt.

Added

  • mcp_config_load / mcp_config_get SDK helpers: Unified configuration loading with standard precedence (env var → file → example → defaults). mcp_config_load accepts --env, --file, --example, and --defaults flags; performs shallow merge with jq (last-source-wins without jq). mcp_config_get extracts values by jq path with optional --default. Supports minimal mode (top-level keys only without jq). See BEST-PRACTICES.md "Configuration loading" section.
  • user_config bundle support: Bundles can now declare user-configurable options via MCPB_USER_CONFIG_FILE, MCPB_USER_CONFIG_ENV_MAP, and MCPB_USER_CONFIG_ARGS_MAP in mcpb.conf, or via user_config, user_config_env_map, and user_config_args_map in server.d/server.meta.json. User config fields are validated for schema correctness (type, title required; type-specific properties like sensitive, min/max, multiple). Env and args mappings are validated to reference existing config keys. Generated manifests include user_config section and proper ${user_config.KEY} variable substitution in mcp_config.env and mcp_config.args. See docs/MCPB.md "User Configuration" section. …

Originalquelle(öffnet in neuem Tab)Problem melden

MCP Bash Framework von Yaniv Golan

Version 0.9.13: Fehlerbehebung bei errexit-Zustandsleck

Ein Fehler wurde behoben, bei dem Funktionen den errexit-Shell-Zustand des Aufrufers veränderten; jetzt wird ein errexit-sicherer Muster verwendet.

Added

  • Bundle libs sync test: New CI test (test/unit/bundle_libs_sync.bats) that verifies BUNDLE_REQUIRED_LIBS includes all libraries sourced by bin/mcp-bash. Prevents broken releases with missing bundled libraries (e.g., 0.9.9, 0.9.10).

Fixed

  • errexit (set -e) state leak in functions: Fixed a bug where mcp_with_retry and several internal functions would modify the caller's errexit shell state. Functions using set +e; cmd; rc=$?; set -e patterns would leave errexit enabled even if the caller had it disabled, causing unexpected script termination. Replaced with errexit-safe cmd && rc=0 || rc=$? pattern. Affected functions: mcp_with_retry (SDK), mcp_tools_validate_output_schema, mcp_tools_call, mcp_registry_register_execute, mcp_cli_health.

Originalquelle(öffnet in neuem Tab)Problem melden

MCP Bash Framework von Yaniv Golan

Version 0.9.12: Neuer Helper für CLI-Fehler und korrigierte JSON-RPC-Codes

Neue Funktion zum Extrahieren von Fehlermeldungen aus strukturiertem JSON und Korrektur des JSON-RPC-Fehlercodes für Tool-Fehler auf -32602.

Added

  • mcp_extract_cli_error SDK helper: New function to extract error messages from CLI tools that output structured JSON errors to stdout (common with --json flags) instead of stderr. Checks common patterns (.error.message, .error string, .message with status flags, .errors[0].message) before falling back to stderr. Improves LLM self-correction by providing meaningful error messages instead of empty strings. See BEST-PRACTICES.md §4.4 "Handling CLIs with structured JSON errors".

Fixed

  • Incorrect JSON-RPC error code for tool errors: Changed "Tool path unavailable" and "Tool executable missing" errors from -32601 (Method not found) to -32602 (Invalid params) per JSON-RPC 2.0 and MCP specifications. The -32601 code is reserved for when the RPC method itself doesn't exist; tool-related errors are parameter validation failures and should use -32602. This aligns with the existing "Tool not found" error which correctly uses -32602.

Originalquelle(öffnet in neuem Tab)Problem melden

MCP Bash Framework von Yaniv Golan

Version 0.9.11: Option für Stderr-Datei und Sicherheitsdokumentation

Neue Option zur Erfassung von Nicht-Fortschritts-Stderr-Ausgaben bei Fortschrittsweiterleitung sowie erweiterte Sicherheitsdokumentation hinzugefügt.

Added

  • --stderr-file option for mcp_run_with_progress: New option to capture non-progress stderr lines to a file while still forwarding progress notifications to MCP. Enables MCP tools to report detailed CLI error messages when using progress forwarding. See BEST-PRACTICES.md §4.9 "Capturing non-progress stderr".

Documentation

  • SECURITY.md: Added production deployment checklist, critical policy.sh security warning, known security limitations section (rate limiting, TOCTOU, input validation, debug logging, env inheritance), and gateway requirements for remote access.

Originalquelle(öffnet in neuem Tab)Problem melden

MCP Bash Framework von Yaniv Golan

Version 0.9.10: Fehlende Bibliothek in Bundles ergänzt

Die fehlende Bibliothek progress-passthrough.sh wurde zu den Bundle-Pflichtbibliotheken hinzugefügt.

Fixed

  • Bundle missing progress-passthrough.sh: Added progress-passthrough to BUNDLE_REQUIRED_LIBS in bundle.sh. This library is sourced by sdk/tool-sdk.sh for mcp_run_with_progress functionality and was missing from bundles.

Originalquelle(öffnet in neuem Tab)Problem melden

MCP Bash Framework von Yaniv Golan

Version 0.9.9: Fehlende Bibliothek in Bundles ergänzt

Die fehlende Bibliothek handler_helpers.sh wurde zu den Bundle-Pflichtbibliotheken hinzugefügt.

Fixed

  • Bundle missing handler_helpers.sh: Added handler_helpers to BUNDLE_REQUIRED_LIBS in bundle.sh. This library is sourced by core.sh and was missing from bundles, causing runtime failures.

Originalquelle(öffnet in neuem Tab)Problem melden

MCP Bash Framework von Yaniv Golan

Version 0.9.8: CI-Verbesserungen und Bundle-Korrektur

CI-Workflow verbessert und Fehler behoben, bei dem parameterisierte Ressourcen fälschlich in resources.json aufgenommen wurden.

Changed

  • CI/CD improvements: Bundle validation is now part of release gates via new bundle-sanity job that validates mcp-bash bundle --help and mcp-bash bundle --validate on every push. Prevents broken bundle functionality from reaching releases when non-bundle-path changes break bundle code. Full bundle creation tests remain in separate bundle.yml workflow for thorough path-triggered testing.
  • Consistent Windows CI policy: bundle.yml now uses continue-on-error for Windows matrix jobs, matching the main CI workflow policy. Windows failures are reported but don't block the workflow.
  • CI workflow cleanup: Removed unreachable Windows-specific code from Ubuntu-only jobs (lint, unit, stress). These jobs never run on Windows, so the conditional Windows path setup was dead code.

Fixed

  • Bundle corrupted resources.json for parameterized resources: mcp_resources_scan() now correctly skips resources with uriTemplate field. Previously, resources defining a uriTemplate (for parameterized access like file:///{path}) would get incorrectly added to resources.json with a fabricated file:// URI based on the meta.json path, corrupting the registry. These resources now only appear in resource-templates.json as intended per MCP spec.

Originalquelle(öffnet in neuem Tab)Problem melden

MCP Bash Framework von Yaniv Golan

Version 0.9.6: Neuer Helper, Validator-Update und Fehlerkorrekturen

Neuer mcp_require-Helper, überarbeiteter Release-Workflow, Validator unterstützt uriTemplate und Korrektur von fehlerhaftem JSON in Benachrichtigungen.

Added

  • mcp_require helper: New function for conditional library sourcing with duplicate-load prevention. Simplifies optional dependency loading in tools and SDK code. See lib/require.sh.

Changed

  • Release workflow: Release job now runs as part of CI workflow with needs: dependency on core test jobs. Releases are created after lint, unit, integration (Ubuntu + macOS), and compatibility tests pass. Windows integration tests run in parallel but do not block releases (failures are reported as warnings with artifacts). Previously, all three OS integration tests were required, causing Windows slowness to delay releases.
  • Internal refactoring: Consolidated error response formatting in handlers and standardized error variable naming to _ERROR_CODE/_ERROR_MESSAGE for consistency across the codebase.

Fixed

  • Malformed JSON in notifications/message: Fixed edge case where mcp_logging_emit() could emit malformed JSON ("logger":,"data":}) when the internal quote function failed silently. Added defensive validation to ensure quoted strings are never empty.
  • Validator missing uriTemplate support: mcp-bash validate now accepts uriTemplate as a valid alternative to uri for resource templates, per MCP spec. Previously, resources with only uriTemplate (no uri) failed validation with "missing required uri". The validator now:
    • Accepts either uri OR uriTemplate (not both required) …

Originalquelle(öffnet in neuem Tab)Problem melden

MCP Bash Framework von Yaniv Golan

Version 0.9.4 des MCP Bash Frameworks

Neuer statischer Registrierungsmodus und Bundle-Konfiguration für schnelleren Kaltstart in Bundle-Bereitstellungen.

Added

  • Static registry mode (MCPBASH_STATIC_REGISTRY=1): Opt-in mode for bundle deployments that skips runtime discovery and uses pre-generated .registry/*.json cache files directly. Reduces cold start time by skipping TTL checks, fastpath detection, and directory scanning. When enabled:
    • Loads pre-generated cache immediately without freshness checks
    • Skips register.sh execution (shell code) but still honors register.json (data-only declarative overrides)
    • Falls back to normal discovery if cache is missing/invalid
    • Respects CLI forced refresh (mcp-bash registry refresh still works)
    • Logs info message on first request to alert developers if static mode is accidentally left enabled
    • Cache format versioning (format_version: 1) for future compatibility
  • MCPB_STATIC bundle config: Bundles now use static registry mode by default for zero-config fast cold start. The bundler automatically:
    • Runs registry refresh to pre-generate .registry/*.json files
    • Adds .registry to MCPB_INCLUDE if not present
    • Sets MCPBASH_STATIC_REGISTRY=1 in bundle manifest environment
    • To opt out, set MCPB_STATIC=false in mcpb.conf (accepts false, 0, no, off) …

Originalquelle(öffnet in neuem Tab)Problem melden

MCP Bash Framework von Yaniv Golan

Version 0.9.2 des MCP Bash Frameworks

Neue Hilfsfunktionen für Antworten und modernisiertes Testframework mit paralleler Ausführung.

Added

  • CallToolResult response helpers: New SDK functions for building MCP CallToolResult responses with consistent {success, result} envelope patterns:
    • mcp_result_success - Emit success CallToolResult with structuredContent.success=true and isError=false
    • mcp_result_error - Emit error CallToolResult with structuredContent.success=false and isError=true
    • mcp_json_truncate - Binary-search truncation for large JSON arrays with metadata (truncated, kept, total)
    • mcp_is_valid_json - Validate single JSON value (handles false/null correctly via slurp mode)
    • mcp_byte_length - UTF-8 safe byte length measurement
  • Documentation: Added BEST-PRACTICES.md §4.7 "Building CallToolResult responses" with examples and comparison table. Added "Capturing stdout and stderr separately" pattern to §4.3 for CLI wrapper tools.
  • Tests: Unit tests (test/unit/sdk_result_helpers.bats) and integration tests (test/integration/test_result_helpers.sh) for all new helpers.

Changed

  • Test framework modernization: Unit tests now use proper bats-core syntax with @test functions (219 tests across 40 files). Migrated from custom test runner to direct bats invocation with parallel execution support (--jobs N when GNU parallel available). Bats helper libraries (bats-support, bats-assert, bats-file) installed via npm instead of vendored. CI now outputs JUnit XML for test result visualization. …

Originalquelle(öffnet in neuem Tab)Problem melden

MCP Bash Framework von Yaniv Golan

Version 0.9.1 des MCP Bash Frameworks

Verbesserte Installationsfehlercodes und behobene Darstellungsprobleme bei Farbcodes.

Added

  • Installer now uses exit code 3 for policy refusal (user declined prompt or MCPBASH_HOME is set), allowing CI/CD scripts to distinguish "user/policy declined" from actual failures (exit 1).
  • Installer help text now documents exit codes (0=success, 1=error, 2=invalid args, 3=policy refusal).
  • README now includes installer exit codes table and CI/CD installation patterns (tarball+SHA256 and git+SHA verification).

Fixed

  • Installer color escape codes now render correctly (use $'\033[...]' syntax instead of single-quoted literals).
  • Installer now prompts interactively via /dev/tty when run via curl | bash, instead of auto-confirming overwrites.
  • Installer messaging clarifies when auto-confirm is due to --yes flag vs no TTY available.
  • Installer verification error messages now include filename, expected/actual SHA values, and guidance on possible causes (corrupted download, MITM attack, version mismatch).

Originalquelle(öffnet in neuem Tab)Problem melden

MCP Bash Framework von Yaniv Golan

Version 0.9.0 des MCP Bash Frameworks

Einführung von Bundle-Paketen, Wiederholungslogik, Health-Checks und Veröffentlichungsfunktionen.

Added

  • MCPB bundle support: mcp-bash bundle creates distributable .mcpb packages for one-click installation in MCPB-compatible clients (e.g., Claude Desktop). Bundles include the embedded framework, tools, resources, prompts, and a generated manifest following MCPB specification v0.3.
  • mcp_with_retry SDK helper: Retry commands with exponential backoff + jitter for transient failures. Exit codes 0-2 are not retried (permanent); 3+ trigger retry. Example: mcp_with_retry 3 1.0 -- curl -sf "$url".
  • Health checks hook: Optional server.d/health-checks.sh verifies external dependencies (CLIs, env vars) before serving. Helpers mcp_health_check_command and mcp_health_check_env report results to mcp-bash health output as projectChecks: ok|failed.
  • Optional mcpb.conf configuration file for customizing bundle metadata (name, version, author, repository). Values fall back to server.d/server.meta.json, VERSION file, and git config.
  • Automatic icon inclusion: icon.png or icon.svg in project root is bundled for client UI display.
  • Platform-specific builds: mcp-bash bundle --platform darwin|linux|win32|all creates bundles targeting specific platforms.
  • gojq bundling: mcp-bash bundle --include-gojq embeds gojq binary for systems without jq installed.
  • Registry publishing: mcp-bash publish command submits bundles to the MCP Registry with validation, dry-run support, and API token authentication. …

Originalquelle(öffnet in neuem Tab)Problem melden