copilot-cloud-agent-mcp
Provides tools to manage GitHub repositories, tasks, and organization permissions via the Copilot cloud agent API.
Enables AI agents to create and manage Copilot cloud agent tasks that can research, edit code, and open pull requests on GitHub repositories.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@copilot-cloud-agent-mcpStart a task on user/repo to add a README, wait and show PR URL."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 |
|
| Kick off a new cloud-agent task |
|
| List tasks (repo-scoped or global) |
|
| Fetch one task + its sessions |
| (polls | Block until task hits a terminal state |
| — | Show model strings accepted by the API |
|
| Read org cloud-agent setting |
|
| Set |
|
| List repos with access |
|
| Replace selected-repos list |
|
| Add one repo |
|
| 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-mcpVerify:
claude mcp list | grep copilot-cloud-agent
# → copilot-cloud-agent: uvx --from git+… - ✓ ConnectedInstall (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
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/fvegiard/copilot-cloud-agent-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server