MCPcopy Create free account

hub / github.com/cloudflare/mcp / functions

Functions369 in github.com/cloudflare/mcp

↓ 2 callersFunctionhandleTokenExchangeCallback
( options: TokenExchangeCallbackOptions, clientId: string, clientSecret: string, /** * Lazily build
src/auth/oauth-handler.ts:474
↓ 2 callersFunctionhumanize
* Turn a resource key like `workers_scripts` into a human-readable label. * Falls back to title-casing unknown keys.
src/auth/workers-oauth-utils.ts:294
↓ 2 callersFunctionimportKey
* Imports a secret key string for HMAC-SHA256 signing.
src/auth/workers-oauth-utils.ts:92
↓ 2 callersFunctionlogResult
(name: string, result: unknown)
src/metrics.ts:248
↓ 2 callersFunctionmcpToolListRequest
(token: string, id = 1)
tests/helpers/mcp.ts:14
↓ 2 callersFunctionmockMultiAccountUser
()
tests/executor.test.ts:148
↓ 2 callersFunctionqueryCloudflareDocs
(ai: Ai, query: string)
src/tools/docs-search.ts:138
↓ 2 callersFunctionredirectToCloudflare
* Redirect to Cloudflare OAuth with selected scopes
src/auth/oauth-handler.ts:530
↓ 2 callersFunctionrefreshAuthToken
(params: { client_id: string client_secret: string refresh_token: string oauthDomain: string })
src/auth/cloudflare-auth.ts:141
↓ 2 callersFunctionregisterClient
Register a client via the provider's RFC 7591 endpoint; returns its id.
tests/auth/oauth-routes.test.ts:23
↓ 2 callersFunctionrunDocsTool
(query: string)
src/tools/docs-search.ts:95
↓ 2 callersFunctionrunExecute
* Run sandboxed JavaScript against the Cloudflare API via `cloudflare.request()`. * * A fresh isolate is created per call: the user code is baked in
src/tools/execute.ts:62
↓ 2 callersFunctionsha256Hex
(value: string)
src/auth/oauth-handler.ts:74
↓ 2 callersFunctionsleep
(ms: number)
src/utils/fetch-retry.ts:95
↓ 2 callersFunctionthrowUpstreamError
(response: Response, context: string)
src/auth/cloudflare-auth.ts:15
↓ 2 callersFunctiontitleCase
(value: string)
src/tools/docs-search.ts:239
↓ 2 callersFunctiontoolForAccountAccess
( tool: NonCodemodeTool, resolvedAccountId: string | undefined, props: AuthProps )
src/tools/non-codemode.ts:139
↓ 2 callersFunctionuserIdFromProps
* Resolve the userId to attribute metrics to. Only user tokens carry a user * identity; account tokens have no user, so blob3 is left undefined — mat
src/metrics.ts:211
↓ 2 callersFunctionvalidationError
(name: string, error: z.ZodError)
src/tools/non-codemode.ts:121
↓ 1 callersFunctionaccountIdParamDescription
()
src/tools/execute.ts:285
↓ 1 callersFunctionaccountSelectionDescription
(props?: AuthProps)
src/tools/execute.ts:264
↓ 1 callersFunctionattachMetrics
(server: McpServer, props?: AuthProps)
src/metrics.ts:239
↓ 1 callersFunctionbuildJsonInputSchema
(operation: OperationInfo, path: string)
src/openapi.ts:223
↓ 1 callersFunctioncacheRefreshFailure
( kv: KVNamespace, failureKey: string, error: OAuthError )
src/auth/oauth-handler.ts:182
↓ 1 callersFunctioncallNonCodemodeTool
( tool: NonCodemodeTool, params: Record<string, unknown>, resolvedAccountId: string | undefined, apiTo
src/tools/non-codemode.ts:71
↓ 1 callersFunctionclearRefreshInFlight
(kv: KVNamespace, inFlightKey: string)
src/auth/oauth-handler.ts:207
↓ 1 callersFunctionclientIdAlreadyApproved
( request: Request, clientId: string, cookieSecret: string )
src/auth/workers-oauth-utils.ts:180
↓ 1 callersFunctioncloudflareTypesForAccount
* The `CLOUDFLARE_TYPES` block plus a per-session comment describing how * `accountId` is resolved for this token (pinned, single account, or chosen
src/tools/execute.ts:211
↓ 1 callersFunctioncreateAuthHandlers
()
src/auth/oauth-handler.ts:558
↓ 1 callersFunctioncreateMcpHandler
* Create MCP API handler using Hono
src/index.ts:47
↓ 1 callersFunctiondecodeBase64Utf8
(value: string)
src/auth/workers-oauth-utils.ts:24
↓ 1 callersFunctiondoWithRetries
(action: () => Promise<T>)
src/tools/docs-search.ts:199
↓ 1 callersFunctionencodeBase64Utf8
(value: string)
src/auth/workers-oauth-utils.ts:17
↓ 1 callersMethodevaluate
()
src/tools/search.ts:10
↓ 1 callersMethodevaluate
()
src/tools/execute.ts:20
↓ 1 callersFunctionexecuteToolDescription
* Description for the `execute` tool, including the per-session Cloudflare type * declarations and a multipart Worker-upload example.
src/tools/execute.ts:243
↓ 1 callersFunctionfetchCloudflareProbes
( accessToken: string, caller = 'oauth_callback_identity_probe' )
src/auth/oauth-handler.ts:348
↓ 1 callersFunctiongenerateCSRFProtection
()
src/auth/workers-oauth-utils.ts:1540
↓ 1 callersFunctiongetCachedApiTokenIdentity
(token: string)
src/auth/api-token-mode.ts:22
↓ 1 callersFunctiongetCachedRefreshFailure
( kv: KVNamespace, failureKey: string )
src/auth/oauth-handler.ts:139
↓ 1 callersFunctiongetNonCodemodeToolMap
()
src/isolate-cache.ts:69
↓ 1 callersFunctiongetProducts
()
src/isolate-cache.ts:79
↓ 1 callersFunctiongetRetryAfterHeader
(...responses: Response[])
src/auth/oauth-handler.ts:317
↓ 1 callersFunctiongroupScopesByCategory
* Group scopes by resource, then bucket rows by category for accordion display.
src/auth/workers-oauth-utils.ts:388
↓ 1 callersFunctionhashApiToken
(token: string)
src/auth/api-token-mode.ts:17
↓ 1 callersFunctionisRefreshInFlight
(kv: KVNamespace, inFlightKey: string)
src/auth/oauth-handler.ts:163
↓ 1 callersFunctionisRetryableError
(error: unknown)
src/tools/docs-search.ts:220
↓ 1 callersFunctionisTerminalRefreshError
(error: unknown)
src/auth/oauth-handler.ts:89
↓ 1 callersFunctionlistNonCodemodeOperations
( paths: Record<string, Record<string, OperationInfo>> )
src/openapi.ts:141
↓ 1 callersFunctionlistNonCodemodeTools
POST a non-codemode tools/list to the real worker.
tests/non-codemode-worker.test.ts:47
↓ 1 callersMethodlisten
(...args: unknown[])
worker-configuration.d.ts:9991
↓ 1 callersFunctionmakeAi
(response: unknown)
tests/docs-search.test.ts:10
↓ 1 callersFunctionmarkRefreshInFlight
(kv: KVNamespace, inFlightKey: string)
src/auth/oauth-handler.ts:172
↓ 1 callersFunctionmockFetchText
(text: string, ok = true)
tests/non-codemode.test.ts:596
↓ 1 callersFunctionmockUserProbe
()
tests/auth/api-token-mode.test.ts:162
↓ 1 callersFunctionparseOAuthStateToken
(state: string)
src/auth/workers-oauth-utils.ts:29
↓ 1 callersFunctionparseRedirectApproval
( request: Request, cookieSecret: string )
src/auth/workers-oauth-utils.ts:1476
↓ 1 callersFunctionpathToToolNameSuffix
(path: string)
src/openapi.ts:59
↓ 1 callersFunctionrecordToolCall
(props: AuthProps, toolName: string, isError: boolean)
src/metrics.ts:216
↓ 1 callersFunctionrefreshGuardKeys
(refreshTokenHash: string)
src/auth/oauth-handler.ts:82
↓ 1 callersFunctionregisterExecuteTool
(server: McpServer, props: AuthProps)
src/tools/execute.ts:298
↓ 1 callersFunctionregisterNonCodemodeTools
(server: McpServer, props: AuthProps)
src/tools/non-codemode.ts:24
↓ 1 callersFunctionregisterSearchTool
(server: McpServer)
src/tools/search.ts:103
↓ 1 callersFunctionremoveNonCodemodeTools
()
tests/helpers/spec.ts:23
↓ 1 callersFunctionrenderApprovalDialog
(request: Request, options: ApprovalDialogOptions)
src/auth/workers-oauth-utils.ts:473
↓ 1 callersFunctionretryAfterHeaders
* Convert an upstream Cloudflare OAuth error response to an OAuthError. * 4xx: preserves the status code with a safe message. * 5xx: uses 502 Bad Ga
src/auth/cloudflare-auth.ts:10
↓ 1 callersFunctionrunSearch
* Run sandboxed read-only JavaScript against the pre-resolved OpenAPI spec. * * The spec is embedded into a fresh isolate per call (dynamic-worker i
src/tools/search.ts:21
↓ 1 callersFunctions256Challenge
Recompute the expected S256 challenge for a verifier, base64url-encoded.
tests/auth/cloudflare-auth.test.ts:67
↓ 1 callersFunctionsearchToolDescription
* Description for the `search` tool, listing a sample of available products and * the `spec` types the sandboxed search code can use.
src/tools/search.ts:63
↓ 1 callersFunctionsignData
* Signs data using HMAC-SHA256.
src/auth/workers-oauth-utils.ts:109
↓ 1 callersFunctionthrowCombinedCloudflareApiError
(userResp: Response, accountsResp: Response)
src/auth/oauth-handler.ts:324
↓ 1 callersMethodtoResponse
()
src/auth/workers-oauth-utils.ts:57
↓ 1 callersFunctiontoWireTool
(tool: NonCodemodeTool)
src/tools/non-codemode.ts:134
↓ 1 callersFunctionvalidateOAuthState
( request: Request, kv: KVNamespace )
src/auth/workers-oauth-utils.ts:1776
↓ 1 callersFunctionverifySignature
* Verifies an HMAC-SHA256 signature.
src/auth/workers-oauth-utils.ts:120
↓ 1 callersMethodwait
(delay: number, maybeOptions?: SchedulerWaitOptions)
worker-configuration.d.ts:886
↓ 1 callersMethodwaitUntil
(promise: Promise<any>)
worker-configuration.d.ts:480
↓ 1 callersMethodwriteDataPoint
(event?: AnalyticsEngineDataPoint)
worker-configuration.d.ts:639
↓ 1 callersFunctionzodInputSchemaFromJson
( inputSchema: JsonObjectSchema )
src/openapi.ts:211
Method"assert"
(condition?: boolean, ...data: any[])
worker-configuration.d.ts:150
Method[Symbol.asyncIterator]
(options?: ReadableStreamValuesOptions)
worker-configuration.d.ts:2229
Methodabort
(reason?: string)
worker-configuration.d.ts:571
Methodabort
()
worker-configuration.d.ts:1998
Methodaccept
()
worker-configuration.d.ts:3096
MethodacceptWebSocket
(ws: WebSocket, tags?: string[])
worker-configuration.d.ts:563
Methodack
()
worker-configuration.d.ts:1950
MethodackAll
()
worker-configuration.d.ts:1956
MethodackAll
()
worker-configuration.d.ts:1962
Methodaddress
()
worker-configuration.d.ts:9992
Methodafter
(content: string | ReadableStream | Response, options?: ContentOptions)
worker-configuration.d.ts:1549
Methodafter
(content: string | ReadableStream | Response, options?: ContentOptions)
worker-configuration.d.ts:1561
Methodafter
(content: string, options?: ContentOptions)
worker-configuration.d.ts:1568
Methodafter
(content: string | ReadableStream | Response, options?: ContentOptions)
worker-configuration.d.ts:1577
Methodalarm
(alarmInfo?: AlarmInvocationInfo)
worker-configuration.d.ts:521
Methodappend
(content: string, options?: ContentOptions)
worker-configuration.d.ts:1582
MethodarrayBuffer
()
worker-configuration.d.ts:2023
Methodatob
(data: string)
worker-configuration.d.ts:341
Methodbefore
(content: string | ReadableStream | Response, options?: ContentOptions)
worker-configuration.d.ts:1548
Methodbefore
(content: string | ReadableStream | Response, options?: ContentOptions)
worker-configuration.d.ts:1560
Methodbefore
(content: string, options?: ContentOptions)
worker-configuration.d.ts:1567
← previousnext →101–200 of 369, ranked by callers