Integrate

Built-in Plugins

Explore the built-in plugins for GitHub, Gmail, and more

Built-in Plugins

The Integrate SDK comes with several built-in plugins for popular services. Each plugin provides a type-safe interface to the service's tools.

Available Plugins

How Plugins Work

Plugins are the core of the Integrate SDK's architecture. They:

  1. Define OAuth configuration - Client ID, secret, scopes, and redirect URI
  2. Specify tools - Which tools from the MCP server to enable
  3. Provide lifecycle hooks - onInit, onBeforeConnect, onAfterConnect, onDisconnect
  4. Type safety - Full TypeScript support with IntelliSense

Using Multiple Plugins

You can use multiple plugins together:

import { createMCPClient, githubPlugin, gmailPlugin } from "integrate-sdk";

const client = createMCPClient({
  plugins: [
    githubPlugin({
      clientId: process.env.GITHUB_CLIENT_ID!,
      clientSecret: process.env.GITHUB_CLIENT_SECRET!,
    }),
    gmailPlugin({
      clientId: process.env.GMAIL_CLIENT_ID!,
      clientSecret: process.env.GMAIL_CLIENT_SECRET!,
    }),
  ],
});

Plugin Configuration

All OAuth plugins share a common configuration structure:

{
  clientId: string;      // OAuth client ID
  clientSecret: string;  // OAuth client secret
  scopes?: string[];     // OAuth scopes (optional, has defaults)
  redirectUri?: string;  // OAuth redirect URI (optional)
}

Next Steps