# Langdock

Langdock supports four authentication methods for external MCP servers. Use **OAuth Authentication** for Cakewalk's gateway; Langdock auto-registers itself via Dynamic Client Registration.

## Install Method

Custom form in Langdock's MCP integration settings. Langdock differentiates **OAuth Authentication** (DCR-enabled, automatic) from **Advanced OAuth Authentication** (manual Client ID / Secret entry). Cakewalk's gateway supports DCR, so use the simple OAuth option.

## Step 1: Open MCP Integration Settings

1. Open Langdock and sign in.
2. Open MCP integration settings.

## Step 2: Add the Cakewalk Gateway

1. Enter the URL: `https://mcp-gateway.getcakewalk.io/mcp`.
2. Select authentication method **OAuth Authentication**. Do not select Advanced OAuth — Cakewalk's gateway supports DCR.
3. Click **+ Add connection** to initiate the OAuth flow.

## Step 3: Authenticate

Langdock opens the OAuth consent flow in your browser. Sign in with your Cakewalk account and approve the Connection. Langdock auto-registers itself via Cakewalk's Dynamic Client Registration endpoint and stores the resulting credentials.

## Step 4: Test the Connection

1. Click **Test Connection**. Langdock verifies access and discovers the available tools from Cakewalk's gateway.
2. Select which tools to enable on this integration.

## Step 5: Save

Press **CMD + S** (Mac) or **Ctrl + S** (Windows) to save.

## Verifying It Works

In a Langdock Assistant or Custom App that has Cakewalk's tools enabled, ask the assistant to list its available tools. The tools surfaced through the Cakewalk gateway appear in the response. In Cakewalk, the Langdock card on **My Agents** flips to **Connected** after the first agent call.

## Troubleshooting

* **+ Add connection does not open the OAuth flow:** confirm you selected **OAuth Authentication**, not Advanced OAuth Authentication. The Advanced option expects manual Client ID / Secret / Authorization URL / Token URL and will not initiate a DCR flow.
* **Test Connection times out:** confirm `mcp-gateway.getcakewalk.io` is reachable from Langdock's servers, then retry.

## Learn more

* [MCP integration in Langdock](https://docs.langdock.com/resources/integrations/mcp) from Langdock.


---

# Agent Instructions: 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:

```
GET https://www.cakewalk.security/docs/ai-agent-access/connections-and-integrations/agent-platforms/langdock.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
