From ef38de3146cbe46e72a0856f2dbd07a62962a763 Mon Sep 17 00:00:00 2001 From: Ali Hashemi Date: Wed, 30 Apr 2025 19:42:48 -0300 Subject: [PATCH 1/2] fix: support logging option --- README.md | 1 + action.yml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 069fbf5..ab4c354 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ The action downloads the latest version of the CLI binary by default, but you ca | `template` | Built-in template for output (`md`, `md-plain`, `html`, `txt`). | No | - | | `template-file` | Path to a custom Handlebars template file in the repository. | No | - | | `template-string` | Custom Handlebars template content as a string. | No | - | +| `log-level` | Specifies the logging level for the CLI | No | `info` | | `token` | Optional GitHub token with content write permission. | No | `${{ github.token }}` | | `version` | Version of the `mcp-discovery` CLI to use (e.g., `v0.1.2`). Use `latest` for the latest release. | No | `latest` | diff --git a/action.yml b/action.yml index bdd8707..27ca726 100644 --- a/action.yml +++ b/action.yml @@ -26,6 +26,10 @@ inputs: template-string: description: "Custom Handlebars template content as a string" required: false + log-level: + description: "Specifies the logging level for the CLI (default: info)" + default: "info" + required: false version: description: "CLI version (e.g., latest or v0.1.2)" required: true @@ -57,6 +61,7 @@ runs: TEMPLATE: ${{ inputs.template }} TEMPLATE_FILE: ${{ inputs.template-file }} TEMPLATE_STRING: ${{ inputs.template-string }} + LOG_LEVEL: ${{ inputs.log-level }} run: | # Build CLI arguments ARGS="" @@ -64,6 +69,7 @@ runs: [ -n "$TEMPLATE" ] && ARGS="$ARGS --template \"$TEMPLATE\"" [ -n "$TEMPLATE_FILE" ] && ARGS="$ARGS --template-file \"$GITHUB_WORKSPACE/$TEMPLATE_FILE\"" [ -n "$TEMPLATE_STRING" ] && ARGS="$ARGS --template-string \"$TEMPLATE_STRING\"" + [ -n "$LOG_LEVEL" ] && ARGS="$ARGS --log-level \"$LOG_LEVEL\"" # Run CLI echo "Running: mcp-discovery $CLI_COMMAND $ARGS -- $MCP_LAUNCH_COMMAND" eval "mcp-discovery $CLI_COMMAND $ARGS -- $MCP_LAUNCH_COMMAND" From 63f47f19bf78d6a87163b7e03aee702382e347bd Mon Sep 17 00:00:00 2001 From: Ali Hashemi <14126952+hashemix@users.noreply.github.com> Date: Wed, 30 Apr 2025 19:44:12 -0300 Subject: [PATCH 2/2] chore(main): release 1.0.3 --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 84e4619..29f6156 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.0.3](https://github.com/rust-mcp-stack/mcp-discovery-action/compare/v1.0.2...v1.0.3) (2025-04-30) + + +### Bug Fixes + +* support logging option ([1ad2c42](https://github.com/rust-mcp-stack/mcp-discovery-action/commit/1ad2c4233de31a46717c726c2978fbcc270f5eef)) +* support logging option ([ef38de3](https://github.com/rust-mcp-stack/mcp-discovery-action/commit/ef38de3146cbe46e72a0856f2dbd07a62962a763)) + ## [1.0.2](https://github.com/rust-mcp-stack/mcp-discovery-action/compare/v1.0.1...v1.0.2) (2025-04-28)