Skip to main content
Glama

mcp-google-sheets

default-route.tsx760 B
import { Navigate, useLocation } from 'react-router-dom'; import { useAuthorization } from '@/hooks/authorization-hooks'; import { authenticationSession } from '@/lib/authentication-session'; import { determineDefaultRoute } from '@/lib/utils'; export const DefaultRoute = () => { const token = authenticationSession.getToken(); const location = useLocation(); const { checkAccess } = useAuthorization(); if (!token) { const searchParams = new URLSearchParams(); searchParams.set('from', location.pathname + location.search); return ( <Navigate to={`/sign-in?${searchParams.toString()}`} replace={true} ></Navigate> ); } return <Navigate to={determineDefaultRoute(checkAccess)} replace></Navigate>; };

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/activepieces/activepieces'

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