From 24d4e5a91b011c8add4e210f87263955c0e7d9fb Mon Sep 17 00:00:00 2001 From: minhthanhdang <150941282+minhthanhdang@users.noreply.github.com> Date: Mon, 14 Sep 2026 11:47:31 +1000 Subject: [PATCH 1/2] ci: validate the Claude plugin on pull requests and main Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01ASm4dwg1vsKZ2jaecPi1zi --- .github/workflows/validate-claude-plugin.yml | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/validate-claude-plugin.yml diff --git a/.github/workflows/validate-claude-plugin.yml b/.github/workflows/validate-claude-plugin.yml new file mode 100644 index 0000000..080a69b --- /dev/null +++ b/.github/workflows/validate-claude-plugin.yml @@ -0,0 +1,24 @@ +name: Validate Claude plugin + +on: + pull_request: + paths: + - 'claude/**' + - '.github/workflows/validate-claude-plugin.yml' + push: + branches: [main] + paths: + - 'claude/**' + - '.github/workflows/validate-claude-plugin.yml' + +jobs: + validate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + - run: npm install -g @anthropic-ai/claude-code + - run: claude plugin validate --strict claude + - run: claude plugin validate --strict claude/.claude-plugin/plugin.json From 3efa199f3144f156f395805e4ba884cced3ddb8b Mon Sep 17 00:00:00 2001 From: minhthanhdang <150941282+minhthanhdang@users.noreply.github.com> Date: Mon, 14 Sep 2026 11:50:48 +1000 Subject: [PATCH 2/2] ci: run on every PR and check the MCP config Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01ASm4dwg1vsKZ2jaecPi1zi --- .github/workflows/validate-claude-plugin.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/validate-claude-plugin.yml b/.github/workflows/validate-claude-plugin.yml index 080a69b..11e63e4 100644 --- a/.github/workflows/validate-claude-plugin.yml +++ b/.github/workflows/validate-claude-plugin.yml @@ -2,18 +2,15 @@ name: Validate Claude plugin on: pull_request: - paths: - - 'claude/**' - - '.github/workflows/validate-claude-plugin.yml' push: branches: [main] - paths: - - 'claude/**' - - '.github/workflows/validate-claude-plugin.yml' jobs: validate: runs-on: ubuntu-latest + env: + DISABLE_AUTOUPDATER: 1 + DISABLE_TELEMETRY: 1 steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -22,3 +19,4 @@ jobs: - run: npm install -g @anthropic-ai/claude-code - run: claude plugin validate --strict claude - run: claude plugin validate --strict claude/.claude-plugin/plugin.json + - run: jq -e '.mcpServers | to_entries | length > 0 and all(.value.type == "http" and (.value.url | startswith("https://")))' claude/.mcp.json