Skip to content

Commit 363de7c

Browse files
committed
Make mcp-gateway optional
Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
1 parent 703db35 commit 363de7c

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.github/workflows/test-github-agent.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ jobs:
1212
with:
1313
agent: agentcatalog/github
1414
prompt: "Who is jeanlaurent on github?"
15+
mcp-gateway: true
1516
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
6868
agent: jeanlaurent/pr-reviewer
6969
prompt: "Review this PR"
7070
cagent-version: v1.6.6
71+
mcp-gateway: true # Set to true to install mcp-gateway
7172
mcp-gateway-version: v0.20.0
7273
yolo: false # Require manual approval
7374
tui: true # Enable terminal UI
@@ -84,6 +85,7 @@ jobs:
8485
| `agent` | Agent identifier (e.g., `jeanlaurent/pr-reviewer`) or path to `.yaml` file | Yes | - |
8586
| `prompt` | Prompt to pass to the agent | No | - |
8687
| `cagent-version` | Version of cagent to use | No | `v1.6.6` |
88+
| `mcp-gateway` | Install mcp-gateway (`true`/`false`) | No | `false` |
8789
| `mcp-gateway-version` | Version of mcp-gateway to use | No | `v0.20.0` |
8890
| `anthropic-api-key` | Anthropic API key | No | `$ANTHROPIC_API_KEY` env var |
8991
| `openai-api-key` | OpenAI API key | No | `$OPENAI_API_KEY` env var |

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ inputs:
1616
description: 'Version of cagent to use'
1717
required: false
1818
default: 'v1.6.6'
19+
mcp-gateway:
20+
description: 'Install mcp-gateway (true/false)'
21+
required: false
22+
default: 'false'
1923
mcp-gateway-version:
2024
description: 'Version of mcp-gateway to use'
2125
required: false
@@ -67,6 +71,7 @@ runs:
6771
./cagent version
6872
6973
- name: Download mcp-gateway binary
74+
if: ${{ inputs.mcp-gateway == 'true' }}
7075
shell: bash
7176
run: |
7277
echo "Downloading mcp-gateway ${{ inputs.mcp-gateway-version }}..."

0 commit comments

Comments
 (0)