copilot-sdk - Build applications with the GitHub Copilot SDK
Programmatically interact with GitHub Copilot through JSON-RPC with sessions, custom tools, hooks, MCP servers, authentication, and streaming.
Tags
Updated: 2026-09-29Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Create Copilot clients
- Manage Copilot sessions
- Send prompts
- Stream response deltas
- Define custom tools
- Configure lifecycle hooks
- Connect MCP servers
- Authenticate with tokens
- Use alternative providers
- Resume sessions
Inputs
- User prompts
- Model configuration
- Provider configuration
- Authentication credentials
- Custom tool definitions
- Hook handlers
- MCP server configurations
- Session identifiers
Outputs
- Assistant responses
- Streaming response deltas
- Session events
- Tool execution results
- Resumable session state
Requirements
- GitHub Copilot CLI installed
- GitHub Copilot CLI authenticated
- GitHub Copilot subscription or BYOK
- Supported runtime environment
