create_connection
Set up new app connections for workflow automation by providing app credentials and configuration details.
Instructions
Create a new app connection
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appKey | Yes | App identifier (e.g., 'slack', 'github') | |
| name | Yes | Connection name | |
| credentials | Yes | App-specific credentials and configuration |
Implementation Reference
- src/handlers.ts:337-345 (handler)MCP tool handler for create_connection: calls main.api.createConnection(args) and formats response as JSON text.case "create_connection": return { content: [ { type: "text", text: JSON.stringify(await main.api.createConnection(args), null, 2) } ] };
- src/handlers.ts:118-139 (schema)Input schema and metadata for the create_connection tool, provided in ListTools response.{ name: "create_connection", description: "Create a new app connection", inputSchema: { type: "object", properties: { appKey: { type: "string", description: "App identifier (e.g., 'slack', 'github')" }, name: { type: "string", description: "Connection name" }, credentials: { type: "object", description: "App-specific credentials and configuration" } }, required: ["appKey", "name", "credentials"] } },
- src/api.ts:27-29 (helper)Helper function main.api.createConnection invoked by the tool handler (currently a stub).createConnection: async function(data: any) { // ... copy createConnection logic from index.ts ... },
- src/server.ts:35-35 (helper)Initializes the 'api' object on the main server instance, providing access to createConnection helper.public api = apiHelpers(this);
- src/server.ts:30-31 (registration)Registers all MCP handlers including tools and call tool handler for create_connection.// Setup all request handlers setupHandlers(this.server, this);