Skip to content

Commit 013a7e4

Browse files
committed
fix: use natural language for issue retrieval in flock-action
Replace hardcoded `get_issue` MCP tool name with natural language instructions and ${{ }} template expressions. The agent maps natural language to available tools automatically — explicit tool names may not match registered names, causing fetch failures.
1 parent 9c4fd15 commit 013a7e4

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/flock-action.lock.yml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/flock-action.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,9 @@ have this label, skip it entirely.
5252

5353
## Retrieving the Issue
5454

55-
Fetch the triggering issue using the **github** MCP server's `get_issue` tool.
56-
Use the repository owner, repo name, and issue number from the github-context
57-
provided in the system prompt.
58-
59-
If the MCP call fails, fall back to reading the event payload directly:
60-
```bash
61-
cat $GITHUB_EVENT_PATH | jq '.issue'
62-
```
55+
Read the details of issue #${{ github.event.issue.number }} in
56+
${{ github.repository }}. Extract the issue title, body, and labels from the
57+
response.
6358

6459
## Parsing the Issue
6560

0 commit comments

Comments
 (0)