Skip to content

Commit a37360e

Browse files
Connect token opts and oauth_app_id (#17249)
1 parent ee1dc02 commit a37360e

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

docs-v2/pages/connect/mcp/developers.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ curl -s -X POST https://api.pipedream.com/v1/oauth/token \
302302
#### Params
303303

304304
- Below are params that you should send with every HTTP request to Pipedream's MCP server.
305-
- To enable broad support for various MCP clients, you can pass these params via HTTP headers **or** as query params on the URL.
305+
- To enable broad support for various MCP clients, you can pass most of these params via HTTP headers **or** as query params on the URL.
306306

307307
<br />
308308

@@ -314,6 +314,10 @@ curl -s -X POST https://api.pipedream.com/v1/oauth/token \
314314
| `x-pd-external-user-id` | `externalUserId` | `<your-users-id>` | Yes |
315315
| `x-pd-app-slug` | `app` | `linear`, `notion`, etc | Yes |
316316
| `x-pd-tool-mode` | `toolMode` | `sub-agent`, `tools-only` | No <br /> Defaults to `sub-agent` |
317+
| `x-pd-oauth-app-id` | Must be passed as header | `oa_xxxxxxx` <br /> <br /> More info [here](/connect/managed-auth/oauth-clients) | No |
318+
| `x-pd-webhook-uri` | Must be passed as header | More info [here](/connect/managed-auth/webhooks) | No |
319+
| `x-pd-error-redirect-uri` | Must be passed as header | More info [here](/connect/managed-auth/connect-link/#success-and-error-redirect-urls) | No |
320+
| `x-pd-success-redirect-uri` | Must be passed as header | More info [here](/connect/managed-auth/connect-link/#success-and-error-redirect-urls) | No |
317321
</div>
318322

319323
#### Example request
@@ -344,6 +348,8 @@ const transport = new StreamableHTTPClientTransport(new URL(serverUrl), {
344348
"x-pd-environment": PIPEDREAM_ENVIRONMENT, // development | production
345349
"x-pd-external-user-id": EXTERNAL_USER_ID, // the user's ID from your system
346350
"x-pd-app-slug": APP_SLUG, // notion, linear, gmail, etc
351+
"x-pd-oauth-app-id": OAUTH_APP_ID, // oa_xxxxxxx, include if using a custom OAuth client
352+
347353
}
348354
}
349355
});

pnpm-lock.yaml

Lines changed: 12 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)