Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Remove all old assets from docs

Sushmithamallesh0e7c74b5cfd2
diff --git a/fern/assets/CohereHeadline-Bold.woff2 b/fern/assets/CohereHeadline-Bold.woff2
deleted file mode 100644
index f66a587b3..000000000
Binary files a/fern/assets/CohereHeadline-Bold.woff2 and /dev/null differ
diff --git a/fern/assets/CohereHeadline-Regular.woff2 b/fern/assets/CohereHeadline-Regular.woff2
deleted file mode 100644
index 754e93cd1..000000000
Binary files a/fern/assets/CohereHeadline-Regular.woff2 and /dev/null differ
diff --git a/fern/assets/CohereMono-Regular.woff2 b/fern/assets/CohereMono-Regular.woff2
deleted file mode 100644
index 765b259a9..000000000
Binary files a/fern/assets/CohereMono-Regular.woff2 and /dev/null differ
diff --git a/fern/assets/CohereText-Regular.woff2 b/fern/assets/CohereText-Regular.woff2
deleted file mode 100644
index bdb2e19af..000000000
Binary files a/fern/assets/CohereText-Regular.woff2 and /dev/null differ
diff --git a/fern/assets/CohereVariable.woff2 b/fern/assets/CohereVariable.woff2
deleted file mode 100644
index c5ccb0b83..000000000
Binary files a/fern/assets/CohereVariable.woff2 and /dev/null differ
diff --git a/fern/assets/images/auth-concepts.png b/fern/assets/images/auth-concepts.png
deleted file mode 100644
index e6f6ce68b..000000000
Binary files a/fern/assets/images/auth-concepts.png and /dev/null differ
diff --git a/fern/assets/images/integrations-page.png b/fern/assets/images/integrations-page.png
deleted file mode 100644
index 4f67479f3..000000000
Binary files a/fern/assets/images/integrations-page.png and /dev/null differ
diff --git a/fern/assets/images/providers-and-toolsets.png b/fern/assets/images/providers-and-toolsets.png
deleted file mode 100644
index 6cae19512..000000000
Binary files a/fern/assets/images/providers-and-toolsets.png and /dev/null differ
diff --git a/fern/assets/videos/composio-welcome.mp4 b/fern/assets/videos/composio-welcome.mp4
deleted file mode 100644
index 2bc8faf68..000000000
Binary files a/fern/assets/videos/composio-welcome.mp4 and /dev/null differ
diff --git a/fern/assets/videos/configure-webhook-url.mp4 b/fern/assets/videos/configure-webhook-url.mp4
deleted file mode 100644
index b8e3f914e..000000000
Binary files a/fern/assets/videos/configure-webhook-url.mp4 and /dev/null differ
diff --git a/fern/assets/videos/creating-integration.mp4 b/fern/assets/videos/creating-integration.mp4
deleted file mode 100644
index 1974e48a0..000000000
Binary files a/fern/assets/videos/creating-integration.mp4 and /dev/null differ
diff --git a/fern/assets/videos/debugging-triggers.mp4 b/fern/assets/videos/debugging-triggers.mp4
deleted file mode 100644
index b5421937b..000000000
Binary files a/fern/assets/videos/debugging-triggers.mp4 and /dev/null differ
diff --git a/fern/docs.yml b/fern/docs.yml
index 7bc8c5214..7b7ef141a 100644
--- a/fern/docs.yml
+++ b/fern/docs.yml
@@ -192,28 +192,28 @@ navigation:
slug: troubleshooting
contents:
- page: Overview
- path: pages/src/troubleshooting/overview.mdx
+ path: pages/dist/troubleshooting/overview.mdx
slug: overview
- page: API
- path: pages/src/troubleshooting/api.mdx
+ path: pages/dist/troubleshooting/api.mdx
slug: api
- page: Authentication
- path: pages/src/troubleshooting/authentication.mdx
+ path: pages/dist/troubleshooting/authentication.mdx
slug: authentication
- page: Dashboard
- path: pages/src/troubleshooting/dashboard.mdx
+ path: pages/dist/troubleshooting/dashboard.mdx
slug: dashboard
- page: MCP
- path: pages/src/troubleshooting/mcp.mdx
+ path: pages/dist/troubleshooting/mcp.mdx
slug: mcp
- page: SDKs
- path: pages/src/troubleshooting/sdks.mdx
+ path: pages/dist/troubleshooting/sdks.mdx
slug: sdks
- page: Tools & Toolkits
- path: pages/src/troubleshooting/tools.mdx
+ path: pages/dist/troubleshooting/tools.mdx
slug: tools
- page: Triggers
- path: pages/src/troubleshooting/triggers.mdx
+ path: pages/dist/troubleshooting/triggers.mdx
slug: triggers
- tab: examples
layout:
diff --git a/fern/pages/src/examples/gmail-filterer.mdx b/fern/pages/src/examples/gmail-filterer.mdx
deleted file mode 100644
index 4ed70a2dc..000000000
--- a/fern/pages/src/examples/gmail-filterer.mdx
+++ /dev/null
@@ -1,188 +0,0 @@
----
-title: AI Gmail Labeller
-subtitle: 'A Python app that uses your custom LLM prompt to label your Gmail!'
-image: "https://og.composio.dev/api/og?title=AI%20Gmail%20Labeller" # image for socials
-keywords: ''
-hide-nav-links: false
----
-
-Imagine having an AI assistant that automatically organizes your Gmail inbox by intelligently labeling incoming emails. That's exactly what we'll build in this tutorial.
-
-<Frame>
- <img
- src="https://camo.githubusercontent.com/29b105fdcc2e005d8dd76bab0af33081a0567637da1061da6e1664285b843f8d/68747470733a2f2f692e696d6775722e636f6d2f515646337956582e676966"
- alt="Gmail Labeller"
- />
-</Frame>
-
-The complete app is available in our [`filter-gmails-example`](https://github.com/ComposioHQ/filter-gmails-example) repository. The app has a frontend built with Next.js along with Supabase for authentication.
-
-<Card
- title="GitHub Repository"
- href="https://github.com/ComposioHQ/filter-gmails-example"
- icon="fa-brands fa-github"
->
- Explore the complete source code on GitHub
-</Card>
-
-In this guide, we'll focus on the Composio + OpenAI Agents part of the app.
-
-## Prerequisites
-
-- Clone the [`filter-gmails-example`](https://github.com/ComposioHQ/filter-gmails-example) repository and set the project up locally.
-- Get a Composio API key. You can get one <a href="https://platform.composio.dev?next_page=/settings" target="_blank">here</a>.
-
-## Creating Triggers for users
-
-[Triggers](/docs/using-triggers) are a way to listen for events from apps. They act as a notification system for your AI applications, enabling your agents to respond dynamically to external events occurring within your apps.
-
-In some cases, triggers require certain configurations to set the correct events. You can inspect and add these properties while enabling the triggers.
-
-<SnippetCode
- githubUrl="https://github.com/ComposioHQ/filter-gmails-example/blob/master/apps/backend/email_processor.py#L135-L156"
- language="python"
- title="apps/backend/email_processor.py"
- highlightStart={18}
- highlightEnd={22}
-/>
-
-Then the trigger can be created with the following code:
-
-<SnippetCode
- githubUrl="https://github.com/ComposioHQ/filter-gmails-example/blob/master/apps/backend/email_processor.py#L163-L169"
- language="python"
- title="apps/backend/email_processor.py"
-/>
-
-## Listening for a trigger event
-
-<Callout type="info">
-For local development, you can use [ngrok](https://ngrok.com/) to expose your local server to the internet.
-
-```bash
-ngrok http 8000
-```
-
-Then you can set the ngrok URL in the trigger configuration.
-
-<Frame>
- <img src="../../../assets/images/examples/trigger-config.png" alt="Trigger configuration" />
-</Frame>
-</Callout>
-
-This is the main webhook endpoint for processing Gmail new message events.
-
-Composio sends a POST request to the webhook endpoint `/composio/webhook` that contains the event data.
-
-It is parsed and then the labeling method `process_gmail_message` is called through a FastAPI Background task.
-
-```python apps/backend/main.py {1-5, 29-33} maxLines=33
[email protected]("/composio/webhook")
-async def listen_webhooks(
- request: Request,
- background_tasks: BackgroundTasks
-):
- """
- Main webhook endpoint for processing Gmail
- new message events. This is the core webhook
- labeling functionality.
- """
- # Verify webhook signature
- # Check if this is a Gmail new message event
- if (
- webhook_data.get("type") == "gmail_new_message"
- or "gmail" in webhook_data.get("type", "").lower()
- ):
- gmail_message = GmailMessage.from_composio_payload(
- webhook_data
- )
- # Get the user's custom prompt or use default
- default_prompt = (
- initial_prompt or "Default email processing prompt"
- )
- user_prompt = get_user_prompt(
- gmail_message.user_id, default_prompt
- )
-
- # Add email processing to background tasks
- background_tasks.add_task(
- process_gmail_message,
- gmail_message,
- user_prompt
- )
-
- logger.info(
- f"Queued email {gmail_message.id} for processing"
- )
- return {"status": "received", "webhook_id": webhook_id}
-```
-
-## Processing the mail using OpenAI Agents SDK
-
-The `process_gmail_message` method is responsible for processing the email using the OpenAI Agents SDK.
-
-<SnippetCode
- githubUrl="https://github.com/ComposioHQ/filter-gmails-example/blob/master/apps/backend/email_processor.py#L14-L24"
- language="python"
- title="apps/backend/email_processor.py"
-/>
-
-<SnippetCode
- githubUrl="https://github.com/ComposioHQ/filter-gmails-example/blob/master/apps/backend/email_processor.py#L42-L45"
- language="python"
- title="apps/backend/email_processor.py"
-/>
-
-We read the first 10k characters of the email body to pass it to the agent. This is done to avoid overwhelming or surpassing the token limits in case of really long emails.
-
-<SnippetCode
- githubUrl="https://github.com/ComposioHQ/filter-gmails-example/blob/master/apps/backend/email_processor.py#L50-L60"
- language="python"
- title="apps/backend/email_processor.py"
-/>
-
-`user_filter` is the user's custom prompt from the database. We pass it to the agent along with the email body.
-
-<SnippetCode
- githubUrl="https://github.com/ComposioHQ/filter-gmails-example/blob/master/apps/backend/email_processor.py#L68-L85"
- language="python"
- title="apps/backend/email_processor.py"
-/>
-
-You can view the agent trace in OpenAI's [Traces Dashboard](https://platform.openai.com/traces/).
-
-<Frame>
- <img src="../../../assets/images/examples/gmail-agent-trace.png" alt="Gmail Agent Trace" />
-</Frame>
-
-## Securing the webhooks!
-
-It is important to validate the webhook signature to ensure the request is coming from Composio.
-
-Generate and store the webhook signature in the environment variables.
-
-<Frame>
- <img src="../../../assets/images/examples/webhook-secret.png" alt="Webhook Secret" />
-</Frame>
-
-The webhook signature is validated in the `verify_webhook_signature` function.
-
-<SnippetCode
- githubUrl="https://github.com/ComposioHQ/filter-gmails-example/blob/master/apps/backend/webhook.py#L10-L56"
- language="python"
- title="apps/backend/webhook.py"
-/>
-
-In the `/composio/webhook` endpoint, we verify the webhook signature and then parse the request body. If the signature is invalid, we return a 401 status code.
-
-<SnippetCode
- githubUrl="https://github.com/ComposioHQ/filter-gmails-example/blob/master/apps/backend/main.py#L31-L38"
- language="python"
- title="apps/backend/main.py"
-/>
-
-## Inspiration
-
-This example was inspired by an X/Twitter post by [@FarzaTV](https://x.com/FarzaTV/status/1905371012369350857).
-
-We encourage you to check out the [full app](https://github.com/ComposioHQ/filter-gmails-example), fork it, build it, and make it your own! Reach out to [[email protected]](mailto:[email protected]) for free credits ;)
diff --git a/fern/pages/src/index.mdx b/fern/pages/src/index.mdx
deleted file mode 100644
index 456b7acbe..000000000
--- a/fern/pages/src/index.mdx
+++ /dev/null
@@ -1,171 +0,0 @@
----
-no-image-zoom: true
----
-
-export const LandingPageCard = ({ href, title, imgSrc, description }) => (
- <div className="rounded-lg bg-[#F5F4F2] dark:bg-[#0F0F0F] px-6 py-5 hover:bg-[#E9E6DE] dark:hover:bg-[#292929] md:p-8">
- <a
- href={href}
- target="_self"
- className="flex h-full flex-col justify-between"
- style={{ textDecoration: 'none' }}
- >
- <div className="mb-5 flex flex-col justify-between gap-5">
- <h2 className="lg:min-h-20 [@media(min-width:1181px)]:min-h-0">
- {title}
- </h2>
- <img src={imgSrc} alt={title} />
- <p className="p-lg">{description}</p>
- </div>
- <div className="mt-2 text-sm text-[#2D4CB9] dark:text-[#4C6EE6] md:mt-0 md:self-end">
- {"GET STARTED"}
- <div className="ml-2 inline-block group-hover:no-underline">
- <svg
- width="12"
- height="11"
- viewBox="0 0 12 11"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- style={{ transform: "rotate(-90deg)" }}
- >
- <path
- d="M6 10.75L0.75 5.31686L1.74907 4.27907L5.2556 8.00291L5.2556 0.25L6.7444 0.25L6.7444 8.00291L10.2509 4.27907L11.25 5.31686L6 10.75Z"
- fill="currentColor"
- ></path>
- </svg>
- </div>
- </div>
- </a>
- </div>
-);
-
-export const EndpointLink = ({ href, title }) => (
- <a
- href={href}
- className="group flex cursor-pointer flex-row text-sm !font-normal text-[#2D4CB9] dark:text-[#4C6EE6]"
- rel="noreferrer"
- target="_self"
- >
- {title}
- <span className="duration-400 flex items-center transition-all ease-in-out group-hover:pl-1 group-hover:pr-2">
- <div className="ml-2 inline-block text-sm !text-[#2D4CB9] group-hover:no-underline">
- <svg
- width="12"
- height="11"
- viewBox="0 0 12 11"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- style={{ transform: "rotate(-90deg)" }}
- >
- <path
- d="M6 10.75L0.75 5.31686L1.74907 4.27907L5.2556 8.00291L5.2556 0.25L6.7444 0.25L6.7444 8.00291L10.2509 4.27907L11.25 5.31686L6 10.75Z"
- fill="currentColor"
- ></path>
- </svg>
- </div>
- </span>
- </a>
-);
-
-export const cards = [
- {
- href: "/docs",
- imgSrc: "https://fern-image-hosting.s3.amazonaws.com/cohere/8da77c9-Frame_138972.png",
- title: "Guides",
- description:
- "Understand how to use the Composio SDK and platform on a deeper level. Build with authenticated tools, triggers and more.",
- },
- {
- href: "/api-reference/",
- imgSrc: "https://fern-image-hosting.s3.amazonaws.com/cohere/8ff146a-Group_138977.png",
- title: "Reference",
- description:
- "Use Composio's tools and MCP servers into your agents with just a few lines of code.",
- },
- {
- href: "/cookbooks",
- imgSrc: "https://fern-image-hosting.s3.amazonaws.com/cohere/7fca92c-Group_138977_2.png",
- title: "Cookbooks",
- description:
- "A collection of resources to help developers get up and running with Composio.",
- },
-];
-
-export const frameworks = [
- {
- href: "/frameworks/langchain",
- title: "LangChain",
- },
- {
- href: "/frameworks/langgraph",
- title: "LangGraph",
- },
- {
- href: "/frameworks/crewai",
- title: "CrewAI",
- },
- {
- href: "/frameworks/vercel",
- title: "Vercel",
- },
- {
- href: "/frameworks/autogen",
- title: "Autogen",
- },
-];
-
-<div className="m-auto max-w-[1195px] flex-grow overflow-y-auto px-8 pt-10 md:p-10 md:pb-14">
- <div className="flex flex-col gap-5 md:!grid md:grid-cols-2 md:gap-10 md:pb-7 lg:!grid-cols-3 lg:gap-x-8 lg:gap-y-10 lg:pb-16">
- {cards.map((card) => (
- <LandingPageCard
- key={card.href}
- href={card.href}
- imgSrc={card.imgSrc}
- title={card.title}
- description={card.description}
- />
- ))}
- <a href="/frameworks" className="col-span-2" style={{ textDecoration: 'none' }}>
- <div className="mb-8 flex flex-col gap-9 rounded-lg bg-[#F5F4F2] dark:bg-[#0F0F0F] px-6 py-5 hover:bg-[#E9E6DE] dark:hover:bg-[#292929] md:!flex-row md:items-end md:gap-16 md:p-8 lg:gap-10">
- <div className="md:w-1/2">
- <h2 className="mb-8 mt-4 md:mt-0">Frameworks</h2>
- <p className="p-lg w-full">
- Build with frameworks that support Composio's tools and MCP servers.
- </p>
- </div>
- <div className="grid grid-cols-2 gap-5 md:w-1/2 md:gap-10 lg:w-1/3 lg:gap-8">
- {frameworks.map((framework) => (
- <EndpointLink key={framework.href} {...framework} />
- ))}
- </div>
- </div>
- </a>
- </div>
- <div
- className="block h-full w-full rounded-lg bg-cover bg-no-repeat p-6 md:hidden"
- style={{
- backgroundImage: "url('https://fern-image-hosting.s3.amazonaws.com/cohere/ddd53ed-Mask_group.png')",
- }}
- >
- <a
- href="https://cohere.com/llmu"
- target="_blank"
- className="flex h-full w-full flex-col justify-between !text-white md:!flex-row"
- >
- <div className="flex h-full flex-col justify-between">
- <div className="flex flex-row">
- <img
- src="https://fern-image-hosting.s3.amazonaws.com/cohere/9d0694c-Symbol.svg"
- alt=""
- className="h-7 w-7 lg:h-10 lg:w-10"
- />
- <h2 className="h3 mb-28 ml-5 mt-0">LLM University</h2>
- </div>
- <p className="p-lg !text-white">
- New to NLP? Learn about Natural Language processing and Large Language
- Models through our structured curriculum.
- </p>
- </div>
- </a>
- </div>
-</div>
diff --git a/fern/pages/src/providers/google-adk.mdx b/fern/pages/src/providers/google-adk.mdx
deleted file mode 100644
index 4f97c9330..000000000
--- a/fern/pages/src/providers/google-adk.mdx
+++ /dev/null
@@ -1,19 +0,0 @@
----
-title: Google ADK Provider
-slug: /providers/google-adk
-image: "https://og.composio.dev/api/og?title=Google%20ADK%20Provider" # image for socials
-keywords: ""
-hide-nav-links: false
----
-
-- [ ] Pending on Python SDK
-
-## Google ADK Provider
-
-The Google ADK Provider formats the Composio tools into an object compatible with Google's ADK capabilities. Agents and LLM workflows built with this can call and execute the Composio tools.
-
-## Setup
-
-```typescript TypeScript maxLines=60 wordWrap
-
-```
\ No newline at end of file
diff --git a/fern/snippets/authentication/typescript/custom-auth-injection.ts b/fern/snippets/authentication/typescript/custom-auth-injection.ts
deleted file mode 100644
index a98d3050a..000000000
--- a/fern/snippets/authentication/typescript/custom-auth-injection.ts
+++ /dev/null
@@ -1,65 +0,0 @@
-import { Composio } from '@composio/core';
-import { z } from 'zod';
-
-const composio = new Composio();
-
-const bearerToken = 'ghp_YourPersonalAccessToken...';
-// const userId = '[email protected]';
-const userId = 'sid';
-
-// const tool = await composio.tools.createCustomTool({
-// slug: 'GITHUB_SEARCH_REPOSITORIES',
-// name: 'Search GitHub Repositories',
-// description: 'Search for repositories with custom parameters',
-// toolkitSlug: 'github',
-// inputParams: z.object({
-// query: z.string().describe('Search query'),
-// perPage: z.number().optional().describe('Results per page'),
-// }),
-// execute: async (input, connectionConfig, executeToolRequest) => {
-// const result = await executeToolRequest({
-// endpoint: '/search/repositories',
-// method: 'GET',
-// parameters: [
-// // Add custom auth header
-// {
-// name: 'Authorization',
-// value: `Bearer ${bearerToken}`,
-// in: 'header',
-// },
-// ],
-// });
-// return result;
-// },
-// });
-
-const customToolSlug = 'GITHUB_STAR_COMPOSIOHQ_REPOSITORY';
-const tool_1 = await composio.tools.createCustomTool({
- slug: customToolSlug,
- name: 'Github star composio repositories',
- toolkitSlug: 'github',
- description: 'For any given repository of the user composiohq, star the repository',
- inputParams: z.object({
- repository: z.string().describe('The repository to star'),
- }),
- execute: async (input, connectionConfig, executeToolRequest) => {
- console.log('πŸš€ ~ execute: ~ params:', input);
- console.log('πŸš€ ~ execute: ~ connectionConfig:', connectionConfig);
-
- const result = await executeToolRequest({
- endpoint: `/user/starred/composiohq/${input.repository}`,
- method: 'PUT',
- });
- return result;
- },
-});
-
-const result = await composio.tools.execute(tool_1.slug, {
- arguments: {
- repository: 'composio',
- },
- userId,
- connectedAccountId: 'ca_XOVkjOlY95qN',
-});
-
-console.log(result);
diff --git a/fern/snippets/examples/sample-script/sample-script.py b/fern/snippets/examples/sample-script/sample-script.py
deleted file mode 100644
index 7a7745220..000000000
--- a/fern/snippets/examples/sample-script/sample-script.py
+++ /dev/null
@@ -1,41 +0,0 @@
-from composio_core import Composio
-from openai import OpenAI
-
-# Initialize OpenAI client
-openai = OpenAI(api_key="your-openai-api-key")
-
-# Initialize Composio client
-composio = Composio(api_key="your-composio-api-key")
-
-# Set up user identifier
-userId = "[email protected]"
-
-# Authorize and get tools for Gmail
-connection, tools = composio.toolkits.authorize(userId, "gmail")
-print(f"πŸ”— Visit the URL to authorize:\nπŸ‘‰ {connection.redirect_url}")
-
-# Wait for the user to complete authorization
-connection.wait_for_connection()
-
-# Create a chat completion with tool calling
-completion = openai.chat.completions.create(
- model="gpt-4o",
- messages=[
- {
- "role": "system",
- "content": "You are a helpful assistant that can send emails.",
- },
- {
- "role": "user",
- "content": "send an email to [email protected] saying 'hi from the composio quickstart'",
- # we'll ship you free merch if you do ;)
- },
- ],
- tools=tools,
- tool_choice="auto",
-)
-
-# Handle the tool call and execute
-result = composio.provider.handle_tool_call(userId, completion)
-print("βœ… Email sent successfully!")
-print(result)
diff --git a/fern/snippets/mcp/typescript/openai.ts b/fern/snippets/mcp/typescript/openai.ts
deleted file mode 100644
index 5587871ae..000000000
--- a/fern/snippets/mcp/typescript/openai.ts
+++ /dev/null
@@ -1,51 +0,0 @@
-import { Composio } from '@composio/core';
-import { OpenAIResponsesProvider } from '@composio/openai';
-import OpenAI from 'openai';
-import { v4 as uuidv4 } from 'uuid';
-
-const openai = new OpenAI({
- apiKey: process.env.OPENAI_API_KEY,
-});
-
-const composio = new Composio({
- apiKey: process.env.COMPOSIO_API_KEY,
- provider: new OpenAIResponsesProvider(),
-});
-
-const mcpConfig = await composio.mcp.create(
- 'gmail-mcp',
- [
- {
- toolkit: 'GMAIL',
- allowedTools: ['GMAIL_FETCH_EMAILS'],
- authConfigId: 'ac_GHetipM5x5s0',
- },
- ],
- { useComposioManagedAuth: true }
-);
-
-console.log(`βœ… MCP server created: ${mcpConfig.id}`);
-console.log(`πŸ”§ Available toolkits: ${mcpConfig.toolkits.join(', ')}`);
-
-// Retrieve server URLs for connected accounts
-const mcpTools = await mcpConfig.getServer({
- userId: "sid"
-});
-
-console.log('MCP Tools:', mcpTools);
-
-const completion = await openai.responses.create({
- model: 'gpt-4o-mini',
- input:
- "I've connected to Gmail and I want to fetch the latest email from my inbox and summarize it",
- tools: mcpTools,
-});
-
-console.log('\nπŸ“¬ Email Summary:');
-console.log(completion.output_text);
-
-console.log('\nβœ… OpenAI MCP example completed successfully!');
-console.log(
- '\nπŸ’‘ Note: The MCP server URLs can also be used to connect from other MCP-compatible clients.'
-);
-console.log(`πŸ“ Server ID for future reference: ${mcpConfig.id}`);
diff --git a/fern/snippets/providers/python/anthropic.py b/fern/snippets/providers/python/anthropic.py
deleted file mode 100644
index fcf9cb362..000000000
--- a/fern/snippets/providers/python/anthropic.py
+++ /dev/null
@@ -1,6 +0,0 @@
-from composio import Composio
-
-# Initialize Composio client
-composio = Composio()
-
-# TODO: Add your code here
diff --git a/fern/snippets/providers/typescript/anthropic.ts b/fern/snippets/providers/typescript/anthropic.ts
deleted file mode 100644
index 3f92a2690..000000000
--- a/fern/snippets/providers/typescript/anthropic.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-import { Composio } from '@composio/core';
-import { AnthropicProvider } from '@composio/anthropic';
-import { Anthropic } from '@anthropic-ai/sdk';
-
-const composio = new Composio({
- provider: new AnthropicProvider({
- cacheTools: false, // default
- }),
-});
-
-const anthropic = new Anthropic();
-
-const userId = '[email protected]';
-const tools = await composio.tools.get(userId, {
- tools: ['GITHUB_GET_OCTOCAT', 'GITHUB_GET_THE_ZEN_OF_GITHUB'],
-});
-
-const msg = await anthropic.messages.create({
- model: 'claude-3-5-sonnet-20240620',
- messages: [
- {
- role: 'user',
- content: 'Get me the GitHub Octocat',
- },
- ],
- tools: tools,
- max_tokens: 1000,
-});
-
-const res = await composio.provider.handleToolCalls(userId, msg);
-
-console.log(JSON.parse(res[0]).details);
diff --git a/fern/snippets/tool-calling/python/callback-url.py b/fern/snippets/tool-calling/python/callback-url.py
deleted file mode 100644
index 7d7d7878e..000000000
--- a/fern/snippets/tool-calling/python/callback-url.py
+++ /dev/null
@@ -1,16 +0,0 @@
-from composio import Composio
-from composio.types import auth_scheme
-
-# Initialize Composio client
-composio = Composio()
-linear_auth_config_id = "ac_dqYN9oElNVlg"
-user_id = "0000-1111-2222"
-
-# Create a new connected account
-connection_request = composio.connected_accounts.initiate(
- user_id=user_id, auth_config_id=linear_auth_config_id, config=auth_scheme.oauth2()
-)
-print(connection_request.redirect_url)
-
-# Wait for the connection to be established
-connected_account = connection_request.wait_for_connection()
\ No newline at end of file
diff --git a/fern/snippets/tool-calling/python/fetching-tools.py b/fern/snippets/tool-calling/python/fetching-tools.py
deleted file mode 100644
index fcf9cb362..000000000
--- a/fern/snippets/tool-calling/python/fetching-tools.py
+++ /dev/null
@@ -1,6 +0,0 @@
-from composio import Composio
-
-# Initialize Composio client
-composio = Composio()
-
-# TODO: Add your code here
diff --git a/fern/snippets/tool-calling/typescript/auth-tools.ts b/fern/snippets/tool-calling/typescript/auth-tools.ts
deleted file mode 100644
index 956167bb3..000000000
--- a/fern/snippets/tool-calling/typescript/auth-tools.ts
+++ /dev/null
@@ -1,50 +0,0 @@
-import { Composio } from '@composio/core';
-
-const composio = new Composio();
-const linearAuthConfigId = 'ac_dqYN9oElNVlg';
-
-const userId = '1111-2222-3333';
-
-// Initiate the OAuth connection request
-const connRequest = await composio.connectedAccounts.initiate(userId, linearAuthConfigId);
-
-// Destructure redirectUrl for easier access
-const { redirectUrl, id } = connRequest;
-console.log(redirectUrl);
-
-// Wait for the connection to be established
-await connRequest.waitForConnection();
-
-// If you only have the connection request ID, you can also wait using:
-// Recommended for when connRequest object is destroyed
-await composio.connectedAccounts.waitForConnection(id);
-
-// API Key based toolkit
-
-import { AuthScheme } from '@composio/core';
-const serpAuthConfigId = 'ac_VWmFEC55Zgv6';
-
-// Retrieved from the user
-const userApiKey = 'sk_1234567890';
-
-const serpConnectionRequest = await composio.connectedAccounts.initiate(userId, serpAuthConfigId, {
- config: AuthScheme.APIKey({
- api_key: userApiKey,
- }),
-});
-
-console.log(JSON.stringify(serpConnectionRequest, null, 2));
-
-// Auth scheme for Airtable Bearer
-import { AuthScheme } from '@composio/core';
-const airtableAuthConfigId = 'ac_1234567890';
-
-// Retrieved from the user
-const userBearerToken = '1234567890';
-
-const airtableConnectionRequest = await composio.connectedAccounts.initiate(
- userId, airtableAuthConfigId, {
- config: AuthScheme.BearerToken({
- token: userBearerToken,
- }),
-});
diff --git a/fern/snippets/tool-calling/typescript/callback-url.ts b/fern/snippets/tool-calling/typescript/callback-url.ts
deleted file mode 100644
index 77d7af026..000000000
--- a/fern/snippets/tool-calling/typescript/callback-url.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import { Composio } from '@composio/core';
-import { v4 as uuidv4 } from 'uuid';
-
-const composio = new Composio();
-const linearAuthConfigId = 'ac_dqYN9oElNVlg';
-
-const userId = uuidv4();
-
-// Initiate the OAuth connection request
-const connRequest = await composio.connectedAccounts.initiate(
- userId,
- linearAuthConfigId,
- {
- callbackUrl: 'https://www.yourapp.com/callback',
- }
-);
-
-console.log(connRequest.redirectUrl);
-
-await connRequest.waitForConnection();
diff --git a/fern/snippets/tool-calling/typescript/fetching-tools.ts b/fern/snippets/tool-calling/typescript/fetching-tools.ts
deleted file mode 100644
index e69de29bb..000000000
diff --git a/fern/snippets/triggers/typescript/quickstart-vercel.ts b/fern/snippets/triggers/typescript/quickstart-vercel.ts
deleted file mode 100644
index 87bdc9e89..000000000
--- a/fern/snippets/triggers/typescript/quickstart-vercel.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-import { Composio } from '@composio/core';
-import { generateText } from 'ai';
-import { anthropic } from '@ai-sdk/anthropic';
-import { VercelProvider } from '@composio/vercel';
-import { v4 as uuidv4 } from 'uuid';
-
-const userId = uuidv4(); // The user's ID.
-const composio = new Composio({
- apiKey: process.env.COMPOSIO_API_KEY,
- provider: new VercelProvider(),
-});
-
-const connection = await composio.toolkits.authorize(userId, 'gmail');
-console.log(`πŸ”— Visit the URL to authorize:\nπŸ‘‰ ${connection.redirectUrl}`);
-
-await connection.waitForConnection();
-
-const tools = await composio.tools.get(userId, { tools: ['GMAIL_SEND_EMAIL'] });
-
-const { text } = await generateText({
- model: anthropic('claude-3-7-sonnet-20250219'),
- messages: [
- {
- role: 'user',
- content: "say 'hi from the composio quickstart' to [email protected]", // we'll ship you free merch if you do ;)
- },
- ],
- tools,
- maxSteps: 1,
-});
-
-console.log(text);
diff --git a/fern/snippets/triggers/typescript/quickstart.ts b/fern/snippets/triggers/typescript/quickstart.ts
deleted file mode 100644
index b33d431bd..000000000
--- a/fern/snippets/triggers/typescript/quickstart.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import { Composio } from '@composio/core';
-import { AnthropicProvider } from '@composio/anthropic';
-import Anthropic from '@anthropic-ai/sdk';
-
-const anthropic = new Anthropic();
-const composio = new Composio({
- provider: new AnthropicProvider(),
-});
-
-const userId = '[email protected]';
-const connection = await composio.toolkits.authorize(userId, 'GITHUB');
-console.log(`πŸ”— Visit the URL to authorize:\nπŸ‘‰ ${connection.redirectUrl}`);
-
-const tools = await composio.tools.get(userId, {
- tools: ['GITHUB_STAR_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER'],
-});
-await connection.waitForConnection();
-const msg = await anthropic.messages.create({
- model: 'claude-3-7-sonnet-latest',
- tools: tools,
- messages: [
- {
- role: 'user',
- content: 'Star the composiohq/composio repository',
- },
- ],
- max_tokens: 1024,
-});
-
-const result = await composio.provider.handleToolCalls(userId, msg);
-console.log('βœ… Tool results:', result);