Skip to content

Commit 61cd2a2

Browse files
committed
feat: add Pipedream MCP support
1 parent e131fca commit 61cd2a2

3 files changed

Lines changed: 441 additions & 0 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import { INodeParams, INodeCredential } from '../src/Interface'
2+
3+
class PipedreamOAuthApiCredential implements INodeCredential {
4+
label: string
5+
name: string
6+
version: number
7+
description: string
8+
inputs: INodeParams[]
9+
10+
constructor() {
11+
this.label = 'Pipedream Connect'
12+
this.name = 'pipedreamOAuthApi'
13+
this.version = 1.0
14+
this.description =
15+
'Authenticate with Pipedream Connect <a target="_blank" href="https://pipedream.com/docs/connect/api-reference/authentication">Documentation here</a>'
16+
this.inputs = [
17+
{
18+
label: 'Client ID',
19+
name: 'clientId',
20+
type: 'string',
21+
placeholder: 'oa_xxxxxxx'
22+
},
23+
{
24+
label: 'Client Secret',
25+
name: 'clientSecret',
26+
type: 'password'
27+
},
28+
{
29+
label: 'Project ID',
30+
name: 'projectId',
31+
type: 'string',
32+
placeholder: 'proj_xxxxxxx'
33+
},
34+
{
35+
label: 'OAuth Scopes',
36+
name: 'oauthScopes',
37+
type: 'string',
38+
optional: true,
39+
placeholder: 'connect:*',
40+
description:
41+
'Space-separated list of scopes (e.g., connect:* connect:actions:*). Omitting defaults to * (full access). <a target="_blank" href="https://pipedream.com/docs/connect/api-reference/authentication">Available scopes</a>'
42+
}
43+
]
44+
}
45+
}
46+
47+
module.exports = { credClass: PipedreamOAuthApiCredential }

0 commit comments

Comments
 (0)