@@ -11,26 +11,29 @@ Pipedream's MCP server code is [publicly available on GitHub](https://github.com
11111 . [ Use Pipedream's remote MCP server] ( #use-pipedreams-remote-mcp-server )
12122 . [ Self-host Pipedream's MCP server] ( #self-host-pipedreams-mcp-server )
1313
14+ <Callout type = " info" >
15+ ** Try out Pipedream MCP in our demo app: [ chat.pipedream.com] ( https://chat.pipedream.com ) **
16+ </Callout >
17+
1418### Pipedream concepts to understand
1519
1620The MCP server accepts two route params:
1721
1822** ` external_user_id ` **
1923
2024- This is your user’s ID, in your system: whatever you use to uniquely identify them
21- - Any requests made to that route are coupled to that end user and uses the connected account tied to that user
22- - [ See here] ( /connect/api/#external-users ) for more detail
25+ - Requests made for that user ID are coupled to that end user and their connected accounts ([ learn more] ( /connect/api/#external-users ) )
2326
2427** ` app ` **
2528
2629- The app's "name slug" (the unique identifier for the app)
27- - [ See below] ( #discover-available-mcp-servers ) for discovering available apps
30+ - [ See below] ( #discover-available-mcp-servers ) for learn how to discover available apps
2831
2932## Getting started
3033
3134### Prerequisites
3235
33- For either option , you'll need:
36+ To use either the remote or self-hosted MCP server , you'll need:
3437
35381 . A [ Pipedream account] ( https://pipedream.com/auth/signup )
36392 . A [ Pipedream project] ( /projects/#creating-projects ) . Accounts connected via MCP will be stored here.
@@ -67,8 +70,8 @@ You can handle account connections in one of two ways in your app:
6770
6871##### Return a link
6972- Use [ Connect Link ] ( /connect/managed-auth/quickstart/#or-use-connect-link ) to let your users open a Pipedream hosted page to connect their account
70- - There is no implementation required for this option since it's already handled in Pipedream's MCP server
71- - If a user doesn't have a connected account that's required for a given tool call, we'll return a URL in the tool call response. For example :
73+ - There's no implementation required for this option since it's already handled by Pipedream's MCP server
74+ - If a user doesn't have a connected account that's required for a given tool call, the server will return a URL in the tool call response:
7275
7376```
7477https://pipedream.com/_static/connect.html?token=ctok_xxxxxxx&connectLink=true&app={appSlug}
@@ -131,7 +134,7 @@ The remote MCP server is in beta, and we're looking for feedback. During the bet
131134
132135#### Supported transport types
133136
134- The Pipedream MCP server supports both SSE and streamable HTTP transport types, with no configuration required by the developer or MCP client.
137+ The Pipedream MCP server supports both SSE and streamable HTTP transport types dynamically , with no configuration required by the developer or MCP client.
135138
136139#### Base URL
137140
@@ -181,6 +184,16 @@ curl -s -X POST https://api.pipedream.com/v1/oauth/token \
181184
182185Include these headers in every HTTP request:
183186
187+ ``` javascript
188+ {
189+ " Authorization" : ` Bearer ${ accessToken} ` ,
190+ " x-pd-project-id" : PIPEDREAM_PROJECT_ID , // proj_xxxxxxx
191+ " x-pd-environment" : PIPEDREAM_ENVIRONMENT // development | production
192+ }
193+ ```
194+
195+ Example request:
196+
184197``` javascript
185198import { StreamableHTTPClientTransport } from " @modelcontextprotocol/sdk/client/streamableHttp.js" ;
186199import { createBackendClient } from " @pipedream/sdk/server" ;
0 commit comments