Connect GitHub Copilot CLI to Niro
One command connects GitHub Copilot CLI to Niro:
niro mcp install --client copilot-cli
Then restart GitHub Copilot CLI, because it reads its settings only when it starts.
You must have run niro start first, so that you are signed in. See Connect your coding agent to Niro.
What the install writes
- The connection, through Copilot's own command (
copilot mcp add niro ...), in~/.copilot/mcp-config.json.
How GitHub Copilot CLI learns to use Niro
- A section in
~/.copilot/copilot-instructions.md.
Check that it works
Ask it a question about your code, such as "which routes does this project serve?". An answer from Niro starts with "Answered from the local graph on this machine (niro-local)."
Things to know
- If the
copilotcommand is missing, the install says so and suggestsnpm i -g @github/copilot.
Remove it
niro mcp uninstall --client copilot-cli
If something goes wrong, see FAQ: coding agents and MCP.