Copilot Automations can call tools from MCP servers configured in a repository's settings, and run on a schedule, on GitHub events or from a REST API call. Add a monitoring MCP server with an API key header, allow only its read tools, and a daily automation can read open issues and open a fix pull request you review.
GitHub shipped this on October 28, 2026, along with API triggers and AI credit limits.1 Below: what is confirmed in GitHub's own docs, the one catch (OAuth), and a setup with Fixter (fixter.dev), the monitoring tool we build, step by step. Everything was checked against GitHub's docs on October 29, 2026.
Can Copilot Automations use a remote MCP server?
Yes, if the server accepts a key or token in a header; remote servers that sign in with OAuth are not supported there yet.5 An automation is a saved prompt with triggers and tools. Each run starts a Copilot cloud agent session in the repository, and the tools you picked decide what it can do, such as opening a pull request or labelling an issue.3 The October 28 update added tools from MCP servers, 20 more GitHub tools, 24 more GitHub event triggers, a trigger from the REST API, chaining one automation to another, and AI credit limits.1 If MCP is new to you, start with what an MCP server is.
The MCP servers an automation can use are the ones a repository admin adds under the repository's Copilot settings, shared with the cloud agent and Copilot code review.5 The catch is sign-in. For servers configured there, GitHub says the cloud agent does not currently support remote servers that use OAuth.5 Hosted monitoring servers often sign you in that way; Sentry's, for one, uses OAuth only.12 What works is a remote server that accepts a key in a header, or a local server started with a token. There are three ways to get production errors into an automation today:
| Route | How you add it | Sign-in | Where it works | For a daily fix job |
|---|---|---|---|---|
| GitHub-verified connector (Sentry, Grafana Cloud and 24 others) | Connect once on the Copilot customization page | Sign in and approve; GitHub handles it | Copilot app, CLI, VS Code and cloud sandbox sessions; not yet in sessions that run on GitHub Actions | The changelog says Copilot app automations can use connectors on a schedule |
| Remote server in repo MCP settings, key in a header (Fixter) | JSON in Settings, Copilot, MCP servers | API key from an Agents secret | Cloud agent, automations, code review | Yes, the documented path |
| Local server in repo MCP settings (Sentry's npx server) | JSON with a command and args | Access token from an Agents secret | Cloud agent, automations, code review | Yes, GitHub's own Sentry example |
| Remote server that signs in with OAuth only | JSON in repo MCP settings | OAuth | Not supported there today | No |
From GitHub's docs and changelog on October 29, 2026.2,5,9,10 Connectors are in public preview.
How to set up a daily fix automation
Fixter finds and fixes the issues in your app in production, from your coding agent: errors, failing infrastructure, slow requests and downtime. It finds the root cause and fixes it: in your agent over MCP, or as a pull request ready for your review. Nothing to learn, built for small teams.
Its MCP server at https://mcp.fixter.dev signs people in with OAuth, and takes an API key in an Authorization header for agents with no browser, which is what an automation is.13 So it fits the second row of the table. You need a private or internal repository with Copilot cloud agent enabled, on Copilot Pro, Pro+, Max, Business or Enterprise.3
The steps below follow GitHub's documentation for MCP servers in Copilot cloud agent and Fixter's documentation for API key access.613
- Create a Fixter API key. In the Fixter app, open Settings, API keys and create one labelled for this automation. The value is shown once. Keys do not expire on their own, so give this automation its own key and revoke it if you stop using it.13
- Store it as an Agents secret. In the GitHub repository, open Settings, then Secrets and variables under Security, then Agents, and add a secret. Only names that start with
COPILOT_MCP_reach your MCP configuration.6 Put the whole header value in the secret, Bearer prefix included, so the config below only references it: - Add the MCP server. In Settings, under "Code, planning, and automation", click Copilot, then MCP servers, paste this into MCP configuration and save.5 The
toolskey is required, and Copilot calls these tools without asking first, so list only read tools.5,14 - Create the automation. On the repository, open the Agents tab, then Automations, then Create automation, and choose Create manually.4 Name it, pick Personal or Shared (you cannot change it later), set the trigger to a daily schedule, and paste a prompt like the one below. Under tools, select the Fixter tools and the GitHub tools for pushing changes and creating a pull request. Set AI credit limits while you are there.4
- Run it once by hand and review the pull request. Trigger the automation manually instead of waiting for the schedule. GitHub Actions workflows do not run on a pull request an automation opens until someone with write access approves them, and a personal automation's pull request cannot be approved by the person who created it.3
The tool names come from Fixter's MCP tools reference: list_issues filters by status, environment and service and sorts by how many callers an issue hit; get_issue returns the stack frames, trace id and, when an investigation has run, Fixter's root-cause analysis.14 AI investigations are on the paid plans; on the Free plan the automation works from the issue, its frames, traces and logs.15 For the same loop run by hand from Claude Code, see how to debug a production error with Claude Code.
You may not need Copilot for the pull request at all. Fixter can open one itself: its fix_issue tool hands an issue with a code-verified root cause to Fixter's fix agent, which opens a pull request ready for your review on your repository. That route is in beta, and it never merges.13,14
Start it from an alert instead
Every automation can also be started through the REST API, with extra context passed into the prompt.3 The endpoint is in public preview: a POST to the automation's tasks, with event set to manual and up to 10,000 characters of context. The token needs the Agents tasks repository permission (write), and the answer is a 202 with a task id. A 409 means the automation hit its usage limit for the period.7
GitHub's examples are fixing new Sentry issues and investigating PagerDuty incidents, with your own webhook handler in the middle.1 Be clear about what that means with Fixter: its alerts go out by email or Slack, and it does not call webhooks, so starting a run from an alert takes a small handler you write and host. For most small teams an hourly or daily schedule does the same job with nothing to run. Schedules are hourly, daily or weekly.3
What a run costs, and how to cap it
- Two meters. Each run uses AI credits and GitHub Actions minutes. Actions minutes are billed to the repository owner.3 One AI credit is $0.01, converted from the model's per-token price.8
- Who pays for credits. A personal automation bills the person who created it. A shared one bills the organization that owns the repository, or the owner's Copilot subscription for a personal account.3
- Limits. All optional: per run (the minimum is 30 AI credits, and the run stops when it hits the limit), daily, weekly and monthly. The period limits block new runs and reset at 00:00 UTC; they do not stop a run already going.4 An automation with no limits runs as before.1
- The monitoring side. Querying Fixter over MCP is free on every plan, and the Free plan is 10 GB of telemetry a month. Paid from €20 a month.15
Where Sentry fits
Sentry shows up three times in this release. It is one of 26 GitHub-verified connectors, and the only error tracker on that list; Grafana Cloud is there too, for logs and metrics.9,10 GitHub names fixing new Sentry issues as an API trigger example.1 And the repository MCP docs use Sentry as their first example: Sentry's local MCP server started with npx, with an access token from a COPILOT_MCP_ secret.5 That is the local-server row of the table, because Sentry's hosted server at mcp.sentry.dev signs in with OAuth only.12
Connectors are a separate path. You connect once on the Copilot customization page, and GitHub's docs say connectors work locally and in cloud sandbox sessions but not yet in sessions that run on GitHub Actions.10 If you are already on Sentry, either route works; pick the one that runs where your automation runs. If you have no monitoring yet, the comparison in monitoring MCP servers compared covers what each tool's server can read.
Four things to check before you turn it on
- Tools run without approval. Once a server is configured, Copilot uses its tools on its own.5 Allow read tools only. Fixter's tools that change something (alert rules, issue status) act immediately with the key's permissions, so leave them out.13
- MCP tools reach past the repository. GitHub tools stay inside the one repository; MCP tools reach whatever the server and its key allow.3 The repository firewall also does not apply to MCP server processes.11
- Production data is untrusted input. Error messages and log lines can carry text your users typed. Tell the automation to treat them as data, keep the pull request as the only thing it can create, and review it like any other. Automations ignore GitHub events from people without write access by default, for the same reason.3
- Sessions are visible. Run sessions, prompts and logs are visible to everyone with read access to the repository, even for personal automations.3 Keep secrets out of the prompt; they belong in Agents secrets.
Key takeaways
- Copilot Automations can use tools from MCP servers set up in the repository's Copilot settings
- Remote servers that sign in with OAuth are not supported there yet; use a key in a header or a local server with a token
- Triggers: hourly, daily or weekly schedules, GitHub events, other automations, and the REST API
- Runs use AI credits ($0.01 each) and Actions minutes; cap them per run, day, week or month
- Allow read tools only, and review every pull request the automation opens
Frequently asked questions
Can Copilot Automations use MCP servers?
Yes, since GitHub's October 28, 2026 update. A repository admin adds the server in the repository's Copilot MCP settings, and when you create or edit an automation you pick which of that server's tools it may use. An automation can only call the MCP tools you selected.
Do remote MCP servers with OAuth work in Copilot Automations?
Not today. GitHub's docs say the cloud agent, which runs automations, does not support remote MCP servers that use OAuth when they are configured in repository settings. Remote servers work when they accept a key or token in a header, which you store as an Agents secret whose name starts with COPILOT_MCP_.
What can trigger a Copilot automation?
A schedule (hourly, daily or weekly), GitHub events such as an issue or pull request being opened, the result of another automation, or a call to the REST API. The October 28 update added 24 more GitHub events and the API trigger, which takes up to 10,000 characters of extra context for the prompt.
How much does a Copilot automation cost?
Each run starts a Copilot cloud agent session that uses AI credits and GitHub Actions minutes. One AI credit is $0.01. You can cap credits per run (at least 30), per day, per week and per month. Personal automations bill the person who created them; shared ones bill the repository owner.
Can a Copilot automation fix new Sentry issues?
GitHub names fixing new Sentry issues as an example for the API trigger, and Sentry is a GitHub-verified connector. In repository MCP settings, GitHub's documented Sentry example runs Sentry's local MCP server with an access token, because Sentry's hosted server signs in with OAuth only.
Do Copilot Automations work in public repositories?
No. GitHub's docs say the repository must be private or internal, Copilot cloud agent must be enabled for it, and the plan must be Copilot Pro, Pro+, Max, Business or Enterprise.
Sources (15), all checked October 29, 2026
- GitHub changelog, New tools, triggers and cost controls for Copilot Automations (October 28, 2026)
- GitHub changelog, Connect your tools to Copilot without all the setup (October 28, 2026)
- GitHub docs, About automations (triggers, tools, billing, limits, security)
- GitHub docs, Creating automations (form fields, AI credit limits)
- GitHub docs, Configure MCP servers for your repository (JSON keys, OAuth limit, Sentry example)
- GitHub docs, Configure secrets and variables for Copilot cloud agent
- GitHub REST API docs, Agent automations (Run an automation, public preview)
- GitHub docs, Models and pricing for GitHub Copilot (1 AI credit = $0.01)
- GitHub docs, Supported Copilot connectors (the 26 services)
- GitHub docs, Copilot connectors (public preview, where they work)
- GitHub docs, Customizing or disabling the firewall for Copilot (MCP servers)
- Sentry MCP (hosted endpoint, OAuth only)
- Fixter docs, MCP server (endpoint, API key for headless agents)
- Fixter docs, MCP tools reference
- Fixter pricing