Skip to main content
Glama

Wanaku MCP Server

use-forwards.ts812 B
import { getApiV1ForwardsList } from "../../api/wanaku-router-api"; // Simple in-memory cache for Client Components let forwardsCache: { data: any; } | null = null; export const listForwards = async (options: any = null) => { // Check if we have valid cached data if (forwardsCache) { if (process.env.NODE_ENV !== 'production') { console.log('Returning cached forwards data'); } return forwardsCache.data; } // Fetch fresh data if (process.env.NODE_ENV !== 'production') { console.log('Fetching fresh forwards data'); } const result = await getApiV1ForwardsList(options); // Cache the result forwardsCache = { data: result }; return result; }; // Function to clear cache if needed export const clearForwardsCache = () => { forwardsCache = null; };

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