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.

layout changes

Sushmithamallesh1691bf0bf8c3
diff --git a/fumadocs/app/(home)/examples/[[...slug]]/page.tsx b/fumadocs/app/(home)/examples/[[...slug]]/page.tsx
new file mode 100644
index 000000000..fad861716
--- /dev/null
+++ b/fumadocs/app/(home)/examples/[[...slug]]/page.tsx
@@ -0,0 +1,6 @@
+import { examplesSource } from '@/lib/source';
+import { createDocsPage, createGenerateStaticParams, createGenerateMetadata } from '@/lib/create-docs-page';
+
+export default createDocsPage(examplesSource);
+export const generateStaticParams = createGenerateStaticParams(examplesSource);
+export const generateMetadata = createGenerateMetadata(examplesSource);
diff --git a/fumadocs/app/(home)/examples/layout.tsx b/fumadocs/app/(home)/examples/layout.tsx
new file mode 100644
index 000000000..41604cf81
--- /dev/null
+++ b/fumadocs/app/(home)/examples/layout.tsx
@@ -0,0 +1,4 @@
+import { examplesSource } from '@/lib/source';
+import { createDocsLayout } from '@/lib/create-docs-layout';
+
+export default createDocsLayout(examplesSource);
diff --git a/fumadocs/app/(home)/reference/[[...slug]]/page.tsx b/fumadocs/app/(home)/reference/[[...slug]]/page.tsx
new file mode 100644
index 000000000..d24156ee0
--- /dev/null
+++ b/fumadocs/app/(home)/reference/[[...slug]]/page.tsx
@@ -0,0 +1,6 @@
+import { referenceSource } from '@/lib/source';
+import { createDocsPage, createGenerateStaticParams, createGenerateMetadata } from '@/lib/create-docs-page';
+
+export default createDocsPage(referenceSource);
+export const generateStaticParams = createGenerateStaticParams(referenceSource);
+export const generateMetadata = createGenerateMetadata(referenceSource);
diff --git a/fumadocs/app/(home)/reference/layout.tsx b/fumadocs/app/(home)/reference/layout.tsx
new file mode 100644
index 000000000..87781420b
--- /dev/null
+++ b/fumadocs/app/(home)/reference/layout.tsx
@@ -0,0 +1,4 @@
+import { referenceSource } from '@/lib/source';
+import { createDocsLayout } from '@/lib/create-docs-layout';
+
+export default createDocsLayout(referenceSource);
diff --git a/fumadocs/app/(home)/tool-router/[[...slug]]/page.tsx b/fumadocs/app/(home)/tool-router/[[...slug]]/page.tsx
new file mode 100644
index 000000000..e46bb881b
--- /dev/null
+++ b/fumadocs/app/(home)/tool-router/[[...slug]]/page.tsx
@@ -0,0 +1,6 @@
+import { toolRouterSource } from '@/lib/source';
+import { createDocsPage, createGenerateStaticParams, createGenerateMetadata } from '@/lib/create-docs-page';
+
+export default createDocsPage(toolRouterSource);
+export const generateStaticParams = createGenerateStaticParams(toolRouterSource);
+export const generateMetadata = createGenerateMetadata(toolRouterSource);
diff --git a/fumadocs/app/(home)/tool-router/layout.tsx b/fumadocs/app/(home)/tool-router/layout.tsx
new file mode 100644
index 000000000..719298a5a
--- /dev/null
+++ b/fumadocs/app/(home)/tool-router/layout.tsx
@@ -0,0 +1,4 @@
+import { toolRouterSource } from '@/lib/source';
+import { createDocsLayout } from '@/lib/create-docs-layout';
+
+export default createDocsLayout(toolRouterSource);
diff --git a/fumadocs/app/(home)/toolkits/[[...slug]]/page.tsx b/fumadocs/app/(home)/toolkits/[[...slug]]/page.tsx
new file mode 100644
index 000000000..c4028dbdb
--- /dev/null
+++ b/fumadocs/app/(home)/toolkits/[[...slug]]/page.tsx
@@ -0,0 +1,6 @@
+import { toolkitsSource } from '@/lib/source';
+import { createDocsPage, createGenerateStaticParams, createGenerateMetadata } from '@/lib/create-docs-page';
+
+export default createDocsPage(toolkitsSource);
+export const generateStaticParams = createGenerateStaticParams(toolkitsSource);
+export const generateMetadata = createGenerateMetadata(toolkitsSource);
diff --git a/fumadocs/app/(home)/toolkits/layout.tsx b/fumadocs/app/(home)/toolkits/layout.tsx
new file mode 100644
index 000000000..e1e0666b6
--- /dev/null
+++ b/fumadocs/app/(home)/toolkits/layout.tsx
@@ -0,0 +1,4 @@
+import { toolkitsSource } from '@/lib/source';
+import { createDocsLayout } from '@/lib/create-docs-layout';
+
+export default createDocsLayout(toolkitsSource);
diff --git a/fumadocs/content/examples/index.mdx b/fumadocs/content/examples/index.mdx
new file mode 100644
index 000000000..e30fc862b
--- /dev/null
+++ b/fumadocs/content/examples/index.mdx
@@ -0,0 +1,21 @@
+---
+title: Examples
+description: Real-world examples and use cases for Composio
+---
+
+Explore practical examples of building AI agents with Composio.
+
+## Getting Started
+
+- [Basic FastAPI Server](/examples/fast-api) - Build a simple API server with Composio
+- [Basic Hono Server](/examples/hono) - Build a Hono server with Composio
+
+## Productivity & Automation
+
+- [Gmail Labeller](/examples/gmail-labeler) - Automatically label emails
+- [Slack Summariser](/examples/slack-summariser) - Summarize Slack conversations
+- [Supabase SQL Agent](/examples/supabase-sql-agent) - Query databases with AI
+
+## Full Stack Applications
+
+- [Full Stack Chat App](/examples/vercel-chat) - Complete chat application example
diff --git a/fumadocs/content/examples/meta.json b/fumadocs/content/examples/meta.json
new file mode 100644
index 000000000..ca164f6da
--- /dev/null
+++ b/fumadocs/content/examples/meta.json
@@ -0,0 +1,7 @@
+{
+ "title": "Examples",
+ "pages": [
+ "---Getting Started---",
+ "index"
+ ]
+}
diff --git a/fumadocs/content/reference/index.mdx b/fumadocs/content/reference/index.mdx
new file mode 100644
index 000000000..b73e6f331
--- /dev/null
+++ b/fumadocs/content/reference/index.mdx
@@ -0,0 +1,16 @@
+---
+title: API Reference
+description: Complete API and SDK reference documentation for Composio
+---
+
+Welcome to the Composio API Reference. This section contains detailed documentation for:
+
+- **REST API** - Complete HTTP API documentation
+- **Python SDK** - Python SDK reference
+- **TypeScript SDK** - TypeScript SDK reference
+
+## Quick Links
+
+- [REST API Documentation](/reference/api)
+- [Python SDK Reference](/reference/python)
+- [TypeScript SDK Reference](/reference/typescript)
diff --git a/fumadocs/content/reference/meta.json b/fumadocs/content/reference/meta.json
new file mode 100644
index 000000000..01e4f7e69
--- /dev/null
+++ b/fumadocs/content/reference/meta.json
@@ -0,0 +1,7 @@
+{
+ "title": "Reference",
+ "pages": [
+ "---API Reference---",
+ "index"
+ ]
+}
diff --git a/fumadocs/content/tool-router/index.mdx b/fumadocs/content/tool-router/index.mdx
new file mode 100644
index 000000000..d48ffc823
--- /dev/null
+++ b/fumadocs/content/tool-router/index.mdx
@@ -0,0 +1,22 @@
+---
+title: Overview
+description: Give your AI agent access to thousands of tools through a unified interface
+---
+
+Tool Router is a unified interface that lets an agent **search**, **plan**, **authenticate**, and **execute** actions across thousands of Composio tools.
+
+Consider an agent that works across Gmail, Notion, Slack, Google Drive, and hundreds of other apps. The challenges:
+
+- **Search**: Identifying the right tool for the task
+- **Context Management**: Managing context for complex queries with large responses
+- **Authentication**: Handling authentication across all of them
+
+Tool Router exposes a set of meta-tools that handle all this complexity including search to discover the right tools, and a workbench to process results without flooding context.
+
+This is what powers complex agentic products like [Rube](https://rube.app).
+
+## Quick links
+
+- [Quickstart](/tool-router/quickstart): Build your first AI agent with Tool Router.
+- [Using with MCP clients](/tool-router/using-with-mcp-clients): Guides on how to use Tool Router MCP with popular MCP clients.
+- [Using as a native tool](/tool-router/using-as-a-native-tool): Guide on how to use Tool Router as a native tool with any AI framework.
diff --git a/fumadocs/content/tool-router/meta.json b/fumadocs/content/tool-router/meta.json
new file mode 100644
index 000000000..bb8f15a9a
--- /dev/null
+++ b/fumadocs/content/tool-router/meta.json
@@ -0,0 +1,7 @@
+{
+ "title": "Tool Router",
+ "pages": [
+ "---Get Started---",
+ "index"
+ ]
+}
diff --git a/fumadocs/content/toolkits/index.mdx b/fumadocs/content/toolkits/index.mdx
new file mode 100644
index 000000000..7cded0de5
--- /dev/null
+++ b/fumadocs/content/toolkits/index.mdx
@@ -0,0 +1,26 @@
+---
+title: Toolkits
+description: Browse all available Composio toolkits and integrations
+---
+
+Composio provides 250+ pre-built toolkits for popular services and APIs.
+
+## Featured Toolkits
+
+### Important
+
+- [GitHub](/toolkits/github) - Manage repositories, issues, and pull requests
+- [Gmail](/toolkits/gmail) - Send and manage emails
+- [Notion](/toolkits/notion) - Create and manage Notion pages
+
+### Scheduling & Booking
+
+- [Google Calendar](/toolkits/googlecalendar) - Manage calendar events
+
+### No Auth Required
+
+- [Composio](/toolkits/composio) - Core Composio tools
+
+## Browse All Toolkits
+
+Visit the [Composio Dashboard](https://app.composio.dev) to explore all available toolkits.
diff --git a/fumadocs/content/toolkits/meta.json b/fumadocs/content/toolkits/meta.json
new file mode 100644
index 000000000..6262b5d9f
--- /dev/null
+++ b/fumadocs/content/toolkits/meta.json
@@ -0,0 +1,7 @@
+{
+ "title": "Toolkits",
+ "pages": [
+ "---Overview---",
+ "index"
+ ]
+}
diff --git a/fumadocs/lib/create-docs-layout.tsx b/fumadocs/lib/create-docs-layout.tsx
new file mode 100644
index 000000000..9c199cdac
--- /dev/null
+++ b/fumadocs/lib/create-docs-layout.tsx
@@ -0,0 +1,21 @@
+import { DocsLayout } from 'fumadocs-ui/layouts/docs';
+import type { ReactNode } from 'react';
+
+// eslint-disable-next-line @typescript-eslint/no-explicit-any
+type Source = any;
+
+export function createDocsLayout(source: Source) {
+ return function Layout({ children }: { children: ReactNode }) {
+ return (
+ <DocsLayout
+ tree={source.pageTree}
+ nav={{ enabled: false }}
+ searchToggle={{ enabled: false }}
+ sidebar={{ collapsible: false, footer: null }}
+ themeSwitch={{ enabled: false }}
+ >
+ {children}
+ </DocsLayout>
+ );
+ };
+}
diff --git a/fumadocs/lib/create-docs-page.tsx b/fumadocs/lib/create-docs-page.tsx
new file mode 100644
index 000000000..8e8a28447
--- /dev/null
+++ b/fumadocs/lib/create-docs-page.tsx
@@ -0,0 +1,60 @@
+import {
+ DocsBody,
+ DocsDescription,
+ DocsPage,
+ DocsTitle,
+} from 'fumadocs-ui/layouts/docs/page';
+import { notFound } from 'next/navigation';
+import { getMDXComponents } from '@/mdx-components';
+import type { Metadata } from 'next';
+import { createRelativeLink } from 'fumadocs-ui/mdx';
+
+// eslint-disable-next-line @typescript-eslint/no-explicit-any
+type Source = any;
+
+export function createDocsPage(source: Source) {
+ return async function Page({ params }: { params: Promise<{ slug?: string[] }> }) {
+ const { slug } = await params;
+ const page = source.getPage(slug);
+ if (!page) notFound();
+
+ const MDX = page.data.body;
+
+ return (
+ <DocsPage toc={page.data.toc} full={page.data.full} footer={{ enabled: false }}>
+ <DocsTitle>{page.data.title}</DocsTitle>
+ <DocsDescription>{page.data.description}</DocsDescription>
+ <DocsBody>
+ <MDX
+ components={getMDXComponents({
+ a: createRelativeLink(source, page),
+ })}
+ />
+ </DocsBody>
+ </DocsPage>
+ );
+ };
+}
+
+export function createGenerateStaticParams(source: Source) {
+ return function generateStaticParams() {
+ return source.generateParams();
+ };
+}
+
+export function createGenerateMetadata(source: Source) {
+ return async function generateMetadata({
+ params,
+ }: {
+ params: Promise<{ slug?: string[] }>;
+ }): Promise<Metadata> {
+ const { slug } = await params;
+ const page = source.getPage(slug);
+ if (!page) notFound();
+
+ return {
+ title: page.data.title,
+ description: page.data.description,
+ };
+ };
+}
diff --git a/fumadocs/lib/layout.shared.tsx b/fumadocs/lib/layout.shared.tsx
index 01d79acd3..1c310d373 100644
--- a/fumadocs/lib/layout.shared.tsx
+++ b/fumadocs/lib/layout.shared.tsx
@@ -43,6 +43,10 @@ export function baseOptions(): BaseLayoutProps {
text: 'Tool Router',
url: '/tool-router',
},
+ {
+ text: 'Toolkits',
+ url: '/toolkits',
+ },
{
text: 'Reference',
url: '/reference',
diff --git a/fumadocs/lib/source.ts b/fumadocs/lib/source.ts
index 7c25c2ae2..2cb60b983 100644
--- a/fumadocs/lib/source.ts
+++ b/fumadocs/lib/source.ts
@@ -1,4 +1,4 @@
-import { docs, changelog } from 'fumadocs-mdx:collections/server';
+import { docs, toolRouter, reference, examples, toolkits, changelog } from 'fumadocs-mdx:collections/server';
import { type InferPageType, loader } from 'fumadocs-core/source';
import { lucideIconsPlugin } from 'fumadocs-core/source/lucide-icons';
@@ -9,6 +9,30 @@ export const source = loader({
plugins: [lucideIconsPlugin()],
});
+export const toolRouterSource = loader({
+ baseUrl: '/tool-router',
+ source: toolRouter.toFumadocsSource(),
+ plugins: [lucideIconsPlugin()],
+});
+
+export const referenceSource = loader({
+ baseUrl: '/reference',
+ source: reference.toFumadocsSource(),
+ plugins: [lucideIconsPlugin()],
+});
+
+export const examplesSource = loader({
+ baseUrl: '/examples',
+ source: examples.toFumadocsSource(),
+ plugins: [lucideIconsPlugin()],
+});
+
+export const toolkitsSource = loader({
+ baseUrl: '/toolkits',
+ source: toolkits.toFumadocsSource(),
+ plugins: [lucideIconsPlugin()],
+});
+
export const changelogEntries = changelog;
export function getPageImage(page: InferPageType<typeof source>) {
diff --git a/fumadocs/source.config.ts b/fumadocs/source.config.ts
index 7cd6b7998..fe18c1f37 100644
--- a/fumadocs/source.config.ts
+++ b/fumadocs/source.config.ts
@@ -22,6 +22,46 @@ export const docs = defineDocs({
},
});
+export const toolRouter = defineDocs({
+ dir: 'content/tool-router',
+ docs: {
+ schema: frontmatterSchema,
+ },
+ meta: {
+ schema: metaSchema,
+ },
+});
+
+export const reference = defineDocs({
+ dir: 'content/reference',
+ docs: {
+ schema: frontmatterSchema,
+ },
+ meta: {
+ schema: metaSchema,
+ },
+});
+
+export const examples = defineDocs({
+ dir: 'content/examples',
+ docs: {
+ schema: frontmatterSchema,
+ },
+ meta: {
+ schema: metaSchema,
+ },
+});
+
+export const toolkits = defineDocs({
+ dir: 'content/toolkits',
+ docs: {
+ schema: frontmatterSchema,
+ },
+ meta: {
+ schema: metaSchema,
+ },
+});
+
export const changelog = defineCollections({
type: 'doc',
dir: 'content/changelog',