Copilot MCP Server
Click on "Deploy 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 MCP Server explain Python comprehensions"
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 MCP Server
This (horrible horrible) project provides MCP servers that wrap the copilot CLI so third-party MCP clients can invoke Copilot through tools.
Exposed tools
copilot_prompt: Runscopilot -p "<prompt>"in non-interactive mode.Supports session continuity:
session_id->--session-id <id>resume_session->--resume=<id-or-name>continue_session=true->--continue
Exactly one session mode can be selected per call.
copilot_command: Runs generalcopilot ...commands (interactive/server flags are blocked).
Tool return structured output with:
okcommandexit_code(when executed)stdoutstderr
Related MCP server: GitHub Copilot MCP Server
Requirements
copilotCLI installed and authenticatedPython 3.10+ (for Python server)
Optionally set COPILOT_BIN if copilot is not in PATH.
Python setup
git clone ...
uv init .
uv --directory . run copilot_mcp_server.py Run:
copilot-mcp-serverExample MCP client config
Python server:
{
"mcpServers": {
"copilot-as-mcp": {
"command": "uv",
"args": [
"--directory",
"~/Copilot-as-MCP",
"run",
"copilot_mcp_server.py"
]
}
}
}Session examples
Continue with a known session ID:
copilot_prompt(prompt="Refine the previous answer", session_id="...")
Resume by session/task identifier:
copilot_prompt(prompt="Continue this task", resume_session="...")
Continue most recent session:
copilot_prompt(prompt="Continue", continue_session=true)
Available Tools
2 toolscopilot_commandB
Run a general Copilot command. Use args exactly like the shell command after copilot.
Inputs: args (required), cwd, timeout_seconds. Returns: object
copilot_promptA
Run a non-interactive Copilot prompt (copilot -p ...) and return stdout/stderr/exit code.
Inputs: prompt (required), cwd, model, allow_all, +3 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
copilot_prompt and copilot_command overlap significantly since copilot_command can also run prompts, making it unclear which tool to use for a prompt task. The descriptions provide some clarity but do not fully resolve the boundary.
Both tool names follow a consistent 'copilot_<mode>' pattern with snake_case, which is predictable and easy to remember. The naming is uniform and well-aligned with the server's purpose.
With only 2 tools, the server is minimal but matches the narrow scope of wrapping the Copilot CLI. However, the presence of a general command makes the prompt-specific tool feel somewhat redundant, and the count is at the low end of reasonable.
The general copilot_command covers all CLI operations, avoiding dead ends, but the server lacks specialized tools for common Copilot workflows such as auth, session management, or structured prompt handling. The surface is functional yet sparse.
Maintenance
Related MCP Connectors
GitHub Copilot MCP: code, repo, PR, workflow tools for AI assistants.
Find, vet, and run MCP tools through a secure audited gateway with prompt-injection risk scoring
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
MCP-Native LLM Orchestration Agent
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceWraps the GitHub Copilot CLI to provide natural language command suggestions, explanations, and shell configuration for shell, git, and GitHub CLI commands through the Model Context Protocol.1MIT
- AlicenseNot gradedqualityDmaintenanceIntegrates GitHub Copilot CLI with MCP clients to offer various coding assistance tools including asking questions, explaining code, suggesting commands, debugging, refactoring, generating tests, and reviewing code.27 npm8MIT
- AlicenseCqualityDmaintenanceConnects MCP-enabled editors to GitHub Copilot CLI for non-interactive code analysis, batch processing, and code review.1031 npm5MIT
- AlicenseAqualityDmaintenanceWraps Anthropic Claude Code CLI as tools, allowing MCP clients to invoke headless Claude Code sessions.2393 npmMIT