# Rewalto MCP in VS Code

To connect VS Code to Rewalto, add the server address https://mcp.rewalto.com/mcp and send your API key as an Authorization: Bearer header. The server has 102 tools as of 7 November 2026, 1:20 am IST; 51 are free to call.

## Get an API key

1. Create an API key for your organisation, as the API keys guide explains. Its secret is shown once, when the key is created; copy it then.
2. For an agent that only reads, give the key data:read and usage:read. Add tools:run only for an agent allowed to propose and approve spending.
3. Every request to the MCP server needs the key, the free catalogue tools included. Put it in the placeholder below (rwk_your_key, or the environment variable the snippet names).

API keys guide: https://rewalto.com/developers/docs/api-keys

## Add Rewalto to VS Code

Add the server to .vscode/mcp.json in your workspace, or to the mcp.json of your user profile to use it in every workspace.

.vscode/mcp.json:

```json
{
  "inputs": [
    { "type": "promptString", "id": "rewalto-api-key", "description": "Rewalto API key", "password": true }
  ],
  "servers": {
    "rewalto": {
      "type": "http",
      "url": "https://mcp.rewalto.com/mcp",
      "headers": { "Authorization": "Bearer ${input:rewalto-api-key}" }
    }
  }
}
```

VS Code asks for the key the first time the server starts, hides it as you type, and keeps it out of the file.

## Check the connection

1. Reach the server. Run MCP: List Servers from the Command Palette: rewalto is listed as running, and its tools appear in the chat's tool list. Rewalto's live tool list has 102 tools; the ones marked for a signed-in dashboard only are refused to an API key. If it shows an error, the key is missing or not accepted: the server answers 401 to a request without a valid key.
2. Call a free tool. Ask the agent: "Use Rewalto's list_catalogue_categories tool and list the categories." The tool is free and spends no credits.
3. Read a result. The answer lists Rewalto's catalogue categories. They match the public list at https://api.rewalto.com/v1/catalogue/categories, which needs no key.

## Check the key from a terminal

```sh
curl -sS https://mcp.rewalto.com/mcp \
  -H 'content-type: application/json' -H 'accept: application/json, text/event-stream' \
  -H "authorization: Bearer $REWALTO_API_KEY" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"whoami","arguments":{}}}'
```

The answer names your organisation, with credential kind api_key and the key's permissions. It spends nothing.

## Questions people ask

### Do I need an API key to use Rewalto in VS Code?

Yes. Every request to the MCP server needs a credential, the free catalogue tools included. Send an API key as Authorization: Bearer followed by the key.

### Does connecting cost credits?

No. Connecting, listing the tools and calling the free tools cost nothing. A tool marked as spending credits charges only for data delivered, at the published rate, and a run that delivers nothing costs nothing.

### Which permissions should the key have?

data:read opens the data reads and usage:read the credit balance and usage. Add tools:run only for an agent allowed to create and approve quotes; a tool whose permission the key lacks is refused.

### Where do the VS Code settings come from?

From VS Code's MCP configuration reference, with Rewalto's server address and header filled in. If VS Code changes its format, its documentation decides.

## Other clients

- [Rewalto MCP in Cursor](https://rewalto.com/developers/mcp/install/cursor)
- [Rewalto MCP in Claude Desktop](https://rewalto.com/developers/mcp/install/claude-desktop)
- [Rewalto MCP in Claude Code](https://rewalto.com/developers/mcp/install/claude-code)
- [Rewalto MCP in Windsurf](https://rewalto.com/developers/mcp/install/windsurf)
- [Rewalto MCP in Cline](https://rewalto.com/developers/mcp/install/cline)
- [Rewalto MCP in Zed](https://rewalto.com/developers/mcp/install/zed)
- [Rewalto MCP in Codex](https://rewalto.com/developers/mcp/install/codex)

## Related

- [Rewalto MCP server tools](https://rewalto.com/developers/mcp)
- [API keys](https://rewalto.com/developers/docs/api-keys)
- [API, CLI and MCP reference](https://rewalto.com/developers/docs/cli-mcp)
- [Quick commerce MCP server for India](https://rewalto.com/guides/mcp-server-india-data)
- [VS Code's MCP configuration reference](https://code.visualstudio.com/docs/agents/reference/mcp-configuration)

---

Canonical page: https://rewalto.com/developers/mcp/install/vs-code
Last content change: 2026-11-06
