### Install Dependencies and Run Development Server Source: https://github.com/pipedreamhq/pipedream-connect-examples/blob/master/managed-auth-basic-next-app/README.md Install project dependencies using npm and start the local development server. ```bash npm i # installs dependencies ``` ```bash npm run dev # runs app locally ``` -------------------------------- ### Install Dependencies with pnpm Source: https://github.com/pipedreamhq/pipedream-connect-examples/blob/master/mcp/openai-sdk/README.md Run this command to install the necessary project dependencies before executing the example. ```bash pnpm install ``` -------------------------------- ### Run AI SDK Example Source: https://github.com/pipedreamhq/pipedream-connect-examples/blob/master/mcp/README.md Executes the AI SDK example CLI command with a user ID and a Slack message prompt. ```bash pnpm ai-sdk -u "Send a funny joke to the #random channel in Slack" ``` -------------------------------- ### Run OpenAI SDK Example Source: https://github.com/pipedreamhq/pipedream-connect-examples/blob/master/mcp/README.md Executes the OpenAI SDK example CLI command with a user ID and a Slack message prompt. ```bash pnpm openai-sdk -u "Send a funny joke to the #random channel in Slack" ``` -------------------------------- ### AI SDK Usage with Options Source: https://github.com/pipedreamhq/pipedream-connect-examples/blob/master/mcp/ai-sdk/README.md Run the start command with additional options to specify the AI model and maximum conversation steps. ```bash pnpm start -u your-user-id "Create a Linear ticket for the bug I found" --model gpt-4 --max-steps 15 ``` -------------------------------- ### Build connect-react with Watch Mode Source: https://github.com/pipedreamhq/pipedream-connect-examples/blob/master/connect-react-demo/README.md Navigate to the `connect-react` package directory, install its dependencies, and start the build process in watch mode to automatically recompile on changes. ```sh cd pipedream/packages/connect-react pnpm install pnpm watch ``` -------------------------------- ### Run the Demo App Source: https://github.com/pipedreamhq/pipedream-connect-examples/blob/master/connect-react-demo/README.md Start the development server for the Pipedream Connect React Demo app. ```sh pnpm dev ``` -------------------------------- ### Basic AI SDK Usage Source: https://github.com/pipedreamhq/pipedream-connect-examples/blob/master/mcp/ai-sdk/README.md Execute the start command with the required external user ID and a prompt for basic interaction. ```bash pnpm start -u your-user-id "Send a message to Slack saying hello" ``` -------------------------------- ### Copy Environment File Source: https://github.com/pipedreamhq/pipedream-connect-examples/blob/master/managed-auth-basic-next-app/README.md Copy the example environment file to a local file before filling in your environment variables. ```bash cp .env.example .env.local ``` -------------------------------- ### Copy Environment File Source: https://github.com/pipedreamhq/pipedream-connect-examples/blob/master/mcp/README.md Copies the example environment file to be edited with your API keys and Pipedream credentials. ```bash cp .env.example .env # Edit .env with your API keys and Pipedream credentials ``` -------------------------------- ### Run Demo App with Local connect-react Source: https://github.com/pipedreamhq/pipedream-connect-examples/blob/master/connect-react-demo/README.md In a separate terminal, navigate to the demo app directory, set up the `.env.local` file, and run the `make connect-react-dev` command to use your locally built `connect-react` package. ```sh cd pipedream-connect-examples/connect-react-demo cp .env.example .env.local make connect-react-dev ``` -------------------------------- ### Test connect-react Changes Source: https://github.com/pipedreamhq/pipedream-connect-examples/blob/master/connect-react-demo/README.md A sample code change demonstrating how to verify that your local `connect-react` modifications are being picked up by the demo app. This change prefixes app names with 'hello world!'. ```diff diff --git a/packages/connect-react/src/components/SelectApp.tsx b/packages/connect-react/src/components/SelectApp.tsx index 61fe7bd27..a9378297d 100644 --- a/packages/connect-react/src/components/SelectApp.tsx +++ b/packages/connect-react/src/components/SelectApp.tsx @@ -48,7 +48,7 @@ export function SelectApp({ /> {optionProps.data.name} + }}>hello world!{optionProps.data.name} ), ``` -------------------------------- ### OpenAI SDK Usage with Options Source: https://github.com/pipedreamhq/pipedream-connect-examples/blob/master/mcp/openai-sdk/README.md Utilize additional options like specifying the AI model and maximum conversation steps for more advanced interactions, such as creating a Linear ticket. ```bash pnpm start -u "Create a Linear ticket for the bug I found" --model gpt-4 --max-steps 15 ``` -------------------------------- ### Clone the Demo App Source: https://github.com/pipedreamhq/pipedream-connect-examples/blob/master/connect-react-demo/README.md Clone the Pipedream Connect React Demo application repository to your local machine. ```sh git clone https://github.com/PipedreamHQ/pipedream-connect-examples.git cd connect-react-demo ``` -------------------------------- ### Basic OpenAI SDK Usage Source: https://github.com/pipedreamhq/pipedream-connect-examples/blob/master/mcp/openai-sdk/README.md Execute the script with a required external user ID and a simple prompt to send a message to Slack. ```bash pnpm start -u "Send a message to Slack saying hello" ``` -------------------------------- ### Clone Repositories for Local Testing Source: https://github.com/pipedreamhq/pipedream-connect-examples/blob/master/connect-react-demo/README.md Clone both the demo app repository and the Pipedream repository to test local changes in the `connect-react` package. Ensure they are in the same parent directory. ```sh git clone https://github.com/PipedreamHQ/pipedream-connect-examples.git git clone https://github.com/PipedreamHQ/pipedream.git ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.