Skip to main content
Glama
app-breadcrumb-store.ts753 B
"use client"; import { create } from "zustand"; import { immer } from "zustand/middleware/immer"; import type { IAppBreadcrumbItem } from "./type"; type State = { breadcrumbList: IAppBreadcrumbItem[]; maxSize: number; }; type Actions = { updateBreadcrumbList: (breadcrumbList: IAppBreadcrumbItem[]) => void; updateMaxSize: (maxSize: number) => void; }; export const useAppBreadcrumbStore = create<State & Actions>()( immer((set) => ({ breadcrumbList: [], maxSize: 3, updateBreadcrumbList: (breadcrumbList: IAppBreadcrumbItem[]) => set((state) => { state.breadcrumbList = breadcrumbList; }), updateMaxSize: (maxSize: number) => set((state) => { state.maxSize = maxSize; }), })) );

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/metacode0602/open-mcp'

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