Skip to content

Commit 6047af3

Browse files
Various polish for MCP docs
1 parent 72ffb85 commit 6047af3

File tree

5 files changed

+29
-10
lines changed

5 files changed

+29
-10
lines changed

docs-v2/components/AppSearchDemo.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ export default function AppSearchDemo() {
108108
name: app.name,
109109
icon: app.icon,
110110
})));
111-
setApps(data.apps);
111+
// Sort apps by featured_weight in descending order
112+
const sortedApps = [...data.apps].sort((a, b) => (b.featured_weight || 0) - (a.featured_weight || 0));
113+
setApps(sortedApps);
112114
} catch (err) {
113115
console.error("Error searching apps:", err);
114116
setError("Failed to search apps. Please try again.");
@@ -180,7 +182,7 @@ export default function AppSearchDemo() {
180182
<img
181183
src={app.icon}
182184
alt={app.name}
183-
className="w-10 h-10 rounded"
185+
className="w-10 h-10 rounded bg-white border border-gray-200 dark:border-gray-600 p-1"
184186
/>
185187
)}
186188
<div className="flex-1">

docs-v2/pages/api/demo-connect/apps.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ async function appsHandler(req, res) {
6363
name_slug: app.name_slug,
6464
description: app.description,
6565
icon: app.img_src,
66+
featured_weight: app.featured_weight,
6667
categories: app.categories || [],
6768
}));
6869

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
22
"index": "Overview",
33
"developers": "Developers",
4-
"users": "Consumers",
54
"openai": "OpenAI",
5+
"users": "Consumers",
66
} as const

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

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,29 @@ Pipedream's MCP server code is [publicly available on GitHub](https://github.com
1111
1. [Use Pipedream's remote MCP server](#use-pipedreams-remote-mcp-server)
1212
2. [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

1620
The 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

3538
1. A [Pipedream account](https://pipedream.com/auth/signup)
3639
2. 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
```
7477
https://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

182185
Include 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
185198
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
186199
import { createBackendClient } from "@pipedream/sdk/server";

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ You can use Pipedream's MCP servers in two ways:
3333
1. **[As an end user](/connect/mcp/users)**: Connect your accounts through our hosted MCP servers at [mcp.pipedream.com](https://mcp.pipedream.com)
3434
2. **[As a developer](/connect/mcp/developers)**: Host your own MCP servers for your application or organization
3535

36+
<Callout type="info">
37+
**Try out Pipedream MCP in our demo app: [chat.pipedream.com](https://chat.pipedream.com)**
38+
</Callout>
3639

3740
## Security
3841

0 commit comments

Comments
 (0)