Skip to main content
Glama

Wanaku MCP Server

NamespacesPage.tsx1.77 kB
import { ToastNotification } from "@carbon/react"; import React, { useState, useEffect } from "react"; import { Namespace } from "../../models"; import { NamespaceTable } from "./NamespacesTable"; import { listNamespaces } from "../../hooks/api/use-namespaces"; export const NamespacesPage: React.FC = () => { const [errorMessage, setErrorMessage] = useState<string | null>(null); const [namespaces, setNamespaces] = useState<Namespace[]>([]); const [isLoading, setIsLoading] = useState(true); useEffect(() => { listNamespaces().then((result) => { setNamespaces(result.data.data as Namespace[]); setIsLoading(false); }); }, [listNamespaces]); useEffect(() => { if (errorMessage) { const timer = setTimeout(() => { setErrorMessage(null); }, 10000); return () => clearTimeout(timer); } }, [errorMessage]); if (isLoading) return <div>Loading...</div>; return ( <div> {errorMessage && ( <ToastNotification kind="error" title="Error" subtitle={errorMessage} onCloseButtonClick={() => setErrorMessage(null)} timeout={10000} style={{ float: "right" }} /> )} <h1 className="title">Namespaces</h1> <p className="description"> Namespaces help organize and isolate tools and resources, preventing LLM context bloat and improving deployment efficiency. Wanaku provides up to 10 namespace slots (ns-0 to ns-9) plus a default namespace for general use. Each namespace acts as a separate logical container to ensure tools don't interfere with each other. </p> <div id="page-content"> <NamespaceTable namespaces={namespaces} /> </div> </div> ); };

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/wanaku-ai/wanaku'

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