Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/automation-ai-labs/mcp-link
/ functions
Functions
62 in github.com/automation-ai-labs/mcp-link
⨍
Functions
62
◇
Types & classes
19
↓ 37 callers
Method
logMessage
logMessage logs a message with the server's prefix if set
utils/multiserver_sse.go:199
↓ 4 callers
Method
writeJSONRPCError
writeJSONRPCError writes a JSON-RPC error response with the given error details.
utils/multiserver_sse.go:443
↓ 3 callers
Method
APIs
APIs returns information about all API endpoints
utils/parser.go:18
↓ 3 callers
Method
parseSchema
parseSchema parses a JSON schema object
utils/parser.go:316
↓ 2 callers
Method
CompleteMessageEndpoint
()
utils/multiserver_sse.go:502
↓ 2 callers
Method
GetUrlPath
(input string)
utils/multiserver_sse.go:483
↓ 2 callers
Method
Info
()
utils/parser.go:16
↓ 2 callers
Method
MatchesMethod
MatchesMethod checks if a method matches this filter
utils/multiserver_sse.go:536
↓ 2 callers
Method
MatchesPath
MatchesPath checks if a path matches this filter
utils/multiserver_sse.go:531
↓ 2 callers
Function
NewSimpleOpenAPIParser
NewSimpleOpenAPIParser creates a new OpenAPI parser
utils/parser.go:91
↓ 2 callers
Function
ParseFilterDSL
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 callers
Method
Shutdown
Shutdown gracefully stops the SSE server, closing all active sessions and shutting down the HTTP server.
utils/multiserver_sse.go:183
↓ 2 callers
Method
ToPathFilters
ToPathFilters converts the FilterDSL to a slice of PathFilter objects
utils/multiserver_sse.go:667
↓ 2 callers
Function
sanitizeToolName
(name string)
utils/adapter.go:17
↓ 1 callers
Function
ApplyFilters
ApplyFilters applies the specified filters to the OpenAPI paths and methods
utils/multiserver_sse.go:683
↓ 1 callers
Function
Base64Decode
Base64Decode decodes a base64 string to bytes
utils/multiserver_sse.go:791
↓ 1 callers
Method
CompleteMessagePath
()
utils/multiserver_sse.go:505
↓ 1 callers
Method
CompleteSseEndpoint
()
utils/multiserver_sse.go:491
↓ 1 callers
Method
CompleteSsePath
()
utils/multiserver_sse.go:494
↓ 1 callers
Function
NewMCPFromCustomParser
NewMCPFromCustomParser creates an MCP server from our custom OpenAPIParser
utils/adapter.go:195
↓ 1 callers
Function
NewSSEServer
NewSSEServer creates a new SSE server instance with the given MCP server and options.
utils/multiserver_sse.go:155
↓ 1 callers
Function
NewToolHandler
(method string, url string, extraHeaders map[string]string)
utils/adapter.go:53
↓ 1 callers
Function
ParseOpenAPIFromJSON
ParseOpenAPIFromJSON parses an OpenAPI specification from JSON
utils/parser.go:402
↓ 1 callers
Function
ParseOpenAPIFromYAML
ParseOpenAPIFromYAML parses OpenAPI specification from YAML format
utils/parser.go:376
↓ 1 callers
Method
ServeHTTP
ServeHTTP implements the http.Handler interface.
utils/multiserver_sse.go:796
↓ 1 callers
Method
Servers
Info returns basic information about the API
utils/parser.go:15
↓ 1 callers
Function
ShouldIncludePath
ShouldIncludePath determines if a path and method should be included based on filters
utils/multiserver_sse.go:964
↓ 1 callers
Function
corsMiddleware
corsMiddleware adds CORS headers to allow requests from any origin
main.go:99
↓ 1 callers
Function
createErrorResponse
( id interface{}, code int, message string, )
utils/multiserver_sse.go:932
↓ 1 callers
Function
getHostFromURL
getHostFromURL extracts the host from a URL string
utils/multiserver_sse.go:1010
↓ 1 callers
Function
getSchemaURL
(schemaURL string)
utils/multiserver_sse.go:951
↓ 1 callers
Method
handleMessage
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 callers
Method
handleSSE
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 callers
Function
isHTTPMethod
(method string)
utils/parser.go:368
↓ 1 callers
Function
isYAML
isYAML checks if data looks like YAML
utils/multiserver_sse.go:915
↓ 1 callers
Function
matchGlob
matchGlob implements a simple glob pattern matching * matches any single path segment ** matches zero or more path segments
utils/multiserver_sse.go:552
↓ 1 callers
Function
matchGlobSegments
matchGlobSegments is a recursive helper for matchGlob
utils/multiserver_sse.go:565
↓ 1 callers
Method
parseRequestParams
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 callers
Function
runServer
(host string, port int)
main.go:51
Method
APIs
APIs returns information about all API endpoints
utils/parser.go:170
Method
APIs
APIs returns filtered APIs from the base parser
utils/multiserver_sse.go:909
Method
Info
Info returns basic information about the API
utils/parser.go:149
Method
Info
Info delegates to the base parser
utils/multiserver_sse.go:904
Method
Initialize
()
utils/multiserver_sse.go:47
Method
Initialized
()
utils/multiserver_sse.go:51
Method
NotificationChannel
()
utils/multiserver_sse.go:43
Method
SendEventToSession
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
Method
Servers
Servers returns the servers in the OpenAPI specification
utils/parser.go:121
Method
Servers
Servers delegates to the base parser
utils/multiserver_sse.go:899
Method
SessionID
()
utils/multiserver_sse.go:39
Method
Start
Start begins serving SSE connections on the specified address. It sets up HTTP handlers for SSE and message endpoints.
utils/multiserver_sse.go:172
Function
Test_ParseYamlToJson
(t *testing.T)
utils/parser_test.go:15
Function
WithBasePath
Add a new option for setting base path
utils/multiserver_sse.go:101
Function
WithBaseURL
WithBaseURL sets the base URL for the SSE server
utils/multiserver_sse.go:78
Function
WithDebugMode
WithDebugMode sets the debug mode for logging
utils/multiserver_sse.go:141
Function
WithHTTPServer
WithHTTPServer sets the HTTP server instance
utils/multiserver_sse.go:126
Function
WithLogPrefix
WithLogPrefix sets a custom prefix for log messages
utils/multiserver_sse.go:148
Function
WithMessageEndpoint
WithMessageEndpoint sets the message endpoint path
utils/multiserver_sse.go:112
Function
WithSSEContextFunc
WithContextFunc sets a function that will be called to customise the context to the server using the incoming request.
utils/multiserver_sse.go:134
Function
WithSSEEndpoint
WithSSEEndpoint sets the SSE endpoint path
utils/multiserver_sse.go:119
Function
createResponse
(id interface{}, result interface{})
utils/multiserver_sse.go:924
Function
main
()
main.go:17