MCPcopy Create free account

hub / github.com/21st-dev/magic-mcp / functions

Functions28 in github.com/21st-dev/magic-mcp

↓ 11 callersFunctiongit
(cwd: string, args: string)
src/utils/git-operations.ts:9
↓ 5 callersFunctioncleanup
()
src/index.ts:33
↓ 5 callersFunctioncreateMethod
(method: HttpMethod)
src/utils/http-client.ts:40
↓ 3 callersMethodshutdown
()
src/utils/callback-server.ts:82
↓ 1 callersMethodconvertToFormat
( svgContent: string, format: "JSX" | "TSX" | "SVG", componentName: string = "Icon" )
src/tools/logo-search.ts:96
↓ 1 callersMethodfetchLogos
(query: string)
src/tools/logo-search.ts:60
↓ 1 callersMethodfetchSVGContent
(url: string)
src/tools/logo-search.ts:83
↓ 1 callersMethodfindAvailablePort
(startPort: number, maxAttempts = 10)
src/utils/callback-server.ts:27
↓ 1 callersFunctiongetContentOfFile
(path: string)
src/utils/get-content-of-file.ts:1
↓ 1 callersMethodgetPort
()
src/utils/callback-server.ts:23
↓ 1 callersMethodisPortAvailable
(port: number)
src/utils/callback-server.ts:92
↓ 1 callersFunctionparseArguments
()
src/utils/config.ts:7
↓ 1 callersMethodparseBody
(req: IncomingMessage)
src/utils/callback-server.ts:37
↓ 1 callersFunctionrunServer
()
src/index.ts:27
↓ 1 callersMethodsaveTestResult
(data: { queries: string[]; format: string; successful: Array<{ query: string; content: string }>;
src/tools/logo-search.ts:134
↓ 1 callersFunctionsetupJsonConsole
()
src/utils/console.ts:6
↓ 1 callersMethodwaitForCallback
(config: CallbackServerConfig = {})
src/utils/callback-server.ts:105
Methodconstructor
(port = 9221)
src/utils/callback-server.ts:19
Methoddelete
( endpoint: string, data?: unknown, options?: RequestInit )
src/utils/http-client.ts:28
Methodexecute
({ standaloneRequestQuery, absolutePathToProjectDirectory, message, }: z.infer<typeof this.schem
src/tools/create-ui.ts:45
Methodexecute
({ userMessage, absolutePathToRefiningFile, context, }: z.infer<typeof this.schema>)
src/tools/refine-ui.ts:33
Methodexecute
({ queries, format }: z.infer<typeof this.schema>)
src/tools/logo-search.ts:196
Methodexecute
({ message, searchQuery }: z.infer<typeof this.schema>)
src/tools/fetch-ui.ts:28
Methodget
( endpoint: string, options?: RequestInit )
src/utils/http-client.ts:14
Methodpatch
( endpoint: string, data?: unknown, options?: RequestInit )
src/utils/http-client.ts:33
Methodpost
( endpoint: string, data?: unknown, options?: RequestInit )
src/utils/http-client.ts:18
Methodput
( endpoint: string, data?: unknown, options?: RequestInit )
src/utils/http-client.ts:23
Functionregister
(server: McpServer)
src/utils/base-tool.ts:9