From e74026b6872eb7887b9858bebfdfc2de62b84c32 Mon Sep 17 00:00:00 2001 From: William Easton Date: Wed, 1 Oct 2025 13:25:56 -0500 Subject: [PATCH 1/5] Fix MCP --- .github/workflows/marvin-issue-triage.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/marvin-issue-triage.yml b/.github/workflows/marvin-issue-triage.yml index d1fa4e175..67714d6c0 100644 --- a/.github/workflows/marvin-issue-triage.yml +++ b/.github/workflows/marvin-issue-triage.yml @@ -1,4 +1,4 @@ -name: The Martian Issue Triage +name: Martian Issue Triage on: issues: @@ -109,6 +109,7 @@ jobs: "url": "https://github-code-search.fastmcp.app/mcp" }, "github-research": { + "type": "stdio", "command": "uvx", "args": [ "github-research-mcp" From 521d4b8f41417d9ca1e5a3e72c1ebb3248a37603 Mon Sep 17 00:00:00 2001 From: William Easton Date: Wed, 1 Oct 2025 13:29:42 -0500 Subject: [PATCH 2/5] Fix truthiness --- .github/workflows/marvin-issue-triage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/marvin-issue-triage.yml b/.github/workflows/marvin-issue-triage.yml index 67714d6c0..b46ab2340 100644 --- a/.github/workflows/marvin-issue-triage.yml +++ b/.github/workflows/marvin-issue-triage.yml @@ -115,7 +115,7 @@ jobs: "github-research-mcp" ], "env": { - "DISABLE_SUMMARIES": true, + "DISABLE_SUMMARIES": "true", "GITHUB_PERSONAL_ACCESS_TOKEN": "${{ steps.marvin-token.outputs.token }}" } } From 3e31aabd0634b083b35a913b57d31f3889e6fc28 Mon Sep 17 00:00:00 2001 From: William Easton Date: Thu, 2 Oct 2025 09:24:37 -0500 Subject: [PATCH 3/5] install uv --- .github/workflows/marvin-issue-triage.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/marvin-issue-triage.yml b/.github/workflows/marvin-issue-triage.yml index b46ab2340..2969eb5cc 100644 --- a/.github/workflows/marvin-issue-triage.yml +++ b/.github/workflows/marvin-issue-triage.yml @@ -32,6 +32,13 @@ jobs: repository: ${{ github.repository }} ref: ${{ github.event.repository.default_branch }} + # Install UV package manager + - name: Install UV + uses: astral-sh/setup-uv@v6 + with: + enable-cache: true + cache-dependency-glob: "uv.lock" + - name: Generate Marvin App token id: marvin-token uses: actions/create-github-app-token@v2 From e4bf2cfd7553fbd4f27d1077be5492fda5700d71 Mon Sep 17 00:00:00 2001 From: William Easton Date: Thu, 2 Oct 2025 11:17:56 -0500 Subject: [PATCH 4/5] Add progress tracking, remove websearch for now --- .github/workflows/marvin-issue-triage.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/marvin-issue-triage.yml b/.github/workflows/marvin-issue-triage.yml index 2969eb5cc..e6a4b9e3b 100644 --- a/.github/workflows/marvin-issue-triage.yml +++ b/.github/workflows/marvin-issue-triage.yml @@ -137,9 +137,10 @@ jobs: bot_name: "Marvin Context Protocol" prompt: ${{ steps.triage-prompt.outputs.PROMPT }} anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY_FOR_CI }} + track_progress: true claude_args: | --model claude-sonnet-4-5-20250929 - --allowedTools WebSearch,WebFetch,mcp__repository-summary,mcp__code-search,mcp__github-research + --allowedTools mcp__repository-summary,mcp__code-search__search_code,mcp__github-research__get_repository,mcp__github-research__get_issue,mcp__github-research__get_pull_request,mcp__github-research__search_issues,mcp__github-research__search_pull_requests,mcp__github-research__get_files, --mcp-config /tmp/mcp-config/mcp-servers.json settings: | { From acf2ed4628ed646ca0bb716dd6fd916630661691 Mon Sep 17 00:00:00 2001 From: William Easton Date: Thu, 2 Oct 2025 12:30:59 -0500 Subject: [PATCH 5/5] Change trigger criteria --- .github/workflows/marvin-issue-triage.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/marvin-issue-triage.yml b/.github/workflows/marvin-issue-triage.yml index e6a4b9e3b..bd3f46b24 100644 --- a/.github/workflows/marvin-issue-triage.yml +++ b/.github/workflows/marvin-issue-triage.yml @@ -2,21 +2,17 @@ name: Martian Issue Triage on: issues: - types: [opened] - workflow_dispatch: - inputs: - issue_number: - description: "Issue to triage" - required: true - type: string + types: [opened, labeled] concurrency: - group: triage-issue-${{ github.event.issue.number || inputs.issue_number }} + group: triage-martian-${{ github.event.issue.number }} cancel-in-progress: true jobs: - marvin-issue-triage: - if: github.actor == 'strawgate' + martian-issue-triage: + if: | + (github.event.action == 'opened' && github.actor == 'strawgate') || + (github.event.action == 'labeled' && github.event.label.name == 'triage-martian') runs-on: ubuntu-latest timeout-minutes: 10 permissions: @@ -57,7 +53,7 @@ jobs: # Lay of the land 1. Call the generate_agents_md tool to get a high-level summary of the project you're working in - 2. Get the issue ${{ github.event.issue.number || inputs.issue_number }} in the GitHub repository: ${{ github.repository }}. + 2. Get the issue ${{ github.event.issue.number }} in the GitHub repository: ${{ github.repository }}. 3. Use the issue and pull request search tools to scour the repository for related issues and pull requests 3. Call the code-search, get_files, etc. tools to search the repository to identify the related classes, methods, tests, etc that are relevant to the issue. @@ -130,7 +126,7 @@ jobs: } EOF - - name: Run Marvin for Issue Triage + - name: Run Martian for Issue Triage uses: anthropics/claude-code-action@v1 with: github_token: ${{ steps.marvin-token.outputs.token }}