> For the complete documentation index, see [llms.txt](https://docs.mozilla.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mozilla.ai/mcpd/integrations/ide-integration.md). Agents can also search and read this documentation through its [MCP server](https://docs.mozilla.ai/~gitbook/mcp).

# IDE Integration

[`mcpd-proxy`](https://github.com/mozilla-ai/mcpd-proxy) is an MCP server that puts every server `mcpd` manages in front of an IDE as a single connection.

An IDE expects to speak MCP over stdio and to manage each server itself. `mcpd` speaks HTTP and already manages the servers. The proxy sits between the two, so the IDE configuration stays one entry no matter how many servers `.mcpd.toml` declares.

```mermaid
flowchart LR
    ide["IDE (VS Code, Cursor)"] <-->|MCP over stdio| proxy["mcpd-proxy"]
    proxy <-->|HTTP REST| daemon["mcpd daemon"]
    daemon <-->|stdio| servers["MCP servers"]
```

Tools, resources, and prompts from every server are aggregated into one MCP interface. The proxy holds no configuration of its own beyond the daemon address.

***

## Prerequisites

* [Node.js](https://nodejs.org) 22.10.0 or later.
* A running `mcpd` daemon. See [Installation](https://docs.mozilla.ai/mcpd/installation.md).

The proxy is published to npm, so `npx` fetches it on demand and nothing needs installing first.

***

## Configuration

The proxy reads two environment variables:

| Variable       | Description                           | Default                 |
| -------------- | ------------------------------------- | ----------------------- |
| `MCPD_ADDR`    | Address of the `mcpd` daemon API      | `http://localhost:8090` |
| `MCPD_API_KEY` | API key, when the daemon requires one | *(not set)*             |

### VS Code

Add a server to your MCP settings file:

```json
{
  "servers": {
    "mcpd": {
      "type": "stdio",
      "command": "npx",
      "args": ["@mozilla-ai/mcpd-proxy"],
      "env": {
        "MCPD_ADDR": "http://localhost:8090"
      }
    }
  }
}
```

Reload the window (`Developer: Reload Window`), then check the MCP panel for the aggregated tools.

### Cursor

Add the same server to `.cursor/mcp.json` in the project, or `~/.cursor/mcp.json` to apply it everywhere:

```json
{
  "mcpServers": {
    "mcpd": {
      "command": "npx",
      "args": ["@mozilla-ai/mcpd-proxy"],
      "env": {
        "MCPD_ADDR": "http://localhost:8090"
      }
    }
  }
}
```

Reload Cursor to pick up the change.

***

## Naming

Two servers can offer a tool of the same name, so the proxy qualifies everything it exposes with the server that provides it:

|           | Exposed as                       | Example                             |
| --------- | -------------------------------- | ----------------------------------- |
| Tools     | `{server}__{tool}`               | `time__get_current_time`            |
| Prompts   | `{server}__{prompt}`             | Same convention as tools            |
| Resources | `mcpd://{server}/{resource_uri}` | `mcpd://filesystem/documents/a.txt` |

{% hint style="info" %}
**Refresh the IDE after changing the server list**

The proxy does not yet notify an IDE when the set of tools changes. After `mcpd add` or a daemon restart, reload the IDE window so it requests the tool list again.
{% endhint %}

***

## Troubleshooting

If the IDE reports no tools, confirm the daemon is reachable at the address the proxy was given:

```bash
curl -s http://localhost:8090/api/v1/servers
```

A failure here is a daemon problem rather than a proxy one, so continue in [Troubleshooting](https://docs.mozilla.ai/mcpd/troubleshooting.md). If the daemon responds and the IDE still shows nothing, check the IDE's own MCP logs, as the proxy reports startup failures on `stderr`.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mozilla.ai/mcpd/integrations/ide-integration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
