> For the complete documentation index, see [llms.txt](https://mcp-test-kitchen-docs.cakewalk.security/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mcp-test-kitchen-docs.cakewalk.security/start-here/connect-a-client.md). Agents can also search and read this documentation through its [MCP server](https://mcp-test-kitchen-docs.cakewalk.security/~gitbook/mcp).

# Connect a Client

The configuration object, what your client has to support and how to confirm the connection landed.

One endpoint, one header. The server has no OAuth flow and no discovery document, so whatever your client needs to reach it, it needs from you.

***

## The Configuration

The token modal in the console generates this with your own values already in it. Copy from there rather than typing it.

```json
{
  "mcpServers": {
    "mcp-test-kitchen": {
      "url": "https://mcp-test-kitchen.cakewalk.security/mcp",
      "headers": {
        "Authorization": "Bearer mcp_..."
      }
    }
  }
}
```

| Field           | Value                                                                     |
| --------------- | ------------------------------------------------------------------------- |
| `url`           | The endpoint. Always ends in `/mcp`                                       |
| `Authorization` | `Bearer` followed by your personal access token, which starts with `mcp_` |
| The server key  | A local name. Change it freely, your client uses it as a label            |

Most clients that support remote MCP servers read this shape from a JSON configuration file. If yours takes the URL and headers through a form instead, the two values above are all it needs.

***

## What Your Client Has to Support

Two requirements, and one of them rules clients out.

**Streamable HTTP.** The server speaks MCP over streamable HTTP at a single path. There is no stdio option, because the point of the exercise is a remote server on the other side of a network.

**A custom request header.** This is the one that rules clients out. The server authenticates a static bearer token and publishes no OAuth metadata, so a client that only knows how to add a remote server through an OAuth sign in flow cannot connect. Check your specific client surface rather than the vendor, because header support and OAuth support vary between surfaces from the same vendor.

{% hint style="info" %}
The `elicitation.approval` scenario adds a third requirement on top of these two: your client has to speak the 2026-07-28 revision. The server asks for approval by returning an input required result, and your client answers by retrying the call with the user's response. The server never sends `elicitation/create`, and a client on 2025-11-25 gets an `unsupported` outcome. Every other scenario runs on any client that connects, though parts of `compat.sdk_v2` also need 2026-07-28.
{% endhint %}

***

## No Client Yet

The **MCP access token** dialog has a collapsed **Test clients (2026-07-28)** section. Open it and click **Open TypeScript client on GitHub** for a reference client that pins the 2026-07-28 revision. Clone it, set `MCP_URL` to the server origin (`https://mcp-test-kitchen.cakewalk.security`, without `/mcp`) and `MCP_PAT` to your personal access token, then run it locally.

C# and Python are listed in the console as "(soon)" and not available yet.

***

## Confirm the Connection

Connect, then look at the Messages pane. A client on 2025-11-25 produces an `INITIALIZE` entry followed by `CLIENT INITIALIZED`. A client on 2026-07-28 starts with `SERVER DISCOVER` and may never send `initialize`. Most clients follow with a `DISCOVERY` entry for `tools/list`.

Open the first entry. The detail drawer carries the protocol revision your client declared and the recorded request headers, which together answer what your client negotiated rather than what its documentation claims it negotiates.

If the pane stays empty, work through [If Nothing Appears](https://mcp-test-kitchen-docs.cakewalk.security/start-here/quickstart.md#if-nothing-appears) in the Quickstart. A rejected token produces no entry you can see.

***

## Applying a Scenario

Saving a scenario in the console applies it on your client's next request, with no reconnect needed. The transport is stateless, so the server reads your saved selection on every request. Changing the scenario or its parameters starts a fresh scenario session with its counters at zero.

HTTP layer faults are decided before the server reads your selection, so requests right after a save can still run the previous scenario. Click **Terminate** after saving and the saved scenario applies to every request from then on.

{% hint style="warning" %}
Saving or reconnecting with the same scenario and the same parameters reuses your existing session, including its invocation counter. Click **Terminate** in the Scenarios pane to force a fresh session before a run that depends on `onInvocation`.
{% endhint %}

You hold one active scenario session at a time. See [How Scenarios Work](https://mcp-test-kitchen-docs.cakewalk.security/scenarios/scenarios.md) for the counters.

***

## Rotating the Token

**Regenerate** in the token modal issues a new token and invalidates the old one immediately. Any client still configured with the previous token starts failing with 401 at the next request, so update every client you have configured, not only the one in front of you.
