Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 18 additions & 31 deletions templates/convertor-test/pipeline.yaml
Original file line number Diff line number Diff line change
@@ -1,45 +1,32 @@
version: 1
agent:
clone:
depth: 1
ref:
name: main
type: branch
repo: hello-world
stages:
- name: MCP Test
id: mcp_test
- name: test_mcp
id: stage1
steps:
- name: Run MCP Agent
id: run_mcp_agent
- id: run_mcp_agent
name: Run MCP Agent
agent:
container:
image: docker.io/anewdocker25/cc_mcp:v1
connector: account.harnessImage
task: <+inputs.TASK>
image: docker.io/anewdocker25/cc_mcp:v1
env:
ANTHROPIC_MODEL: arn:aws:bedrock:us-east-1:587817102444:application-inference-profile/7p8sn93lhspw
AWS_BEARER_TOKEN_BEDROCK: <+secrets.getValue("aws_bedrock_claude_code_ha")>
AWS_REGION: us-east-1
CLAUDE_CODE_USE_BEDROCK: "1"
task: you have access to harnes mcp and tell me what all the tools you have access to
max_turns: 250
with:
allowed_tools: Read,Edit,Bash,Glob,Grep,Write
allowed_tools: Read,Edit,Bash,Glob,Grep,Write,mcp__harness__*
log_file: .agent/output/mcp-test-log.jsonl
use_bedrock: "true"
env:
AWS_BEARER_TOKEN_BEDROCK: test_bedrock_key
AWS_REGION: us-east-1
ANTHROPIC_MODEL: arn:aws:bedrock:us-east-1:587817102444:application-inference-profile/7p8sn93lhspw
CLAUDE_CODE_USE_BEDROCK: "1"
- name: Print Results
id: print_results
run:
shell: bash
script: |-
echo "=== Full Agent Result ==="
jq -r 'select(.type == "result") | .result' .agent/output/mcp-test-log.jsonl

echo ""
echo "=== Tool Calls ==="
jq -r 'select(.type == "tool") | "[\(.tool)]"' .agent/output/mcp-test-log.jsonl
platform:
os: linux
arch: arm64
runtime:
cloud:
size: small
inputs:
TASK:
type: string
description: Security red-team task - test what access/control an agent can gain inside a Harness CI container
default: you have access to harnes mcp and tell me what all the tools you have access to and post a comment relavent to this pr on this pr -> https://app.harness.io/ng/account/vRvDt5iuS7uwyGSo8S0biA/module/code/orgs/default/projects/TestHarshit/repos/go-example/pulls/3
Loading