MCPcopy Create free account

hub / github.com/VisActor/vchart-mcp-server / functions

Functions27 in github.com/VisActor/vchart-mcp-server

↓ 16 callersFunctionconvertZodToJsonSchema
( schema: z.ZodTypeAny, name?: string )
src/utils/schema.ts:10
↓ 7 callersFunctionfilterValidAttributes
(obj: Record<string, any>)
src/utils/generateChart.ts:6
↓ 2 callersFunctioncreateBaseHttpServer
( port: number, endpoint: string, handlers: RequestHandlers )
src/utils/httpServer.ts:115
↓ 2 callersFunctioncreateMCPServer
()
src/server.ts:16
↓ 1 callersFunctiongenerateChartByType
(chartType: string, options: any)
src/utils/generateChart.ts:42
↓ 1 callersMethodgenerateEventId
* Generates a unique event ID for a given stream ID
src/utils/InMemoryEventStore.ts:22
↓ 1 callersFunctiongentrateChartImageOrHtml
( type: "html" | "image", spec: any, options?: { width?: string; height?: string } )
src/utils/generateChart.ts:16
↓ 1 callersFunctiongetBody
(request: IncomingMessage)
src/utils/getBody.ts:3
↓ 1 callersMethodgetStreamIdFromEventId
* Extracts the stream ID from an event ID
src/utils/InMemoryEventStore.ts:29
↓ 1 callersFunctiongetVmindRequestServer
()
src/utils/env.ts:1
↓ 1 callersFunctionhandleCORS
* Handles CORS headers for incoming requests
src/utils/httpServer.ts:27
↓ 1 callersFunctionhandleCommonEndpoints
* Handles common endpoints like health check and ping * @returns true if the request was handled, false otherwise
src/utils/httpServer.ts:45
↓ 1 callersFunctionlogServerStartup
* Logs server startup information with formatted URLs
src/utils/httpServer.ts:95
↓ 1 callersFunctionmain
* Main CLI application
src/index.ts:83
↓ 1 callersFunctionparseArgs
* Simple CLI argument parser (no external dependencies)
src/index.ts:14
↓ 1 callersFunctionsetupCleanupHandlers
* Sets up signal handlers for graceful shutdown
src/utils/httpServer.ts:70
↓ 1 callersFunctionshowHelp
* Show help information
src/index.ts:59
↓ 1 callersFunctionstartSSEServer
( mcpServer: Server, endpoint = '/sse', port = 3001 )
src/services/sse.ts:12
↓ 1 callersFunctionstartStdioServer
(mcpServer: Server)
src/services/stdio.ts:7
↓ 1 callersFunctionstartStreamableServer
( createServer: () => Server, endpoint = '/streamable', port = 3001, eventStore: EventStore = new InMe
src/services/streamable.ts:16
Functioncleanup
()
src/utils/httpServer.ts:74
Functioncleanup
()
src/services/sse.ts:99
Functioncleanup
()
src/services/streamable.ts:205
FunctionhandleRequest
( req: IncomingMessage, res: ServerResponse )
src/services/sse.ts:20
FunctionhandleRequest
( req: IncomingMessage, res: ServerResponse )
src/services/streamable.ts:31
MethodreplayEventsAfter
* Replays events that occurred after a specific event ID * Implements EventStore.replayEventsAfter
src/utils/InMemoryEventStore.ts:48
MethodstoreEvent
* Stores an event with a generated event ID * Implements EventStore.storeEvent
src/utils/InMemoryEventStore.ts:38