MCPcopy Create free account

hub / github.com/automation-ai-labs/mcp-link / functions

Functions62 in github.com/automation-ai-labs/mcp-link

↓ 37 callersMethodlogMessage
logMessage logs a message with the server's prefix if set
utils/multiserver_sse.go:199
↓ 4 callersMethodwriteJSONRPCError
writeJSONRPCError writes a JSON-RPC error response with the given error details.
utils/multiserver_sse.go:443
↓ 3 callersMethodAPIs
APIs returns information about all API endpoints
utils/parser.go:18
↓ 3 callersMethodparseSchema
parseSchema parses a JSON schema object
utils/parser.go:316
↓ 2 callersMethodCompleteMessageEndpoint
()
utils/multiserver_sse.go:502
↓ 2 callersMethodGetUrlPath
(input string)
utils/multiserver_sse.go:483
↓ 2 callersMethodInfo
()
utils/parser.go:16
↓ 2 callersMethodMatchesMethod
MatchesMethod checks if a method matches this filter
utils/multiserver_sse.go:536
↓ 2 callersMethodMatchesPath
MatchesPath checks if a path matches this filter
utils/multiserver_sse.go:531
↓ 2 callersFunctionNewSimpleOpenAPIParser
NewSimpleOpenAPIParser creates a new OpenAPI parser
utils/parser.go:91
↓ 2 callersFunctionParseFilterDSL
ParseFilterDSL parses a filter DSL string into a FilterDSL object The DSL syntax is as follows: - "+" at start means include (default), "-" means exc
utils/multiserver_sse.go:617
↓ 2 callersMethodShutdown
Shutdown gracefully stops the SSE server, closing all active sessions and shutting down the HTTP server.
utils/multiserver_sse.go:183
↓ 2 callersMethodToPathFilters
ToPathFilters converts the FilterDSL to a slice of PathFilter objects
utils/multiserver_sse.go:667
↓ 2 callersFunctionsanitizeToolName
(name string)
utils/adapter.go:17
↓ 1 callersFunctionApplyFilters
ApplyFilters applies the specified filters to the OpenAPI paths and methods
utils/multiserver_sse.go:683
↓ 1 callersFunctionBase64Decode
Base64Decode decodes a base64 string to bytes
utils/multiserver_sse.go:791
↓ 1 callersMethodCompleteMessagePath
()
utils/multiserver_sse.go:505
↓ 1 callersMethodCompleteSseEndpoint
()
utils/multiserver_sse.go:491
↓ 1 callersMethodCompleteSsePath
()
utils/multiserver_sse.go:494
↓ 1 callersFunctionNewMCPFromCustomParser
NewMCPFromCustomParser creates an MCP server from our custom OpenAPIParser
utils/adapter.go:195
↓ 1 callersFunctionNewSSEServer
NewSSEServer creates a new SSE server instance with the given MCP server and options.
utils/multiserver_sse.go:155
↓ 1 callersFunctionNewToolHandler
(method string, url string, extraHeaders map[string]string)
utils/adapter.go:53
↓ 1 callersFunctionParseOpenAPIFromJSON
ParseOpenAPIFromJSON parses an OpenAPI specification from JSON
utils/parser.go:402
↓ 1 callersFunctionParseOpenAPIFromYAML
ParseOpenAPIFromYAML parses OpenAPI specification from YAML format
utils/parser.go:376
↓ 1 callersMethodServeHTTP
ServeHTTP implements the http.Handler interface.
utils/multiserver_sse.go:796
↓ 1 callersMethodServers
Info returns basic information about the API
utils/parser.go:15
↓ 1 callersFunctionShouldIncludePath
ShouldIncludePath determines if a path and method should be included based on filters
utils/multiserver_sse.go:964
↓ 1 callersFunctioncorsMiddleware
corsMiddleware adds CORS headers to allow requests from any origin
main.go:99
↓ 1 callersFunctioncreateErrorResponse
( id interface{}, code int, message string, )
utils/multiserver_sse.go:932
↓ 1 callersFunctiongetHostFromURL
getHostFromURL extracts the host from a URL string
utils/multiserver_sse.go:1010
↓ 1 callersFunctiongetSchemaURL
(schemaURL string)
utils/multiserver_sse.go:951
↓ 1 callersMethodhandleMessage
handleMessage processes incoming JSON-RPC messages from clients and sends responses back through both the SSE connection and HTTP response.
utils/multiserver_sse.go:314
↓ 1 callersMethodhandleSSE
handleSSE handles incoming SSE connection requests. It sets up appropriate headers and creates a new session for the client.
utils/multiserver_sse.go:208
↓ 1 callersFunctionisHTTPMethod
(method string)
utils/parser.go:368
↓ 1 callersFunctionisYAML
isYAML checks if data looks like YAML
utils/multiserver_sse.go:915
↓ 1 callersFunctionmatchGlob
matchGlob implements a simple glob pattern matching * matches any single path segment ** matches zero or more path segments
utils/multiserver_sse.go:552
↓ 1 callersFunctionmatchGlobSegments
matchGlobSegments is a recursive helper for matchGlob
utils/multiserver_sse.go:565
↓ 1 callersMethodparseRequestParams
parseRequestParams extracts parameters from the request URL query. If a 'code' parameter is present, it attempts to base64 decode it to get parameters
utils/multiserver_sse.go:701
↓ 1 callersFunctionrunServer
(host string, port int)
main.go:51
MethodAPIs
APIs returns information about all API endpoints
utils/parser.go:170
MethodAPIs
APIs returns filtered APIs from the base parser
utils/multiserver_sse.go:909
MethodInfo
Info returns basic information about the API
utils/parser.go:149
MethodInfo
Info delegates to the base parser
utils/multiserver_sse.go:904
MethodInitialize
()
utils/multiserver_sse.go:47
MethodInitialized
()
utils/multiserver_sse.go:51
MethodNotificationChannel
()
utils/multiserver_sse.go:43
MethodSendEventToSession
SendEventToSession sends an event to a specific SSE session identified by sessionID. Returns an error if the session is not found or closed.
utils/multiserver_sse.go:457
MethodServers
Servers returns the servers in the OpenAPI specification
utils/parser.go:121
MethodServers
Servers delegates to the base parser
utils/multiserver_sse.go:899
MethodSessionID
()
utils/multiserver_sse.go:39
MethodStart
Start begins serving SSE connections on the specified address. It sets up HTTP handlers for SSE and message endpoints.
utils/multiserver_sse.go:172
FunctionTest_ParseYamlToJson
(t *testing.T)
utils/parser_test.go:15
FunctionWithBasePath
Add a new option for setting base path
utils/multiserver_sse.go:101
FunctionWithBaseURL
WithBaseURL sets the base URL for the SSE server
utils/multiserver_sse.go:78
FunctionWithDebugMode
WithDebugMode sets the debug mode for logging
utils/multiserver_sse.go:141
FunctionWithHTTPServer
WithHTTPServer sets the HTTP server instance
utils/multiserver_sse.go:126
FunctionWithLogPrefix
WithLogPrefix sets a custom prefix for log messages
utils/multiserver_sse.go:148
FunctionWithMessageEndpoint
WithMessageEndpoint sets the message endpoint path
utils/multiserver_sse.go:112
FunctionWithSSEContextFunc
WithContextFunc sets a function that will be called to customise the context to the server using the incoming request.
utils/multiserver_sse.go:134
FunctionWithSSEEndpoint
WithSSEEndpoint sets the SSE endpoint path
utils/multiserver_sse.go:119
FunctioncreateResponse
(id interface{}, result interface{})
utils/multiserver_sse.go:924
Functionmain
()
main.go:17