Give Your Agent More Tools with MCP

August 19, 2026 · View on GitHub

MCP servers turn your agent from a text generator into an active participant that can read, fetch, and act.

:dart: What You'll Do

You'll add an MCP (Model Context Protocol) server to your workflow's frontmatter, giving the AI agent access to a new set of tools it can call at runtime. By the end, your daily-status workflow will be able to do more than just generate text — it can interact with live data sources using structured tool calls.

:clipboard: Before You Start

Steps

Understand what MCP adds

MCP (Model Context Protocol) connects external tool servers to the agent so it can call structured operations — like listing issues or fetching commits — and weave the live results into its output. Without MCP, the agent only knows what you wrote in the brief; with MCP, it can go out and look things up itself.

Tip

Optional Side Quests:

Add an MCP server to your workflow

In the terminal that is already open in your Codespace, run:

gh copilot

In Copilot CLI, send this prompt:

/agentic-workflows update .github/workflows/daily-status.md to add a `tools:` block
with `github: mode: gh-proxy, toolsets: [default]` to the frontmatter, and update
the task brief to tell the agent to use GitHub tools to fetch the last 5 commits and
all open issues labelled `bug`, then write a daily summary and post it as a new issue.

The skill adds the tools: block and updates the brief. Review the diff before committing.

Here is the tools: block the skill will add:

---
name: Daily Status Report
on:
  workflow_dispatch: {}
  schedule: daily on weekdays
permissions:
  contents: read
tools:
  github:
    mode: gh-proxy
    toolsets: [default]
---
:desktop_computer: Terminal path

Open your daily-status workflow file (.github/workflows/daily-status.md) and find the YAML frontmatter at the top. Add a tools block with the content shown above, then run gh aw compile.

Note

The github tool entry tells gh-aw to start the GitHub MCP server in proxy mode. The agent can then call GitHub tools — listing issues, fetching commits, reading file contents — scoped to the permissions you've declared above.

Note

Enterprise users (GHEC, GHES, EMU): confirm MCP proxy availability before continuing.

mode: gh-proxy routes all GitHub tool calls through the GITHUB_TOKEN that Actions provides automatically — no extra credentials or setup needed on github.com or GHEC.

On GHES, the GitHub MCP server is supported from GHES 3.16+. If your instance is older, the tools: block will compile without errors but the agent's tool calls will fail at runtime. Verify your GHES version and confirm with your admin that the Copilot MCP proxy feature is enabled for your organization.

If MCP is unavailable in your environment, the Connect a Live Data Source step covers an alternative approach using deterministic shell steps that only require GITHUB_TOKEN and the gh CLI — no MCP server needed.

Reference the tools in your task brief

Below the frontmatter, update the task brief to tell the agent it can use the MCP tools:

You have access to GitHub tools via MCP. Use them to:
1. Fetch the last 5 commits on the default branch.
2. List all open issues labelled `bug`.
3. Write a concise daily summary combining both.
Post the summary as a new issue titled "Daily Status — {today's date}".

The agent will read this brief, decide which MCP tool calls to make, and weave the results into its final output — all without you scripting each API call manually.

Push and trigger a run

The /agentic-workflows skill recompiles the lock file automatically. Commit both files and push:

git add .
git commit -m "feat: add MCP tools to daily status workflow"
git push

Watch the agent reason

Open the run log in Actions. You'll see the agent interleaving tool calls with its reasoning — it fetches data, processes it, then produces the summary. That's the agentic loop in action.

:white_check_mark: Checkpoint

  • Your frontmatter has a tools: block with github: mode: gh-proxy
  • Your task brief mentions what the agent should do with the tools
  • The source and compiled workflow files are committed and pushed
  • A manual run completes and the log shows at least one MCP tool call
  • The workflow output reflects live data retrieved via MCP, not just static text

Next: Share and Reuse Your Agentic Workflows