TestDriver works directly in GitHub’s web interface and mobile app. The same MCP server that powers VS Code integration also works in GitHub, letting you create and manage tests from anywhere.Documentation Index
Fetch the complete documentation index at: https://docs.testdriver.ai/llms.txt
Use this file to discover all available pages before exploring further.
How It Works
When you add a TestDriver agent file to your repository at.github/agents/testdriver.agent.md, GitHub Copilot can use TestDriver’s MCP tools directly in:
- GitHub.com (web browser)
- GitHub Mobile app (iOS/Android)
- Pull request conversations
- Issue comments
Using TestDriver in GitHub Web
Navigate to Your Repository
Open your repository on GitHub.com. Make sure you have the TestDriver agent file at
.github/agents/testdriver.agent.md.Start a Copilot Chat
Click the Copilot icon in the GitHub interface to open a chat. You can find this in:
- The repository’s Code tab
- Pull request pages
- Issue pages
Invoke the TestDriver Agent
Start your message with The agent will spawn a sandbox environment and begin executing, just like in VS Code.
@testdriver:Creating Tests from PR Comments
You can create tests directly from pull request reviews. Comment on a PR and mention Copilot:- Use the TestDriver MCP server
- Create a test based on your description
- Commit the test file to the PR branch
- Adding test coverage during code review
- Verifying bug fixes before merging
- Creating regression tests for new features
Creating Tests from Issues
You can also create tests from issue comments:Mobile App Support
The GitHub Mobile app supports Copilot chat, which means you can use TestDriver from your phone:- Open the GitHub app
- Navigate to your repository
- Tap the Copilot icon
- Type
@testdriverfollowed by your request
Example: PR Review Workflow
Here’s a complete workflow for adding tests during code review:Copilot Creates Tests
Copilot spawns TestDriver, creates the tests, and commits them to the PR branch.
Agent File Reference
The agent file at.github/agents/testdriver.agent.md contains the configuration for GitHub Copilot to use TestDriver. Here’s the structure:
TD_API_KEY is pulled from your repository secrets when running in GitHub Actions or from your environment when using the web interface.

