Use Klio with VS Code + GitHub Copilot

Use Klio from Copilot's agent mode in VS Code. VS Code asks for the token once and stores it securely.

In VS Code, GitHub Copilot's agent mode can use MCP servers, so it can work from a Klio board the same way terminal agents do. Copilot reads the next story, claims it, ticks its criteria and sends it to review, while your repository's custom instructions keep every request on the board.

Connect by signing in

VS Code + GitHub Copilot supports MCP sign-in, so there's no token to copy. You approve it in Klio and choose which projects it can reach; disconnect it any time in Settings → Agents.

  1. Add Klio with only its URL

    No inputs or headers.

    .vscode/mcp.json
    {
      "servers": {
        "klio": {
          "type": "http",
          "url": "https://klio.dev/api/mcp"
        }
      }
    }
  2. Start it and allow sign-in

    Click Start above the server. VS Code asks to sign in to Klio: allow it and approve in the browser.

Or connect with a token

For setups where you'd rather paste a token, or a version of VS Code + GitHub Copilot without sign-in.

!Before you start: create a token in Klio under Settings → Connect agents, and use it in place of klio_YOUR_TOKEN.
  1. Add .vscode/mcp.json

    Commit this file safely: it has no token in it. VS Code prompts for the token the first time the server starts.

    .vscode/mcp.json
    {
      "inputs": [
        {
          "type": "promptString",
          "id": "klio-token",
          "description": "Klio access token",
          "password": true
        }
      ],
      "servers": {
        "klio": {
          "type": "http",
          "url": "https://klio.dev/api/mcp",
          "headers": {
            "Authorization": "Bearer ${input:klio-token}"
          }
        }
      }
    }
  2. Start it

    Open the file and click Start above the server, or run “MCP: List Servers” from the command palette. Then switch Copilot Chat to Agent mode.

  3. Check it works

    In Copilot Chat (Agent mode), click the tools icon: Klio's tools are listed. Ask: “call klio whoami”. For a full check, paste the verification prompt: it runs the whole loop on a sandbox story and gives VS Code + GitHub Copilot a badge.

Keep VS Code + GitHub Copilot on Klio for every request

Add this to .github/copilot-instructions.md in your repo. VS Code + GitHub Copilot reads it on every turn, so follow-up work mid-session lands on the board too, not only in its own todo list.

.github/copilot-instructions.md
## Klio (project board)
This repo is tracked in Klio; the Klio MCP server is connected.
- All coding work here goes through Klio, follow-ups mid-session included. Before writing code for anything I ask that has no ID, add it: `create_issue` (or `create_feature` for a bigger piece), then `start_issue`. Use your own todo list only for steps inside a Klio story.
- When I mention an ID like POC-F4 or POC-33, load it with `get_feature` / `get_issue` first. If I just say "continue", call `get_next_work`.
- `start_issue` before you start, `check_criterion` as each acceptance criterion passes, `complete_issue` with a short summary when done (`startNext: true` claims the next story; `prUrl` links the pull request if you opened one).
- Record new dependencies and providers with `sync_stack` / `add_service`. Never print or commit secret values.

Then paste the setup prompt

With VS Code + GitHub Copilot connected, this puts the repo on your board and starts building with you. Replace the highlighted part.

The setup prompt
Use Klio (klio.dev) as the project board for this repo. It's connected over MCP as "klio".

1. Call whoami to check the connection. If it fails, stop and tell me what to fix.
2. Find this repo's project with list_projects. If there isn't one, create it with create_project: name it after the repo and pick a short key.
3. Record what's already here: call sync_stack with package.json (and any other manifests) and gitRemote (the output of `git remote -v`), add features that already work as done stories, and half-finished work as stories in progress.
4. What I'm building next: <describe it in a sentence or two>
   Call brief_feature, write small stories with acceptance criteria, show me the plan, and save it with create_feature once I approve.
5. Build it one story at a time: start_issue before you write code, check_criterion as each criterion really passes, complete_issue with a short summary once it's tested. Don't start a second story while one is in progress, and leave Done to me.
6. Before you stop, hand me anything only I can do (secrets, DNS, billing) with flag_for_human.

Working with VS Code + GitHub Copilot day to day

  1. Plan in a sentence

    Tell VS Code + GitHub Copilot what you want: “add password reset by email”. It reads the project with brief_feature, proposes small stories with acceptance criteria, and saves them with create_feature once you agree.

  2. Say “continue”

    get_next_work returns the next story (reserved for VS Code + GitHub Copilot), the project's note and what other agents changed. start_issue claims it.

  3. Build to the criteria

    VS Code + GitHub Copilot ticks each criterion with check_criterion as it really passes, and hands you anything only you can do (keys, DNS, billing) with flag_for_human.

  4. Review and come back any time

    complete_issue sends the story to review with a summary and rewrites the project's note. You mark it done. Next week, “continue” starts right there.

Questions

Does VS Code + GitHub Copilot work with Klio?

Yes. Klio is an MCP server at https://klio.dev/api/mcp. VS Code + GitHub Copilot with MCP sign-in connects with the URL alone and you approve it in the browser; any version can connect with a token from Settings → Connect agents.

How do I make VS Code + GitHub Copilot use Klio for every request?

Add the short Klio section above to .github/copilot-instructions.md. It's read at the start of every session, so follow-up requests land on the board too, not only the first one.

Can VS Code + GitHub Copilot work on the same project as other agents?

Yes. Every agent connected to Klio sees the same board. Claims stop two agents taking the same story, dependencies keep the order, and each agent sees what the others changed since it last looked.

Is Klio free?

Klio is free for one person with three projects and two agent connections. Pro adds unlimited projects and agents; agents never count as seats.

Further reading

Other agents

Endpoint: https://klio.dev/api/mcp. Menus and file paths can move between VS Code + GitHub Copilot releases; if a step looks different, the server URL and header are what matter.