What is GitHub Copilot Agent Mode?
GitHub Copilot agent mode turns Copilot into an autonomous coding agent inside VS Code. It can execute terminal commands, edit files, and — with MCP servers — interact with external tools like tk. Agent mode is available to all VS Code users with a Copilot subscription.MCP Integration
Install theticket-mcp MCP server to give Copilot agent mode direct access to your issues.
Workspace Configuration
Create.vscode/mcp.json in your project root:
User-Level Configuration
To make tk available across all projects, open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P) and run MCP: Open User Configuration, then add the same server entry.
Requirements
Requirements
uv installed via:
curl -LsSf https://astral.sh/uv/install.sh | shPython version 3.10 or higher (installed automatically by uv)VS Code with GitHub Copilot extension installedVerify Installation
- Open
.vscode/mcp.jsonin VS Code — you should see inline Start / Stop controls above the server entry - Click Start to launch the MCP server
- Open Copilot Chat and select Agent mode from the dropdown
- Click the Tools icon in the chat input to confirm
ticket-mcptools are listed
Enabling Agent Mode
Agent mode must be active for Copilot to use MCP tools:- Open Copilot Chat (click the Copilot icon in the title bar)
- Select Agent from the mode dropdown at the top of the chat panel
- MCP tools are automatically available — no extra configuration needed
Project Context
For better results, add a.github/copilot-instructions.md file to give Copilot context about your issue tracking workflow:
Workflow Tips
Starting a Session
Ask Copilot: “Run tk triage and show me what I should work on today”Creating Issues
Ask Copilot: “Create a high-priority bug for the login timeout issue”Closing Work
Ask Copilot: “Resolve tk-abc123, I just fixed it”Dependency Management
Ask Copilot: “Show me the dependency tree for tk-xyz789”Project Health
Ask Copilot: “Run tk insights and explain the bottlenecks”Troubleshooting
MCP tools not appearing in agent mode
MCP tools not appearing in agent mode
Ensure
.vscode/mcp.json exists with the correct format. Open the file in VS Code and click the Start button above the server entry. Check that uvx is in your PATH.Agent mode not available
Agent mode not available
Agent mode requires a GitHub Copilot subscription. Verify Copilot is active in VS Code and update to the latest version. Agent mode is enabled by default in VS Code 1.99+.
Copilot doesn't use tk tools
Copilot doesn't use tk tools
Make sure you’re in Agent mode (not Ask or Edit mode). Click the Tools icon in the chat input and verify ticket-mcp tools are enabled (checked).
Slow tk commands
Slow tk commands
Enable caching with
tk cache info to verify the analytics cache is working. Cached responses return in under 10ms.Next Steps
CLI Reference
Complete tk command documentation
MCP Server
Deep dive into MCP server capabilities
Graph Analytics
Learn about PageRank and dependency analysis
Copilot Docs
Official GitHub Copilot documentation