Installation and hooks for GitHub Copilot CLI.
For team/API server setup see api-server/README.md.
For Claude Code setup see claude-code.md.
copilot plugin marketplace add SoureCode/AgentBacklog
copilot plugin install agent-backlog@sourecode-backlog
cd ~/.copilot/installed-plugins/sourecode-backlog/agent-backlog/mcp
npm installcopilot plugin update agent-backlog@sourecode-backlog
cd ~/.copilot/installed-plugins/sourecode-backlog/agent-backlog/mcp
npm installAfter updating, restart your Copilot CLI session so the new MCP server code is loaded.
copilot plugin uninstall agent-backlog@sourecode-backlogTo also remove leftover data:
# Remove the project registry
rm -r ~/.config/agent-backlog
# Remove the backlog database from each project (run per project)
rm .backlog.dbTeam mode connects to a central API server instead of a local SQLite file. See api-server/README.md to set up the server and obtain an API key.
Note: Copilot CLI does not forward the parent shell's environment variables to the MCP server subprocess. Use config files instead (described below).
Create ~/.config/agent-backlog/config.json:
{
"BACKLOG_API_URL": "http://your-server:4000",
"BACKLOG_API_KEY": "sk-proj-abc123"
}Create .backlog.json in the project root for shared team config (safe to commit — keep secrets out):
{
"BACKLOG_API_URL": "http://your-server:4000"
}Create .backlog.local.json for personal secrets (add to .gitignore):
{
"BACKLOG_API_KEY": "sk-proj-abc123"
}Per-repo local overrides per-repo which overrides global. Shell environment variables always take highest precedence.
See configuration.md for all environment variables and config file locations.
Note: The
sessionStarthook is currently not working in GitHub Copilot CLI. Runnpm installmanually after install or update (see above).