> For the complete documentation index, see [llms.txt](https://docs.telys.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.telys.ai/mcp/client-cursor-vscode.md).

# Cursor & VS Code

Cursor and VS Code both speak MCP over stdio, so the same `telys mcp` server drops into either — only the config file and its shape differ. `telys mcp install` configures Cursor; configure VS Code by hand.

{% tabs %}
{% tab title="Cursor" icon="laptop-code" %}
Cursor reads MCP servers from `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` inside a project (project scope).

Let the installer write it:

```bash
telys mcp install --client cursor                 # user scope (~/.cursor/mcp.json)
telys mcp install --client cursor --scope project # this repo (./.cursor/mcp.json)
```

Or add the block yourself. Set `TELYS_MEMORY_PATH` only for a store other than `~/.telys/memory`:

{% code title=".cursor/mcp.json" lineNumbers="true" %}

```json
{
  "mcpServers": {
    "telys": {
      "command": "telys",
      "args": ["mcp"],
      "env": {
        "TELYS_MEMORY_PATH": "/Users/you/.telys/memory"
      }
    }
  }
}
```

{% endcode %}

Reload from **Settings → MCP** (or restart Cursor). The `telys` server appears with its five tools.
{% endtab %}

{% tab title="VS Code" icon="code" %}
VS Code uses a different key and requires an explicit transport `type`. Put it in `.vscode/mcp.json` for a workspace, using the `servers` object with `"type": "stdio"`:

{% code title=".vscode/mcp.json" lineNumbers="true" %}

```json
{
  "servers": {
    "telys": {
      "type": "stdio",
      "command": "telys",
      "args": ["mcp"],
      "env": {
        "TELYS_MEMORY_PATH": "/Users/you/.telys/memory"
      }
    }
  }
}
```

{% endcode %}

The installer does not target VS Code, so add this file yourself. Save it, then start the server from the **Start** action VS Code shows above the entry, or reload the window. The tools become available to the agent in the Chat view.
{% endtab %}
{% endtabs %}

{% hint style="warning" %}
If the editor launches from a desktop icon it may not inherit your shell's `PATH`, so a bare `"command": "telys"` can fail. Run `which telys` and set `command` to that absolute path (a pipx install is typically `/Users/you/.local/bin/telys`).
{% endhint %}

## Reload after editing

Both editors read the config when the MCP server starts. After any change, reload — Cursor from **Settings → MCP**, VS Code with the **Start**/**Restart** action on the entry (or **Developer: Reload Window**) — so the editor respawns `telys mcp`.

## What you will see

The `telys` server appears in the editor's MCP panel with five tools: `telys_search`, `telys_add`, `telys_create_collection`, `telys_list_collections`, and `telys_stats`. Drive it from the agent in natural language:

```
Use telys_search on the collection "project-notes" for "auth token refresh" and summarize the hits.
```

The agent calls `telys_search` and summarizes the returned ids and metadata. If the collection does not exist yet, ask the agent to add a few notes first — `telys_add` creates it on the fly.

{% hint style="info" %}
No results or a missing server usually means the runtime is not verified or the `command` path is wrong. Run `telys runtime verify` and see [MCP client won't connect](/troubleshooting/mcp-client.md).
{% endhint %}

## Next steps

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Other MCP clients</strong></td><td>Codex and any stdio client.</td><td><a href="/pages/um8yppzglq28k2m65DiG">/pages/um8yppzglq28k2m65DiG</a></td></tr><tr><td><strong>Tool: telys_search</strong></td><td>Every argument the search tool takes.</td><td><a href="/pages/MCot2Px9N71YmDCmVoPk">/pages/MCot2Px9N71YmDCmVoPk</a></td></tr><tr><td><strong>Configuration &#x26; scoping</strong></td><td>Per-project memory with project scope.</td><td><a href="/pages/WSNXqM7PJEas18L3bBPP">/pages/WSNXqM7PJEas18L3bBPP</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.telys.ai/mcp/client-cursor-vscode.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
