MCPcopy Create free account

hub / github.com/21st-dev/21st-sdk / functions

Functions4,011 in github.com/21st-dev/21st-sdk

↓ 8 callersFunctiongetToolStatus
(part: any, chatStatus?: string)
packages/react/src/utils/format-tool.ts:77
↓ 8 callersFunctionhashToken
* Hash a token using SHA-256 for secure storage * Only the hash is stored in DB; plaintext is returned to client
apps/agents-web/lib/desktop-auth.ts:17
↓ 8 callersFunctionis1CodeDomain
(request: NextRequest)
apps/agents-web/middleware.ts:17
↓ 8 callersFunctionisStandaloneWorkspaceVolumesEnabled
( provider: string | null | undefined, )
apps/relay/src/standalone-workspace-pvc.ts:67
↓ 8 callersFunctionlogBillingError
( teamId: string | undefined, message: string, error: unknown, data?: Record<string, unknown>, )
apps/agents-web/lib/agents-billing/ensure-team-billing.ts:136
↓ 8 callersFunctionrequireAgentSlug
(args: string[], usage: string)
packages/cli/src/api.ts:16
↓ 8 callersFunctionuseAnimationTimeline
(steps: TimelineStep[], options?: { paused?: boolean })
apps/agents-web/components/features/agents/an/chat-preview/hooks/use-animation-timeline.ts:6
↓ 8 callersFunctionuseMorphingDialog
()
apps/agents-web/components/ui/morphing-dialog.tsx:34
↓ 8 callersFunctionuseSidebar
()
apps/agents-web/components/features/agents/ui/canvas/{components}/ui/sidebar.tsx:41
↓ 8 callersFunctionuseStreamingText
( fullText: string, options: { delayBefore?: number wordInterval?: number autoStart?: boolean
apps/agents-web/components/features/agents/an/chat-preview/hooks/use-streaming-text.ts:5
↓ 8 callersFunctionverifyDesktopToken
( token: string, )
apps/agents-web/lib/desktop-auth.ts:235
↓ 7 callersFunctionassertAgentReadAccess
(ownerTeamId: string, userId: string)
apps/agents-web/server/api/routers/agent-configs/router.ts:38
↓ 7 callersFunctionbuildResponse
(params: { teamId: string planStatus: BillingPlanStatus state: TeamStripeBillingState ready: boolean
apps/agents-web/lib/agents-billing/ensure-team-billing.ts:986
↓ 7 callersFunctioncaptureAgentsEvent
( eventName: string, properties?: Record<string, any>, )
apps/agents-web/lib/posthog-agents.ts:100
↓ 7 callersFunctioncheckIsAdmin
( userId: string, )
apps/agents-web/lib/supabase.ts:23
↓ 7 callersMethoddestroy
()
apps/relay/src/sandbox-backends/types.ts:37
↓ 7 callersFunctionescapeXml
(value: string)
apps/agents-web/app/agents/docs/whats-new/rss.xml/route.ts:9
↓ 7 callersFunctionformatCurrency
(value: number)
apps/agents-web/app/(alpha)/agents/_components/standalone-runs-page-client.tsx:34
↓ 7 callersFunctionformatTokens
(n: number | null | undefined)
apps/agents-web/app/(alpha)/agents/threads/_components/logs-constants.ts:68
↓ 7 callersFunctiongenerateIntegrationMarkdown
( slug: string, apiKey: string | undefined, themeJson: string | null, docsCodeLanguage: DocsCodeLangua
apps/agents-web/components/features/agents/an/utils/generate-integration-markdown.ts:295
↓ 7 callersFunctiongetChatUrl
(chatId: string, addToInbox?: boolean)
apps/agents-web/lib/webhooks/utils/urls.ts:16
↓ 7 callersFunctiongetInstallationForRepo
( integration: GitHubIntegration | null | undefined, repository: string, )
apps/agents-web/lib/github.ts:96
↓ 7 callersMethodgetNodeName
(node: Node)
apps/agents-web/server/api/routers/semantic-chunk-search/services/ast-chunking.service.ts:465
↓ 7 callersFunctiongetOptionalTextField
(formData: FormData, key: string)
apps/agents-web/app/api/v1/agents/deploy/route.ts:141
↓ 7 callersFunctioninlineToMarkdown
($: CheerioAPI, node: NodeLike)
apps/agents-web/scripts/export-an-docs-markdown.ts:336
↓ 7 callersFunctionnormalizeMcpServerUrl
(rawUrl: string)
packages/sandbox-provider/src/mcp.ts:110
↓ 7 callersMethodpublish
(channel: string, message: string)
apps/agents-web/lib/redis.ts:29
↓ 7 callersFunctionrequireNonEmpty
(name: string, value: string | undefined)
apps/agents-web/lib/agents-billing/ensure-team-billing.ts:153
↓ 7 callersMethodroundToTwoDecimals
(value: number)
apps/agents-web/server/api/routers/usage/services/credit.service.ts:17
↓ 7 callersFunctionsandboxAccessClause
(teamId: string)
apps/relay/src/sandboxes.ts:164
↓ 7 callersFunctionsleep
(ms: number)
apps/agents-web/scripts/generate-embeddings.ts:41
↓ 7 callersFunctionuseAgentsViewer
()
apps/agents-web/lib/agents/auth/client.tsx:114
↓ 7 callersFunctionvalidationError
(message: string)
apps/agents-web/app/api/v1/agents/deploy/route.ts:128
↓ 6 callersFunctionaddLinearComment
( teamId: string, issueId: string, body: string, parentId?: string )
apps/agents-web/lib/webhooks/platforms/linear/responder.ts:28
↓ 6 callersFunctionasString
(value: unknown)
apps/agents-web/lib/agents-billing/ensure-team-billing.ts:149
↓ 6 callersFunctioncheckVaultCoverage
( vaultIds: string[], declaredServices: HttpAgentMcpServer[], store: VaultCoverageStore = databaseVaultC
apps/relay/src/vault-coverage.ts:74
↓ 6 callersFunctioncreateAgentSandbox
( params: CreateAgentSandboxParams )
apps/agents-web/lib/agents/create-agent-sandbox.ts:58
↓ 6 callersFunctioncreateApp
()
apps/relay/src/__tests__/vaults.test.ts:114
↓ 6 callersFunctioncreateLimiter
( limiter: ConstructorParameters<typeof Ratelimit>[0]["limiter"], prefix: string, )
apps/agents-web/lib/rate-limit.ts:13
↓ 6 callersFunctioncreateOrUpdateMcpCredential
(params: { teamId: string vaultId: string credentialId?: string name?: string | null serverUrl: stri
apps/agents-web/lib/server/mcp-vaults.ts:625
↓ 6 callersFunctionendTextBlock
( controller: TransformStreamDefaultController<LanguageModelV2StreamPart>, )
packages/sandbox-provider/src/sandbox-stream-transformer.ts:219
↓ 6 callersMethodensureLogDir
()
apps/agents-web/lib/server/logging/variant-logger.ts:22
↓ 6 callersFunctionexpandEnvVars
(value: string, env: NodeJS.ProcessEnv)
packages/agent-runtime/src/mcp.ts:58
↓ 6 callersFunctionformatCurrency
(value: number)
apps/agents-web/app/(alpha)/agents/usage/_components/usage-page-client.tsx:35
↓ 6 callersFunctionformatDurationMs
(ms: number)
apps/agents-web/app/(alpha)/agents/threads/_components/span-tree-utils.ts:83
↓ 6 callersMethodformatLogEntry
( level: "INFO" | "ERROR" | "TOOL" | "RESPONSE", message: string, data?: any, )
apps/agents-web/lib/server/logging/variant-logger.ts:41
↓ 6 callersFunctionformatRuntimeError
(phase: string, error: unknown)
packages/agent-runtime/src/index.ts:81
↓ 6 callersFunctionformatTimestamp
(value: string | null)
packages/cli/src/utils.ts:28
↓ 6 callersFunctiongetApiKeyPrefix
(plaintext: string)
packages/api-key-security/src/index.ts:15
↓ 6 callersFunctiongetDocsLang
( searchParams?: { lang?: string } | URLSearchParams, )
apps/agents-web/lib/agents-docs/get-docs-lang.ts:9
↓ 6 callersFunctiongetFilesystemCompat
(sandbox: Sandbox)
apps/relay/src/sandboxes.ts:62
↓ 6 callersFunctiongetInternalBaseUrl
()
apps/agents-web/lib/webhooks/utils/urls.ts:2
↓ 6 callersFunctiongetNumberProp
(obj: any, key: string)
packages/agent-runtime/src/stream.ts:45
↓ 6 callersFunctiongetPlanGroup
(planId?: string | null)
apps/agents-web/lib/plan-groups.ts:5
↓ 6 callersMethodgetSubscriptionInfo
(userId: string, planGroup?: PlanGroup)
apps/agents-web/server/api/routers/stripe/services/stripe.service.ts:7
↓ 6 callersFunctiongetTeamCursorIntegration
( teamId: string, userId: string, )
apps/agents-web/lib/server/cursor-integration.ts:25
↓ 6 callersFunctionhandleAutomationTrigger
* Handle automation triggers for PR/issue/branch events. * Checks ALL teams with this installation and runs matching automations from each.
apps/agents-web/app/api/webhooks/github/route.ts:1014
↓ 6 callersFunctionhighlight
(code: string, lang = "typescript")
apps/agents-web/lib/agents-docs/highlight.ts:3
↓ 6 callersFunctionmapToolInvocationToStep
( toolCallId: string, toolInvocation: { toolName: string args?: Record<string, any> state: "pa
packages/react/src/utils/tool-adapters.ts:170
↓ 6 callersFunctionmapToolStateToStepState
( aiState: "partial-call" | "call" | "result", )
packages/react/src/utils/tool-adapters.ts:115
↓ 6 callersFunctionprintIndented
(text: string)
packages/cli/src/logs.ts:95
↓ 6 callersFunctionrequest
(path: string, init?: RequestInit)
apps/agents-web/lib/attio.ts:15
↓ 6 callersFunctionrequestJson
( app: express.Express, method: string, path: string, body?: unknown, )
apps/relay/src/__tests__/vaults.test.ts:134
↓ 6 callersFunctionresolveE2BSandbox
( clientSandboxId: string, teamId: string, requesterUserId: string, )
apps/relay/src/sandboxes.ts:637
↓ 6 callersFunctionresolveSandboxHandle
( clientSandboxId: string, teamId: string, requesterUserId: string, )
apps/relay/src/sandboxes.ts:562
↓ 6 callersFunctionsaveActiveThreadId
(id: string | null)
apps/agents-web/components/features/agents/an/an-showcase.tsx:66
↓ 6 callersMethodsubscribe
(channel: string)
apps/agents-web/lib/redis.ts:30
↓ 6 callersFunctiontrackDesktopDownload
(data: { platform: string source: "hero_cta" | "bottom_cta" | "pricing_free_tier" | "nav" })
apps/agents-web/lib/posthog-agents.ts:253
↓ 6 callersFunctiontraverse
* Recursively traverses the component tree and adds components to the flat structure * @param component - The component to process
apps/agents-web/lib/registry.ts:220
↓ 6 callersFunctionvalidateSlug
(slug: string)
packages/cli/src/utils.ts:21
↓ 5 callersFunctionaddGitHubComment
( installationId: string | number, owner: string, repo: string, issueNumber: number, body: string )
apps/agents-web/lib/webhooks/platforms/github/responder.ts:8
↓ 5 callersFunctionappendLine
(s: string)
apps/agents-web/lib/server/github/github-reference.ts:144
↓ 5 callersFunctionbuildClaudeMcpServers
(params?: { host?: string port?: number | string env?: NodeJS.ProcessEnv })
packages/agent-runtime/src/mcp.ts:199
↓ 5 callersFunctioncommit
()
apps/agents-web/components/features/agents/an/playground/config/config-shared.tsx:506
↓ 5 callersFunctioncreateCoverageStore
( rows: Awaited<ReturnType<VaultCoverageStore["findCredentialRows"]>>, )
apps/relay/src/__tests__/vault-resolution.test.ts:43
↓ 5 callersFunctioncreateRestRoute
(procedure: string)
apps/agents-web/lib/api/trpc-rest.ts:41
↓ 5 callersFunctioncreateStudioAgentClient
()
apps/agents-web/lib/server/studio/sandbox.ts:29
↓ 5 callersFunctiondecrypt
(encryptedData: string)
apps/agents-web/lib/server/crypto.ts:59
↓ 5 callersFunctiondecryptLinearToken
(encryptedToken: string)
apps/agents-web/lib/server/crypto.ts:119
↓ 5 callersFunctiondefaultMcpCredentialInjectRule
()
packages/sandbox-provider/src/mcp.ts:63
↓ 5 callersFunctionemitSpan
( event: "start" | "end", span: Omit<SpanJSON, "traceId">, )
packages/sandbox-provider/src/acp-stream-transformer.ts:151
↓ 5 callersFunctionencrypt
(plaintext: string)
apps/agents-web/lib/server/crypto.ts:37
↓ 5 callersMethodendSpan
(key: string, opts?: { status?: SpanStatus error?: string attributes?: Record<string, unknown> }
packages/agent-runtime/src/tracing.ts:115
↓ 5 callersMethodexists
(key: string)
apps/agents-web/lib/redis.ts:26
↓ 5 callersMethodexpire
(key: string, seconds: number)
apps/agents-web/lib/redis.ts:27
↓ 5 callersFunctionextractThemeConfig
(theme?: ChatTheme)
packages/react/src/theme-config.ts:101
↓ 5 callersFunctionfetchCode
(url: string)
apps/agents-web/app/api/prompts/route.ts:18
↓ 5 callersFunctionfmtTokens
(n: number)
apps/agents-web/app/agents/internal/admin/directory/_constants.ts:82
↓ 5 callersFunctionfulfillModel
( model: keyof typeof models, caching: boolean = true, )
apps/agents-web/lib/server/ai/index.ts:91
↓ 5 callersFunctiongenerateSyntheticDiff
( filePath: string, content: string | null, isBinary: boolean, isLargeFile: boolean, )
apps/agents-web/app/api/1code/sandbox/[sandboxId]/diff/route.ts:26
↓ 5 callersFunctiongenerateToken
* Generate a secure random token
apps/agents-web/lib/desktop-auth.ts:57
↓ 5 callersFunctiongetCorsHeadersAllowLocalhost
(request: NextRequest)
apps/agents-web/lib/utils/cors.ts:23
↓ 5 callersFunctiongetCurrentISOWeek
()
apps/agents-web/lib/utils/week.ts:44
↓ 5 callersFunctiongetErrorStatus
(error: unknown)
apps/agents-web/lib/agents-billing/ensure-team-billing.ts:160
↓ 5 callersFunctiongetNamespace
()
apps/relay/src/standalone-workspace-pvc.ts:55
↓ 5 callersFunctiongetOrCreateInviteLink
( teamId: string, userId: string, regenerate = false, )
apps/agents-web/server/api/routers/teams/utils.ts:138
↓ 5 callersFunctiongroupIntoTurns
(steps: TimelineStep[])
apps/agents-web/components/features/agents/an/chat-preview/hooks/group-into-turns.ts:3
↓ 5 callersMethodinit
(streamId: string, traceId: string, publishFn: (streamId: string, message: object) => void)
packages/agent-runtime/src/tracing.ts:67
↓ 5 callersFunctionisRecord
(value: unknown)
packages/agent-runtime/src/mcp.ts:26
↓ 5 callersFunctionisRecord
(value: unknown)
packages/sandbox-provider/src/mcp.ts:45
← previousnext →101–200 of 4,011, ranked by callers