Skip to main content
Glama
ohaiibuzzle

Copilot MCP Server

by ohaiibuzzle

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: Runs copilot -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 general copilot ... commands (interactive/server flags are blocked).

Tool return structured output with:

  • ok

  • command

  • exit_code (when executed)

  • stdout

  • stderr

Related MCP server: GitHub Copilot MCP Server

Requirements

  • copilot CLI installed and authenticated

  • Python 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-server

Example 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)

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Remote MCP for Copilot CLI switch gate MCP, structured receipts, audit logs, and reviewer-ready evid

  • User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.

  • A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage

View all MCP Connectors

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/ohaiibuzzle/copilot-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server