copilot-sdk - GitHub Copilot SDK
Build applications that interact programmatically with GitHub Copilot through JSON-RPC, sessions, tools, hooks, MCP servers, and streaming.
Tags
Updated: 2026-09-30Typical Inputs
Typical Outputs
What this skill does
- Create Copilot sessions
- Send prompts
- Stream assistant responses
- Define custom tools
- Configure lifecycle hooks
- Connect MCP servers
- Configure model providers
- Resume persisted sessions
Inputs
- User prompts
- Model configuration
- Provider configuration
- Authentication credentials
- Custom tool definitions
- Hook handlers
- MCP server configurations
- Session identifiers
Outputs
- Assistant responses
- Streaming delta events
- Tool results
- Session lifecycle events
- Resumed session state
Requirements
- GitHub Copilot CLI installed and authenticated
- GitHub Copilot subscription unless using BYOK
- Node.js 18+, Python 3.8+, Go 1.21+, or .NET 8.0+
