We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jscraik/mKit'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
useWidgeMeta.ts•457 B
import { useOpenAIGlobal } from './useOpenAIGlobal'
export function useWidgetMeta<T extends Record<string, unknown>>(): {
data: T | undefined
isLoading: boolean
} {
// Try with just T generic - let K be inferred from the argument
const metadata = useOpenAIGlobal<{ Metadata: T }, 'toolResponseMetadata'>('toolResponseMetadata')
if (metadata) {
return {
data: metadata,
isLoading: false,
}
}
return { data: undefined, isLoading: true }
}