Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cloudflare/workers-mcp
/ functions
Functions
42 in github.com/cloudflare/workers-mcp
⨍
Functions
42
◇
Types & classes
13
↓ 10 callers
Function
log
(...args: any[])
src/scripts/local-proxy.ts:10
↓ 3 callers
Function
generateSecret
()
src/scripts/secret.ts:19
↓ 3 callers
Function
runCommand
(command: string, args: string[])
src/scripts/utils.ts:3
↓ 2 callers
Function
Proxy
( request: Request, secret: string, sendRPC: (method: string, args: any[]) => Promise<any>, )
src/lib/Proxy.ts:4
↓ 2 callers
Method
fetch
* @ignore
examples/02-image-generation/src/index.ts:30
↓ 2 callers
Method
fetch
* @ignore
examples/01-hello-world/src/index.ts:18
↓ 2 callers
Function
generateDocs
(filename: string)
src/scripts/generate-docs.ts:42
↓ 2 callers
Function
installClaude
(claude_name: string, workers_url: string)
src/scripts/install-claude.ts:7
↓ 2 callers
Function
log
(...args: any[])
src/cli.ts:10
↓ 2 callers
Function
rangeWithin
(inner: [number, number] | undefined, outer: [number, number])
src/scripts/generate-docs.ts:246
↓ 2 callers
Function
readSharedSecret
()
src/scripts/secret.ts:8
↓ 2 callers
Function
uploadSecret
(secret: string)
src/scripts/secret.ts:37
↓ 1 callers
Function
addDocgen
(index_script: string)
src/scripts/setup.ts:45
↓ 1 callers
Function
determineIndexScript
()
src/scripts/setup.ts:35
↓ 1 callers
Function
doDeploy
(index_script: string, script_name?: string)
src/scripts/setup.ts:203
↓ 1 callers
Function
generateAndUploadSecret
()
src/scripts/setup.ts:118
↓ 1 callers
Function
guidedInstallation
()
src/scripts/setup.ts:13
↓ 1 callers
Method
handleMessage
* Handle a client message, regardless of how it arrived. This can be used to inform the server of messages that arrive via a means different than HTTP
src/lib/sseEdge.ts:104
↓ 1 callers
Method
handlePostMessage
* Handles incoming Requests
src/lib/sseEdge.ts:73
↓ 1 callers
Function
help
()
src/scripts/help.ts:4
↓ 1 callers
Function
install
(url: string)
src/scripts/setup.ts:226
↓ 1 callers
Function
isDirectory
(configPath: string)
src/scripts/install-claude.ts:59
↓ 1 callers
Function
localProxy
(claude_name: string, workers_url: string, workers_dir: string = process.cwd())
src/scripts/local-proxy.ts:20
↓ 1 callers
Function
reencodeImage
(original: string)
src/scripts/local-proxy.ts:15
↓ 1 callers
Function
replaceSource
(index_script: string)
src/scripts/setup.ts:171
↓ 1 callers
Function
runWithStdin
(command: string, args: string[], stdin: string)
src/scripts/utils.ts:31
↓ 1 callers
Function
secret
(command: string)
src/scripts/secret.ts:41
Function
_init
(props: T)
src/modules/MCPEntrypoint.ts:18
Method
close
()
src/lib/sseEdge.ts:116
Method
constructor
( readonly env: T, readonly namespace_key: keyof T, readonly index_strategy: IndexStrategy, )
src/modules/ProxyToDO.ts:13
Method
constructor
(readonly worker: WorkerEntrypoint<T>)
src/modules/ProxyToSelf.ts:7
Method
constructor
* Creates a new EdgeSSETransport, which will direct the MPC client to POST messages to messageUrl
src/lib/sseEdge.ts:23
Method
fetch
(request: Request)
src/modules/ProxyToDO.ts:19
Method
fetch
(request: Request)
src/modules/ProxyToSelf.ts:14
Method
generateImage
* Generate an image using the `flux-1-schnell` model. Works best with 8 steps. * * @param {string} prompt - A text description of the image you wa
examples/02-image-generation/src/index.ts:11
Function
mount
( path: string, { binding = 'MCP_OBJECT', corsOptions, }: { binding?: string
src/modules/MCPEntrypoint.ts:39
Function
onMessage
(request: Request)
src/modules/MCPEntrypoint.ts:35
Function
onSSE
(request: Request)
src/modules/MCPEntrypoint.ts:26
Method
sayHello
* A warm, friendly greeting from your new Workers MCP server. * @param name {string} the name of the person we are greeting. * @return {string}
examples/01-hello-world/src/index.ts:11
Method
send
(message: JSONRPCMessage)
src/lib/sseEdge.ts:125
Method
sseResponse
()
src/lib/sseEdge.ts:54
Method
start
()
src/lib/sseEdge.ts:39