Skip to main content
Glama

MCP SNS Server

by baolongt
helper.ts646 B
import { DelegationChain, DelegationIdentity } from "@dfinity/identity"; import { initWallet } from "./wallet.js"; export const safeParseJSON = (arg: any): string => { return JSON.stringify(arg, (key, value) => typeof value === "bigint" ? value.toString() : value ); }; export const getDelegatedIdentity = async ( delegation: string ) => { const json_parsed = JSON.parse(delegation); const delegationChain = DelegationChain.fromJSON(json_parsed); const backendIdentity = initWallet(); const delegatedIdentity = DelegationIdentity.fromDelegation( backendIdentity, delegationChain ); return delegatedIdentity; }

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/baolongt/sns-mcp-server'

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