---
title: Copilot CLI
description: Install Docfork MCP in GitHub Copilot CLI
---
Open `~/.copilot/mcp-config.json` and add:
```json theme={null}
{
"mcpServers": {
"docfork": {
"type": "http",
"url": "https://mcp.docfork.com/mcp",
"headers": {
"DOCFORK_API_KEY": "YOUR_API_KEY"
},
"tools": ["query-docs", "resolve-library-id"]
}
}
}
```
Or, for a local server:
```json theme={null}
{
"mcpServers": {
"docfork": {
"type": "local",
"command": "npx",
"tools": ["query-docs", "resolve-library-id"],
"args": ["-y", "docfork", "--api-key", "YOUR_API_KEY"]
}
}
}
```