We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Arize-ai/phoenix'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { createContext, useContext } from "react";
interface CredentialContextValue {
isVisible: boolean;
setIsVisible: (visible: boolean) => void;
}
export const CredentialContext = createContext<CredentialContextValue | null>(
null
);
export function useCredentialContext() {
const context = useContext(CredentialContext);
if (!context) {
throw new Error(
"useCredentialContext must be used within a CredentialContext.Provider"
);
}
return context;
}