Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
229
useAssets.ts585 B
import { handle } from "@/api/client"; import { nodeAddAsset, nodeRemoveAsset } from "@/api/openapi-client/nodes"; import { Asset, Identifier, NodeWithChildren } from "@/api/openapi-schema"; export function useAssets(nodeID: Identifier) { async function handleAssetUpload(asset: Asset) { await handle(async () => { await nodeAddAsset(nodeID, asset.id); }); } async function handleAssetRemove(asset: Asset) { await handle(async () => { await nodeRemoveAsset(nodeID, asset.id); }); } return { handleAssetUpload, handleAssetRemove, }; }

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