Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VisActor/vchart-mcp-server
/ functions
Functions
27 in github.com/VisActor/vchart-mcp-server
⨍
Functions
27
◇
Types & classes
3
↓ 16 callers
Function
convertZodToJsonSchema
( schema: z.ZodTypeAny, name?: string )
src/utils/schema.ts:10
↓ 7 callers
Function
filterValidAttributes
(obj: Record<string, any>)
src/utils/generateChart.ts:6
↓ 2 callers
Function
createBaseHttpServer
( port: number, endpoint: string, handlers: RequestHandlers )
src/utils/httpServer.ts:115
↓ 2 callers
Function
createMCPServer
()
src/server.ts:16
↓ 1 callers
Function
generateChartByType
(chartType: string, options: any)
src/utils/generateChart.ts:42
↓ 1 callers
Method
generateEventId
* Generates a unique event ID for a given stream ID
src/utils/InMemoryEventStore.ts:22
↓ 1 callers
Function
gentrateChartImageOrHtml
( type: "html" | "image", spec: any, options?: { width?: string; height?: string } )
src/utils/generateChart.ts:16
↓ 1 callers
Function
getBody
(request: IncomingMessage)
src/utils/getBody.ts:3
↓ 1 callers
Method
getStreamIdFromEventId
* Extracts the stream ID from an event ID
src/utils/InMemoryEventStore.ts:29
↓ 1 callers
Function
getVmindRequestServer
()
src/utils/env.ts:1
↓ 1 callers
Function
handleCORS
* Handles CORS headers for incoming requests
src/utils/httpServer.ts:27
↓ 1 callers
Function
handleCommonEndpoints
* Handles common endpoints like health check and ping * @returns true if the request was handled, false otherwise
src/utils/httpServer.ts:45
↓ 1 callers
Function
logServerStartup
* Logs server startup information with formatted URLs
src/utils/httpServer.ts:95
↓ 1 callers
Function
main
* Main CLI application
src/index.ts:83
↓ 1 callers
Function
parseArgs
* Simple CLI argument parser (no external dependencies)
src/index.ts:14
↓ 1 callers
Function
setupCleanupHandlers
* Sets up signal handlers for graceful shutdown
src/utils/httpServer.ts:70
↓ 1 callers
Function
showHelp
* Show help information
src/index.ts:59
↓ 1 callers
Function
startSSEServer
( mcpServer: Server, endpoint = '/sse', port = 3001 )
src/services/sse.ts:12
↓ 1 callers
Function
startStdioServer
(mcpServer: Server)
src/services/stdio.ts:7
↓ 1 callers
Function
startStreamableServer
( createServer: () => Server, endpoint = '/streamable', port = 3001, eventStore: EventStore = new InMe
src/services/streamable.ts:16
Function
cleanup
()
src/utils/httpServer.ts:74
Function
cleanup
()
src/services/sse.ts:99
Function
cleanup
()
src/services/streamable.ts:205
Function
handleRequest
( req: IncomingMessage, res: ServerResponse )
src/services/sse.ts:20
Function
handleRequest
( req: IncomingMessage, res: ServerResponse )
src/services/streamable.ts:31
Method
replayEventsAfter
* Replays events that occurred after a specific event ID * Implements EventStore.replayEventsAfter
src/utils/InMemoryEventStore.ts:48
Method
storeEvent
* Stores an event with a generated event ID * Implements EventStore.storeEvent
src/utils/InMemoryEventStore.ts:38