MCPHub LabRegistrygithub/copilot-sdk
github

github/copilot sdk

Built by github • 8,041 stars

What is github/copilot sdk?

Multi-platform SDK for integrating GitHub Copilot Agent into apps and services

How to use github/copilot sdk?

1. Install a compatible MCP client (like Claude Desktop). 2. Open your configuration settings. 3. Add github/copilot sdk using the following command: npx @modelcontextprotocol/github-copilot-sdk 4. Restart the client and verify the new tools are active.
🛡️ Scoped (Restricted)
npx @modelcontextprotocol/github-copilot-sdk --scope restricted
🔓 Unrestricted Access
npx @modelcontextprotocol/github-copilot-sdk

Key Features

Native MCP Protocol Support
Real-time Tool Activation & Execution
Verified High-performance Implementation
Secure Resource & Context Handling

Optimized Use Cases

Extending AI models with custom local capabilities
Automating system workflows via natural language
Connecting external data sources to LLM context windows

github/copilot sdk FAQ

Q

Is github/copilot sdk safe?

Yes, github/copilot sdk follows the standardized Model Context Protocol security patterns and only executes tools with explicit user-granted permissions.

Q

Is github/copilot sdk up to date?

github/copilot sdk is currently active in the registry with 8,041 stars on GitHub, indicating its reliability and community support.

Q

Are there any limits for github/copilot sdk?

Usage limits depend on the specific implementation of the MCP server and your system resources. Refer to the official documentation below for technical details.

Official Documentation

View on GitHub

GitHub Copilot CLI SDKs

GitHub Copilot SDK

NPM Downloads PyPI - Downloads NuGet Downloads

Agents for every app.

Embed Copilot's agentic workflows in your application—now available in Technical preview as a programmable SDK for Python, TypeScript, Go, .NET, and Java.

The GitHub Copilot SDK exposes the same engine behind Copilot CLI: a production-tested agent runtime you can invoke programmatically. No need to build your own orchestration—you define agent behavior, Copilot handles planning, tool invocation, file edits, and more.

Available SDKs

SDKLocationCookbookInstallation
Node.js / TypeScriptnodejs/Cookbooknpm install @github/copilot-sdk
Pythonpython/Cookbookpip install github-copilot-sdk
Gogo/Cookbookgo get github.com/github/copilot-sdk/go
.NETdotnet/Cookbookdotnet add package GitHub.Copilot.SDK
Javagithub/copilot-sdk-javaWIPMaven coordinates<br>com.github:copilot-sdk-java<br>See instructions for Maven and Gradle

See the individual SDK READMEs for installation, usage examples, and API reference.

Getting Started

For a complete walkthrough, see the Getting Started Guide.

Quick steps:

  1. Install the Copilot CLI:

    Follow the Copilot CLI installation guide to install the CLI, or ensure copilot is available in your PATH.

  2. Install your preferred SDK using the commands above.

  3. See the SDK README for usage examples and API documentation.

Architecture

All SDKs communicate with the Copilot CLI server via JSON-RPC:

Your Application
       ↓
  SDK Client
       ↓ JSON-RPC
  Copilot CLI (server mode)

The SDK manages the CLI process lifecycle automatically. You can also connect to an external CLI server—see the Getting Started Guide for details on running the CLI in server mode.

FAQ

Do I need a GitHub Copilot subscription to use the SDK?

Yes, a GitHub Copilot subscription is required to use the GitHub Copilot SDK, unless you are using BYOK (Bring Your Own Key). With BYOK, you can use the SDK without GitHub authentication by configuring your own API keys from supported LLM providers. For standard usage (non-BYOK), refer to the GitHub Copilot pricing page, which includes a free tier with limited usage.

How does billing work for SDK usage?

Billing for the GitHub Copilot SDK is based on the same model as the Copilot CLI, with each prompt being counted towards your premium request quota. For more information on premium requests, see Requests in GitHub Copilot.

Does it support BYOK (Bring Your Own Key)?

Yes, the GitHub Copilot SDK supports BYOK (Bring Your Own Key). You can configure the SDK to use your own API keys from supported LLM providers (e.g. OpenAI, Azure AI Foundry, Anthropic) to access models through those providers. See the BYOK documentation for setup instructions and examples.

Note: BYOK uses key-based authentication only. Microsoft Entra ID (Azure AD), managed identities, and third-party identity providers are not supported.

What authentication methods are supported?

The SDK supports multiple authentication methods:

  • GitHub signed-in user - Uses stored OAuth credentials from copilot CLI login
  • OAuth GitHub App - Pass user tokens from your GitHub OAuth app
  • Environment variables - COPILOT_GITHUB_TOKEN, GH_TOKEN, GITHUB_TOKEN
  • BYOK - Use your own API keys (no GitHub auth required)

See the Authentication documentation for details on each method.

Do I need to install the Copilot CLI separately?

Yes, the Copilot CLI must be installed separately. The SDKs communicate with the Copilot CLI in server mode to provide agent capabilities.

What tools are enabled by default?

By default, the SDK will operate the Copilot CLI in the equivalent of --allow-all being passed to the CLI, enabling all first-party tools, which means that the agents can perform a wide range of actions, including file system operations, Git operations, and web requests. You can customize tool availability by configuring the SDK client options to enable and disable specific tools. Refer to the individual SDK documentation for details on tool configuration and Copilot CLI for the list of tools available.

Can I use custom agents, skills or tools?

Yes, the GitHub Copilot SDK allows you to define custom agents, skills, and tools. You can extend the functionality of the agents by implementing your own logic and integrating additional tools as needed. Refer to the SDK documentation of your preferred language for more details.

Are there instructions for Copilot to speed up development with the SDK?

Yes, check out the custom instructions for each SDK:

What models are supported?

All models available via Copilot CLI are supported in the SDK. The SDK also exposes a method which will return the models available so they can be accessed at runtime.

Is the SDK production-ready?

The GitHub Copilot SDK is currently in Technical Preview. While it is functional and can be used for development and testing, it may not yet be suitable for production use.

How do I report issues or request features?

Please use the GitHub Issues page to report bugs or request new features. We welcome your feedback to help improve the SDK.

Quick Links

Unofficial, Community-maintained SDKs

⚠️ Disclaimer: These are unofficial, community-driven SDKs and they are not supported by GitHub. Use at your own risk.

SDKLocation
Rustcopilot-community-sdk/copilot-sdk-rust
Clojurecopilot-community-sdk/copilot-sdk-clojure
C++0xeb/copilot-sdk-cpp

Contributing

See CONTRIBUTING.md for contribution guidelines.

License

MIT

Global Ranking

8.5
Trust ScoreMCPHub Index

Based on codebase health & activity.

Manual Config

{ "mcpServers": { "github-copilot-sdk": { "command": "npx", "args": ["github-copilot-sdk"] } } }