WhoBuilt

Real world MCPs in GitHub Copilot Agent Mode

Jul 19, 2025· 14 min· 5.2K views·Watch on YouTube

Speaker

Jon Peck of Microsoft explains how MCP servers extend GitHub Copilot Agent Mode, speaking at AI Engineer.

From suggestions to agent tasks

Peck describes Copilot’s progression from code completion to chat and then Agent Mode. Agent Mode can work through a larger task, such as building an app or refactoring a codebase, while the developer guides its work and approves terminal actions.

Build from a detailed README

Peck starts with a README that lays out the project, setup, environment variables, schema, endpoints, and possibly workflow diagrams. He gives that to Copilot in Agent Mode and asks it to implement the plan; his example produced a basic working app in about eight minutes.

Connect Copilot to a database with MCP

Peck describes MCP as an open protocol for connecting AI models to external data and services. In VS Code, he installs a PostgreSQL MCP server, configures its connection string, and asks Copilot to create a mock JSON file from database data for tests. The server is read-only, and Copilot asks permission before connecting.

Use GitHub MCP to open a pull request

Peck shows how a GitHub MCP server, configured with a personal access token, can carry out repository tasks. He asks Copilot to create a branch and pull request after making changes. He recommends adding a changelog instruction in `.github/copilot-instructions.md` so the agent records its work.

Agent work can run from GitHub issues

In response to an audience question, Peck says the relationship between local Agent Mode and GitHub’s issue-assigned coding agent is still evolving. Assigning an issue to Copilot can start background work that produces a pull request, and MCP settings can also be configured in repository settings.

Takeaways

  • Give an agent a detailed README with setup, schema, endpoints, and workflow requirements.
  • Name the MCP server explicitly when you want Copilot to use it.
  • Use read-only database access when an agent only needs data for test fixtures.
  • Require approval for terminal and MCP connections so you can review external actions.
  • Add a changelog instruction to make an agent’s work easier to inspect.

Mentioned in this talk

Search inside this talk

What was claimed 8

  • feature
    Microsoft Copilot: Provides code completion, chat, and agent capabilities
    “We moved on from that into chat”
    YouTube
    Unverified1 source· Talk
  • feature
    GitHub Copilot Agent mode: Can complete multi-step development tasks and interact with terminal responses
    “Agent Mode is really all about doing a complete task”
    YouTube
    Unverified1 source· Talk
  • feature
    MCP: Lets LLMs talk to external data sources and references
    “It allows LLMs to talk to external data sources”
    YouTube
    Unverified1 source· Talk
  • integrates with
    VS Code integrates with MCP
    “My IDE, in this case VS Code, has configured in it which MCPs I want to actually use.”
    YouTube
    Unverified1 source· Talk
  • integrates with
    “I'm using a local, unauthenticated PostgreSQL database.”
    YouTube
    Unverified1 source· Talk
  • feature
    PostgreSQL MCP server: Operates in read-only mode
    “This particular Postgres MCP works only in read-only mode”
    YouTube
    Unverified1 source· Talk
  • feature
    Figma MCP server: Can create a branch and pull request
    “use the GitHub MCP to commit these changes to a new branch and make a PR”
    YouTube
    Unverified1 source· Talk
  • feature
    coding agents: Can be assigned a GitHub issue and work in the background toward a pull request
    “Copilot takes off and does a lot of the agent work we just saw, but in the background.”
    YouTube
    Unverified1 source· Talk

Related talks