# Let GitHub Copilot in VS Code test what it built

> Add Testsy to VS Code as an MCP server so Copilot can save a plain-language test, run it on your deployed site or a phone build, and read the verdict before it says done.

By Jason Nguyen, Founder, Testsy. Published 2026-11-23. https://testsy.dev/blog/let-github-copilot-in-vs-code-test-what-it-built/

## Why Copilot should not grade itself

Copilot can write a feature and its test in one go, from the same understanding of what you asked. If that understanding is wrong, the test checks the wrong thing and passes. A check from outside does not share those assumptions: it opens your deployed app, does what the sentence says, and reports what was on the screen. Over MCP, Copilot can ask Testsy for that check itself.

## Connect it

Create an API key in **Settings → API keys** in Testsy. Choose the kind that can also create and edit tests if Copilot should save new tests.

Then add the server to VS Code. The quickest way is the command palette: run **Chat: Open Customizations**, select **MCP Servers**, choose **Add Server**, pick **HTTP**, and enter `https://app.testsy.dev/mcp`, then add the key as an `Authorization: Bearer` header as below. To share it with your team, put it in `.vscode/mcp.json` instead, with the key as a prompted input so it never sits in the file:

```json
{
  "inputs": [
    { "type": "promptString", "id": "testsy-key", "description": "Testsy API key", "password": true }
  ],
  "servers": {
    "testsy": {
      "type": "http",
      "url": "https://app.testsy.dev/mcp",
      "headers": { "Authorization": "Bearer ${input:testsy-key}" }
    }
  }
}
```

VS Code asks for the key the first time the server starts and stores it in its secret storage. This follows VS Code's [MCP configuration reference](https://code.visualstudio.com/docs/agents/reference/mcp-configuration). Do not commit a real key or paste it into chat.

## What Copilot does with it

Ask in plain words in the chat: "Check that a new user can sign up and create a project on our staging site." Copilot picks the Testsy tools itself:

1. `list_projects`, then `plan_test` with what you asked. Testsy drafts the steps and the checks.
2. It shows you the plan. Correct it ("the button says Create workspace") and it calls `plan_test` again with the change.
3. `create_test` saves the confirmed plan; `run_test` starts it and returns a watch link you can open to see the run live.
4. `wait_run` until the verdict is final, then it reads each check, its reason and the value it was decided on.
5. If a check failed, it fixes the code, you deploy, and it runs the same test again.

![A plan before it runs: the steps, the checks, and the options such as the screen size and the sign-in account.](https://testsy.dev/docs/img/plan-light.webp)

The test stays saved in your workspace, so the next change, CI or a teammate can run it again.

## Apps too

For an iPhone or Android app, Copilot can upload the build it just made and run the app's tests on it: `find_build` to reuse a build already there, otherwise `create_build_upload` and the shell command it returns. The steps are in [the MCP docs](https://testsy.dev/docs/mcp/#upload-a-new-app-build-and-run-it).

## Keep a person in the loop

- Review the plan before the first run. Runs can create accounts and change data, so point them at staging with made-up details.
- Leave VS Code's tool approvals on until you trust the flow.
- Read the evidence, not only the verdict. Every result keeps the screen each check was read from, and a [fix prompt](https://testsy.dev/docs/fix-prompt/) for anything that failed.

Every run counts toward your plan like any other. The free trial has 10. [Get your free 10 tests](https://app.testsy.dev/signup).

The same setup for other agents: [Claude Code](https://testsy.dev/blog/make-claude-code-test-what-it-built/), [Cursor](https://testsy.dev/blog/let-cursor-check-its-own-work-in-a-browser/), [Codex](https://testsy.dev/blog/let-codex-check-its-own-work-in-a-browser/), [Gemini CLI and the Claude app](https://testsy.dev/blog/connect-testsy-to-gemini-cli-and-the-claude-app/). Wondering whether Playwright MCP is enough? See [Testsy vs Playwright MCP](https://testsy.dev/blog/testsy-vs-playwright-mcp/).
