copilot-cloud-agent-mcp
Enables Claude or any MCP client to drive the GitHub Copilot cloud agent via its REST API, allowing it to research, edit, and open pull requests on repositories without manual intervention.
README
copilot-cloud-agent-mcp
MCP server that lets Claude (or any MCP client) drive the GitHub Copilot cloud agent via its REST API. You give it a prompt and a repo, it spins up a Copilot session in the cloud that researches, edits, and (optionally) opens a pull request — all without you touching github.com.
Built against the public-preview agent-tasks API (version 2026-03-10).
What it can do
| Tool | Endpoint | Purpose |
|---|---|---|
create_task |
POST /agents/repos/{owner}/{repo}/tasks |
Kick off a new cloud-agent task |
list_tasks |
GET /agents/[repos/.../]tasks |
List tasks (repo-scoped or global) |
get_task |
GET /agents/[repos/.../]tasks/{task_id} |
Fetch one task + its sessions |
wait_for_task |
(polls get_task) |
Block until task hits a terminal state |
list_known_models |
— | Show model strings accepted by the API |
get_org_permissions |
GET /orgs/{org}/copilot/coding-agent/permissions |
Read org cloud-agent setting |
set_org_permissions |
PUT …/permissions |
Set all | selected | none |
list_org_enabled_repos |
GET …/permissions/repositories |
List repos with access |
set_org_selected_repos |
PUT …/permissions/repositories |
Replace selected-repos list |
enable_repo_for_org |
PUT …/permissions/repositories/{id} |
Add one repo |
disable_repo_for_org |
DELETE …/permissions/repositories/{id} |
Remove one repo |
Auth
The agent-tasks endpoints require a user-to-server token:
- classic personal access token,
- fine-grained PAT with Agent tasks: read & write repo permission, or
- OAuth user token.
GitHub App installation tokens are not accepted.
Token resolution order at runtime:
GITHUB_TOKENenv varGH_TOKENenv vargh auth token(from theghCLI)
Org-permission endpoints additionally need admin:org scope.
Install (Claude Code)
One command — uvx fetches the latest commit from GitHub on every launch:
claude mcp add copilot-cloud-agent --scope user -- \
uvx --from git+https://github.com/fvegiard/copilot-cloud-agent-mcp.git \
copilot-cloud-agent-mcp
Verify:
claude mcp list | grep copilot-cloud-agent
# → copilot-cloud-agent: uvx --from git+… - ✓ Connected
Install (Claude Desktop, Cursor, etc.)
Add to your client's mcpServers config:
{
"mcpServers": {
"copilot-cloud-agent": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/fvegiard/copilot-cloud-agent-mcp.git",
"copilot-cloud-agent-mcp"
]
}
}
}
Quick example
Inside Claude, ask:
Using copilot-cloud-agent, start a task on
fvegiard/learn-mcpwith prompt "Add a CHANGELOG.md and update README to link to it", then wait for it to finish and tell me the PR URL.
Claude will call create_task, then wait_for_task, then pull artifacts[].data.global_id out of the final task object.
API reference
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.