Skip to main content
Glama
conditional-data-provider.tsx615 B
'use client'; import { usePathname } from "next/navigation"; import { IntegrationsProvider } from "./integrations-context"; import { ToolsProvider } from "./tools-context"; const BLACKLISTED_PATHS = ['/auth', '/login']; export function ConditionalDataProvider({ children }: { children: React.ReactNode }) { const pathname = usePathname(); if (BLACKLISTED_PATHS.some(path => pathname.startsWith(path))) { return children; } return ( <ToolsProvider> <IntegrationsProvider> {children} </IntegrationsProvider> </ToolsProvider> ) }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/superglue-ai/superglue'

If you have feedback or need assistance with the MCP directory API, please join our Discord server