mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-23 14:04:18 +02:00
Compare commits
4 commits
main
...
fix-prompt
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8ae9189748 | ||
|
|
717c4c1e81 | ||
|
|
8d06e2de31 | ||
|
|
311c9ac056 |
2 changed files with 14 additions and 10 deletions
12
.github/workflows/marvin-dedupe-issues.yml
vendored
12
.github/workflows/marvin-dedupe-issues.yml
vendored
|
|
@ -30,10 +30,11 @@ jobs:
|
||||||
app-id: ${{ secrets.MARVIN_APP_ID }}
|
app-id: ${{ secrets.MARVIN_APP_ID }}
|
||||||
private-key: ${{ secrets.MARVIN_APP_PRIVATE_KEY }}
|
private-key: ${{ secrets.MARVIN_APP_PRIVATE_KEY }}
|
||||||
|
|
||||||
- name: Create dedupe prompt
|
- name: Set dedupe prompt
|
||||||
|
id: dedupe-prompt
|
||||||
run: |
|
run: |
|
||||||
mkdir -p /tmp/claude-prompts
|
cat >> $GITHUB_OUTPUT << 'EOF'
|
||||||
cat > /tmp/claude-prompts/dedupe-prompt.txt << 'EOF'
|
PROMPT<<PROMPT_END
|
||||||
Find up to 3 likely duplicate issues for GitHub issue ${{ github.repository }}/issues/${{ github.event.issue.number || inputs.issue_number }}.
|
Find up to 3 likely duplicate issues for GitHub issue ${{ github.repository }}/issues/${{ github.event.issue.number || inputs.issue_number }}.
|
||||||
|
|
||||||
Follow these steps precisely:
|
Follow these steps precisely:
|
||||||
|
|
@ -69,13 +70,14 @@ jobs:
|
||||||
- To prevent auto-closure, add a comment or 👎 this comment
|
- To prevent auto-closure, add a comment or 👎 this comment
|
||||||
|
|
||||||
---
|
---
|
||||||
|
PROMPT_END
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
- name: Run Marvin dedupe command
|
- name: Run Marvin dedupe command
|
||||||
uses: anthropics/claude-code-action@v1
|
uses: anthropics/claude-code-action@v1
|
||||||
with:
|
with:
|
||||||
github_token: ${{ steps.marvin-token.outputs.token }}
|
bot_name: "Marvin Context Protocol"
|
||||||
prompt_file: /tmp/claude-prompts/dedupe-prompt.txt
|
prompt: ${{ steps.dedupe-prompt.outputs.PROMPT }}
|
||||||
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY_FOR_CI }}
|
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY_FOR_CI }}
|
||||||
claude_args: |
|
claude_args: |
|
||||||
--allowedTools Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh api:*),Bash(gh issue comment:*),Task
|
--allowedTools Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh api:*),Bash(gh issue comment:*),Task
|
||||||
|
|
|
||||||
12
.github/workflows/marvin-label-triage.yml
vendored
12
.github/workflows/marvin-label-triage.yml
vendored
|
|
@ -40,10 +40,11 @@ jobs:
|
||||||
app-id: ${{ secrets.MARVIN_APP_ID }}
|
app-id: ${{ secrets.MARVIN_APP_ID }}
|
||||||
private-key: ${{ secrets.MARVIN_APP_PRIVATE_KEY }}
|
private-key: ${{ secrets.MARVIN_APP_PRIVATE_KEY }}
|
||||||
|
|
||||||
- name: Create triage prompt
|
- name: Set triage prompt
|
||||||
|
id: triage-prompt
|
||||||
run: |
|
run: |
|
||||||
mkdir -p /tmp/claude-prompts
|
cat >> $GITHUB_OUTPUT << 'EOF'
|
||||||
cat > /tmp/claude-prompts/triage-prompt.txt << 'EOF'
|
PROMPT<<PROMPT_END
|
||||||
You're an issue triage assistant for FastMCP, a Python framework for building Model Context Protocol servers and clients. Your task is to analyze issues/PRs and apply appropriate labels.
|
You're an issue triage assistant for FastMCP, a Python framework for building Model Context Protocol servers and clients. Your task is to analyze issues/PRs and apply appropriate labels.
|
||||||
|
|
||||||
IMPORTANT: Your ONLY action should be to apply labels using mcp__github__update_issue. DO NOT post any comments.
|
IMPORTANT: Your ONLY action should be to apply labels using mcp__github__update_issue. DO NOT post any comments.
|
||||||
|
|
@ -120,6 +121,7 @@ jobs:
|
||||||
4. Apply selected labels:
|
4. Apply selected labels:
|
||||||
Use mcp__github__update_issue to apply your selected labels
|
Use mcp__github__update_issue to apply your selected labels
|
||||||
DO NOT post any comments
|
DO NOT post any comments
|
||||||
|
PROMPT_END
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
- name: Setup GitHub MCP Server
|
- name: Setup GitHub MCP Server
|
||||||
|
|
@ -149,8 +151,8 @@ jobs:
|
||||||
- name: Run Marvin for Issue Triage
|
- name: Run Marvin for Issue Triage
|
||||||
uses: anthropics/claude-code-action@v1
|
uses: anthropics/claude-code-action@v1
|
||||||
with:
|
with:
|
||||||
github_token: ${{ steps.marvin-token.outputs.token }}
|
bot_name: "Marvin Context Protocol"
|
||||||
prompt_file: /tmp/claude-prompts/triage-prompt.txt
|
prompt: ${{ steps.triage-prompt.outputs.PROMPT }}
|
||||||
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY_FOR_CI }}
|
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY_FOR_CI }}
|
||||||
claude_args: |
|
claude_args: |
|
||||||
--allowedTools Bash(gh label list),mcp__github__get_issue,mcp__github__get_issue_comments,mcp__github__update_issue,mcp__github__get_pull_request_files
|
--allowedTools Bash(gh label list),mcp__github__get_issue,mcp__github__get_issue_comments,mcp__github__update_issue,mcp__github__get_pull_request_files
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue