You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Access {process.env.PUBLIC_APPS}+ APIs and 10,000+ tools in OpenAI using Pipedream MCP with the [OpenAI Responses API](https://platform.openai.com/docs/guides/tools?api-mode=responses). MCP makes it easy to extend the capabilties of any LLM or agent, and Pipedream offers drop-in support for OpenAI.
5
+
Access {process.env.PUBLIC_APPS}+ APIs and 10,000+ tools in OpenAI using Pipedream Connect. MCP makes it easy to extend the capabilities of any LLM or agent, and Pipedream offers drop-in support for [calling tools in OpenAI](https://platform.openai.com/docs/guides/tools?api-mode=responses).
6
6
7
7
<Callouttype="info">
8
-
Pipedream MCP includes built-in user authentication for [every integrated API](https://pipedream.com/apps/), which means you don't need to build any authorization flows or think about token storage or refresh. [Learn more here](#account-connection).
8
+
Pipedream Connect includes built-in user authentication for [every MCP server](https://mcp.pipedream.com), which means you don't need to build any authorization flows or deal with token storage and refresh in order to make authenticated requests on behalf of your users. [Learn more below](#account-connection).
9
9
</Callout>
10
10
11
-
## Getting Started
11
+
### Getting started
12
+
13
+
<Steps>
14
+
15
+
### Set up your environment
16
+
12
17
To use Pipedream MCP with your own users, you need the following:
13
18
14
19
1. A [Pipedream account](https://pipedream.com/auth/signup)
15
-
2. A [Pipedream project](/projects/#creating-projects). Accounts connected via MCP will be stored here.
20
+
2. A [Pipedream project](/projects/#creating-projects) (accounts connected via MCP will be stored here)
These are requiremnents for you, the developer. Your users do **not** need to sign up for Pipedream in order to connect their accounts in your app or agent.
24
+
These are requirements for you, the developer. Your users do **not** need to sign up for Pipedream in order to connect their accounts in your app or agent.
20
25
</Callout>
21
26
22
-
#### Set up environment variables
23
-
24
-
Set the following environment variables (learn more about environments in Pipedream Connect [here](/connect/managed-auth/environments/)):
27
+
Now set the following environment variables (learn more about environments in Pipedream Connect [here](/connect/managed-auth/environments/)):
25
28
26
29
```bash
30
+
OPENAI_API_KEY=your_openai_api_key
27
31
PIPEDREAM_CLIENT_ID=your_client_id
28
32
PIPEDREAM_CLIENT_SECRET=your_client_secret
29
33
PIPEDREAM_PROJECT_ID=your_project_id
30
34
PIPEDREAM_ENVIRONMENT=development
31
35
```
32
36
33
-
### Examples
37
+
### Discover available MCP servers
38
+
39
+
Pipedream provides [{process.env.PUBLIC_APPS}+ APIs as MCP servers](https://mcp.pipedream.com) that can be used with OpenAI's tool calls. Each server corresponds to an app integration (like Notion, Gmail, or Slack) and has its own specific set of tools that you can expose to OpenAI.
40
+
41
+
<Tabsitems={['List all apps', 'Search for a specific app']}>
42
+
<Tabs.Tab>
43
+
```javascript
44
+
// Get all available apps (paginated)
45
+
constapps=awaitpd.getApps();
46
+
47
+
// Each app has these key properties:
48
+
// - name_slug: Used in the MCP server URL (e.g., "notion", "gmail", "slack")
49
+
// - name: Display name (e.g., "Notion", "Gmail", "Slack")
50
+
```
51
+
</Tabs.Tab>
52
+
<Tabs.Tab>
53
+
```javascript
54
+
// Search by app name
55
+
constnotionApps=awaitpd.getApps({ q:"notion" });
56
+
constgmailApps=awaitpd.getApps({ q:"gmail" });
57
+
constslackApps=awaitpd.getApps({ q:"slack" });
58
+
```
59
+
</Tabs.Tab>
60
+
</Tabs>
34
61
35
-
<Tabsitems={['JavaScript', 'cURL']}>
62
+
### Generate a model response in OpenAI with Pipedream MCP
63
+
64
+
Below is an end to end example showing how to:
65
+
1. Initialize the Pipedream SDK
66
+
2. Find the relevant MCP server
67
+
3. Send a prompt to OpenAI with the MCP server as a tool call
@@ -126,11 +165,11 @@ curl -X POST https://api.openai.com/v1/chat/completions \
126
165
```
127
166
</Tabs.Tab>
128
167
</Tabs>
129
-
168
+
</Steps>
130
169
131
170
## Account Connection
132
171
133
-
One of the core features of Pipedream Connect and our MCP product is the ability for your users to easily connect their accounts without having to build any of the authorization flow or handle token storage, etc.
172
+
One of the core features of Pipedream Connect and our MCP product is the ability for your users to easily connect their accounts without having to build any of the authorization flow or handle token storage.
134
173
135
174
You can handle account connections in one of two ways in your app:
136
175
@@ -140,7 +179,7 @@ You can handle account connections in one of two ways in your app:
140
179
141
180
### Return a link
142
181
- Use [Connect Link ](/connect/managed-auth/quickstart/#or-use-connect-link) to let your users open a Pipedream hosted page to connect their account
143
-
- There isn't any implementation required for this option since it's already handled in Pipedream's MCP server
182
+
- There is no implementation required for this option since it's already handled in Pipedream's MCP server
144
183
- 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:
0 commit comments