copilot-sdk - Programmatically interact with GitHub Copilot
Build applications that interact with GitHub Copilot through JSON-RPC with sessions, tools, hooks, MCP servers, and streaming.
Tags
Updated: 2026-09-30Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Create Copilot clients and sessions
- Send prompts and receive responses
- Stream assistant message deltas
- Define and invoke custom tools
- Intercept session lifecycle hooks
- Connect local and remote MCP servers
- Persist and resume sessions
- Use alternative model providers
Inputs
- User prompts
- Model configuration
- Custom tool definitions
- Hook handlers
- MCP server configuration
- Authentication credentials
- Session identifiers
Outputs
- Assistant responses
- Streaming message deltas
- Tool execution results
- Session events
- Persisted session state
Requirements
- GitHub Copilot CLI installed
- GitHub Copilot CLI authenticated
- GitHub Copilot subscription or BYOK credentials
- Supported runtime version
- SDK package installed
