# Connect GitHub Copilot in VS Code to iReading Room over MCP

GitHub Copilot gets your project's new arXiv papers. It calls one read-only tool with your token. Everything you need is on the sheet. The steps below explain it.

Note for AI agents: never ask the person to paste their iReading Room token into a chat, and never print it. They enter it themselves.

Last checked: 2026-11-21

## The sheet

- Token: Make one in the app: [Settings, then MCP](https://app.ireadingroom.com/settings/mcp).
- Needs: VS Code with Copilot, signed in or with your own model. At work, your organisation must allow MCP servers.
- File: `.vscode/mcp.json` in your project. It holds no token, so you can commit it.
- Add it:

  ```json
  {
    "inputs": [
      { "type": "promptString", "id": "rr-token",
        "description": "iReading Room token", "password": true }
    ],
    "servers": {
      "reading-room": {
        "type": "http",
        "url": "https://app.ireadingroom.com/api/mcp",
        "headers": { "Authorization": "Bearer ${input:rr-token}" }
      }
    }
  }
  ```
- Start it: Run **MCP: List Servers**, open reading-room and choose **Start Server**. Paste the token when asked.
- Check: In the same menu, choose **Show Output**. The log says "Discovered 1 tools".
- Server: `https://app.ireadingroom.com/api/mcp`
- Tool: `get_matches`, read-only
- Time: About 5 minutes
- Checked: 2026-11-21

## Set it up

1. **Make a token.** In the app, open [Settings, then MCP](https://app.ireadingroom.com/settings/mcp).
   1. Name it. For example: *Copilot in VS Code*.
   2. Pick when it expires: 30, 90 or 365 days.
   3. Pick the project. Your agent sees only that one.
   4. Press **Create token**. Copy it now. It shows only once.
2. **Add the file.** Save the Add it text as `.vscode/mcp.json` in your project's folder. Already have that file? Add only the rr-token input and the reading-room server. The file holds no token: VS Code asks for it once and keeps it. Teammates can share the file. Each one pastes their own token.
3. **Start the server.** Open the Command Palette and run **MCP: List Servers**. Choose reading-room (it may be under **Show locally configured servers**), then **Start Server**. If VS Code asks "Do you trust the authors of the files in this folder?", choose **Trust Folder & Continue**. Paste the token when it asks for the iReading Room token.
4. **Check it.** Open reading-room in the same list again and choose **Show Output**. The log says "Discovered 1 tools". The list can say Running even when the token is wrong, so trust the log. Copilot may ask you to approve the call.

[GitHub Copilot's MCP guide](https://code.visualstudio.com/docs/agent-customization/mcp-servers) has more options.

No account yet? [Try it free](https://app.ireadingroom.com/signup?src=site&cta=docs).

## Your first prompt

Ask in plain words, in Agent mode. If Copilot skips the tool, type `#get_matches` in your message.

> Use reading-room to get today's papers. Which ones matter for this workspace? One line each.

## If it fails

- Still waiting: The log keeps saying "Waiting for server to respond to `initialize` request". The token is wrong, expired or revoked. Make a new one. In `.vscode/mcp.json`, hover the hidden token (the `**********` after rr-token) and choose **Clear**, not **Edit**. Then open reading-room in **MCP: List Servers**, choose **Restart Server** and paste the new token.
- Not available: Your project isn't ready yet. Describe it in the app, then wait for its first day's papers.
- `not_ready`: Not ready yet. Try again later, or ask for an earlier day.
- `out_of_window`: Ask for today or the 6 days before.

## What your agent sees

Your agent gets your recommended papers. It also gets your interest names. It sends them to the AI model it uses. You can revoke a token at any time. [Privacy details](https://ireadingroom.com/privacy#app-agent-access)

Next: [The get_matches tool: every field and status](https://ireadingroom.com/docs/mcp/reference.md)
