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
@@ -8,7 +9,40 @@ Access {process.env.PUBLIC_APPS}+ APIs and 10,000+ tools in OpenAI using Pipedre
8
9
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 here](/connect/mcp/developers/#user-account-connections).
9
10
</Callout>
10
11
11
-
## Getting started
12
+
## Testing in OpenAI's API Playground
13
+
14
+
OpenAI provides an API playground for developers to test prompts and tool calling, which provides an easy way to test Pipedream MCP. Get started below.
15
+
16
+
<Steps>
17
+
18
+
#### Open the playground
19
+
20
+
Navigate to [OpenAI's playground](https://platform.openai.com/playground/prompts?models=gpt-4.1) and sign in with your OpenAI account.
21
+
22
+
#### Add Pipedream MCP
23
+
24
+
Click the **Create** button in the **Tools** section, then select **Pipedream**.
25
+
26
+
#### Enter your access token
27
+
28
+
<TemporaryTokenGenerator />
29
+
30
+
#### Select an app
31
+
32
+
- Select an app you want to use as an MCP server. For example, `notion`, `google_calendar`, `gmail`, or `slack`.
33
+
- Check out all of the available apps here: [mcp.pipedream.com](https://mcp.pipedream.com).
34
+
35
+
#### Click **Connect**
36
+
37
+
Enter a prompt and start chatting!
38
+
39
+
</Steps>
40
+
41
+
<Callouttype="info">
42
+
Refer to the instructions below when you're ready to use Pipedream MCP in your app.
1. Open an existing Pipedream project or create a new one at [pipedream.com/projects](https://pipedream.com/projects)
165
-
2. Click the **Settings** tab, then copy your **Project ID**
166
-
167
-
### Define the environment
168
-
169
-
- Since you're testing for yourself, you should use `development`
170
-
- Use `production` when you're ready to ship your app to users
171
-
172
-
### Generate an access token
173
-
174
-
**First, create an OAuth client in Pipedream:**
175
-
176
-
1. Visit the [API settings](https://pipedream.com/settings/api) for your workspace
177
-
2. Click the **New OAuth Client** button and give it a name
178
-
3. Copy the client ID and secret
179
-
180
-
**Next, get an access token:**
181
-
182
-
In the client credentials model, as a developer, you exchange your OAuth client ID and secret for a short-lived access token to make API requests.
183
-
184
-
<Tabs items={['Node.js', 'cURL']}>
185
-
<Tabs.Tab>
186
-
```javascript
187
-
import { createBackendClient } from "@pipedream/sdk/server";
188
-
189
-
// Initialize the Pipedream SDK client
190
-
const pd = createBackendClient({
191
-
environment: PIPEDREAM_ENVIRONMENT,
192
-
credentials: {
193
-
clientId: PIPEDREAM_CLIENT_ID,
194
-
clientSecret: PIPEDREAM_CLIENT_SECRET,
195
-
},
196
-
projectId: PIPEDREAM_PROJECT_ID
197
-
});
198
-
199
-
const accessToken = await pd.rawAccessToken();
200
-
201
-
console.log(accessToken);
202
-
```
203
-
</Tabs.Tab>
204
-
<Tabs.Tab>
205
-
```bash
206
-
curl https://api.pipedream.com/v1/oauth/token \
207
-
-H 'Content-Type: application/json' \
208
-
-d '{
209
-
"grant_type": "client_credentials",
210
-
"client_id": "<PIPEDREAM_CLIENT_ID>",
211
-
"client_secret": "<PIPEDREAM_CLIENT_SECRET>"
212
-
}'
213
-
```
214
-
</Tabs.Tab>
215
-
</Tabs>
216
-
217
-
</Steps>
218
-
219
-
### Playground limitations
220
-
221
-
- The server URL that's defined in OpenAI's playground uses two static fields. In practice, you'll define those dynamically in your app:
222
-
- `external_user_id`: `demo-openai-user-123`
223
-
- `app_slug`: `google_calendar`
224
-
- You'll also define the `PIPEDREAM_PROJECT_ID` and `PIPEDREAM_ENVIRONMENT` in your environment once, then use the Pipedream SDK or REST API to get a fresh access token.
0 commit comments