Skip to main content

Prerequisites

Before we begin, you’ll need OpenAI API key and Klavis API key.

Installation

First, install the required packages:

Setup Environment Variables

Step 1 - Create Strata MCP Server with Gmail and Slack

OAuth Authorization Required: The code above will open browser windows for each service. Click through the OAuth flow to authorize access to your accounts.

Step 2 - Create method to use MCP Server with OpenAI

This method handles multiple rounds of tool calls until a final response is ready, allowing the AI to chain tool executions for complex tasks.

Step 3 - Run!

Perfect! You’ve integrated OpenAI with Klavis MCP servers.

Next Steps

Integrations

Explore available MCP servers

API Reference

REST endpoints and schemas

Useful Resources

Happy building! 🚀