Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
229
useDevices.ts767 B
import { useAccountAuthProviderList, useAccountGet, } from "src/api/openapi-client/accounts"; import { AccountAuthMethod } from "src/api/openapi-schema"; import { passkeyRegister } from "src/components/auth/webauthn/utils"; import { deriveError } from "src/utils/error"; export type Props = { active: AccountAuthMethod[]; }; export function useDevices() { const { mutate } = useAccountAuthProviderList(); const { data, error } = useAccountGet(); if (!data) return { ready: false as const, error }; const { handle } = data; async function handleDeviceRegister() { try { await passkeyRegister(handle); mutate(); } catch (e) { deriveError(e); } } return { ready: true as const, handleDeviceRegister, }; }

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/Southclaws/storyden'

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