MCPcopy Create free account

hub / github.com/chatmcp/mcprouter / functions

Functions213 in github.com/chatmcp/mcprouter

↓ 1 callersMethodTableName
TableName returns the table name for the server log
model/serverlog.go:40
↓ 1 callersFunctionUnmarshalRequest
UnmarshalRequest unmarshals a JSON-RPC request.
service/jsonrpc/request.go:26
↓ 1 callersFunctionUpdateServer
(server *Server)
model/server.go:32
↓ 1 callersFunctionUpdateServerTools
UpdateServerTools create or update server tools
model/tool.go:96
↓ 1 callersMethodValidate
Validate: valid request
service/api/validate.go:13
↓ 1 callersFunctioncleanupSession
cleanupSession handles DELETE requests for session cleanup
handler/proxy/mcp.go:349
↓ 1 callersFunctioncreateMCPClient
createMCPClient creates and configures a new MCP client
handler/proxy/messages.go:138
↓ 1 callersFunctioncreateSSEMiddleware
createSSEMiddleware will create a middleware for http request
service/proxy/context.go:21
↓ 1 callersFunctioncreateSession
createSession creates a new session for initialize requests
handler/proxy/mcp.go:134
↓ 1 callersFunctiondbPool
()
util/db.go:95
↓ 1 callersFunctionforwardRequest
forwardRequest handles MCP client operations and request forwarding
handler/proxy/mcp.go:188
↓ 1 callersFunctiongetDBServerConfig
getDBServerConfig returns the config for the given key from the database
service/mcpserver/config.go:59
↓ 1 callersFunctiongetRemoteServerConfig
getRemoteServerConfig returns the config for the given key from the remote API
service/mcpserver/config.go:85
↓ 1 callersFunctionhandleCORS
handleCORS handles CORS preflight requests
handler/proxy/mcp.go:42
↓ 1 callersFunctionhandleMessageResponse
handleMessageResponse processes response and finalizes message handling
handler/proxy/messages.go:163
↓ 1 callersFunctionhandleSSE
handleSSE handles GET requests for establishing persistent SSE connections
handler/proxy/mcp.go:320
↓ 1 callersFunctionhandleSSEMessages
handleSSEMessages manages SSE message lifecycle and communication
handler/proxy/sse.go:65
↓ 1 callersMethodlisten
listen for messages from the backend mcp server.
service/mcpclient/stdio.go:113
↓ 1 callersFunctionloadSession
loadSession validates and retrieves existing session data
handler/proxy/mcp.go:167
↓ 1 callersFunctionmonitorSession
monitorSession monitors session and request lifecycle
handler/proxy/sse.go:96
↓ 1 callersFunctionparseMessageRequest
parseMessageRequest validates context and parses message request
handler/proxy/messages.go:39
↓ 1 callersFunctionparseRequest
parseRequest validates the request and parses JSON-RPC
handler/proxy/mcp.go:86
↓ 1 callersFunctionparseSSERequest
parseSSERequest validates request parameters and gets server config
handler/proxy/sse.go:37
↓ 1 callersFunctionprocessInitResponse
processInitResponse processes initialize method responses
handler/proxy/mcp.go:225
↓ 1 callersFunctionprocessInitializeParams
processInitializeParams handles initialize method parameters
handler/proxy/messages.go:93
↓ 1 callersFunctionprocessInitializeResponse
processInitializeResponse handles initialize method response
handler/proxy/messages.go:193
↓ 1 callersFunctionprocessMessageWithClient
processMessageWithClient handles MCP client operations and message forwarding
handler/proxy/messages.go:114
↓ 1 callersFunctionprocessRequest
processRequest handles POST requests for MCP communication
handler/proxy/mcp.go:52
↓ 1 callersFunctionsendResponse
sendResponse finalizes processing and sends the response
handler/proxy/mcp.go:256
↓ 1 callersFunctionsetupMessageSession
setupMessageSession configures session and proxy info for message processing
handler/proxy/messages.go:68
↓ 1 callersFunctionsetupSSEConnection
setupSSEConnection creates SSE writer, session and proxy info
handler/proxy/sse.go:43
↓ 1 callersFunctionsetupSession
setupSession creates proxy info and manages session
handler/proxy/mcp.go:103
↓ 1 callersFunctionstartAPIServer
startAPIServer starts the api server
cmd/api.go:15
↓ 1 callersFunctionstartProxyServer
startProxyServer starts the sse server
cmd/proxy.go:15
↓ 1 callersFunctionwriteResponse
writeResponse determines and sends the appropriate response format
handler/proxy/mcp.go:289
FunctionAPIRoute
APIRoute will create the routes for the http server
router/api.go:12
FunctionAddServer
(c echo.Context)
handler/api/beta/add-server.go:21
FunctionCallTool
(c echo.Context)
handler/api/v1/call-tool.go:21
MethodCallTool
CallTool calls a tool with the given name and arguments.
service/mcpclient/rest.go:285
MethodCallTool
CallTool calls a tool with the given name and arguments.
service/mcpclient/stdio.go:411
MethodClient
Client returns the client of the session
service/proxy/session.go:63
MethodClientInfo
ClientInfo returns the client info
service/api/context.go:72
MethodClose
Close closes the session
service/proxy/session.go:85
MethodClose
Close client
service/mcpclient/rest.go:57
FunctionCloseAllConnections
CloseAllConnections closes all Redis connections
util/redis.go:176
FunctionCreateTool
(tool *Tool)
model/tool.go:27
FunctionCreateUser
(user *User)
model/user.go:28
MethodError
Error returns the error message
service/mcpclient/rest.go:47
MethodError
Error returns the error message from stderr
service/mcpclient/stdio.go:172
MethodError
Error returns the string representation of the error.
service/jsonrpc/error.go:13
FunctionFindProjectByUUID
FindProjectByUUID finds a project by its UUID
model/project.go:48
FunctionFindServerkeyByServerKey
FindServerkeyByServerKey finds a serverkey by its server key
model/serverkey.go:31
FunctionFindTool
(name, serverKey string)
model/tool.go:39
FunctionFindToolByUUID
(uuid string)
model/tool.go:49
FunctionGetDB
GetDB gets the database connection
util/db.go:91
FunctionGetHostedServers
(page int, limit int)
service/mcpserver/server.go:16
FunctionGetProjects
()
model/project.go:62
FunctionGetRedisClient
For backward compatibility
util/redis.go:146
FunctionGetRedisClusterClient
For backward compatibility
util/redis.go:161
FunctionGetServer
(c echo.Context)
handler/api/beta/get-server.go:17
FunctionGetServer
(c echo.Context)
handler/api/v1/get-server.go:14
FunctionGetServerCommand
GetServerCommand returns the command for the given key
service/mcpserver/command.go:4
FunctionGetServerToolsWithContext
GetServerToolsWithContext get server tools with context
model/tool.go:68
FunctionGetServers
(c echo.Context)
handler/api/beta/get-servers.go:14
FunctionGetTools
(page int, limit int)
model/tool.go:77
FunctionGetUser
(c echo.Context)
handler/api/beta/get-user.go:14
MethodInitialize
Initialize initializes the client.
service/mcpclient/rest.go:231
MethodInitialize
Initialize initializes the client.
service/mcpclient/stdio.go:357
MethodJSONRPCStreamComplete
JSONRPCStreamComplete sends a completion event and closes the stream
service/proxy/context.go:159
FunctionListServers
(c echo.Context)
handler/api/v1/list-servers.go:14
FunctionListTools
ListTools is a handler for the list tools endpoint
handler/api/v1/list-tools.go:16
MethodListTools
ListTools lists the tools available in the MCP server.
service/mcpclient/rest.go:264
MethodListTools
ListTools lists the tools available in the MCP server.
service/mcpclient/stdio.go:390
FunctionMCP
MCP is the main handler for the MCP endpoint
handler/proxy/mcp.go:21
FunctionMessages
Messages is a handler for the messages endpoint
handler/proxy/messages.go:15
FunctionNewNotification
NewNotification creates a new JSON-RPC notification.
service/jsonrpc/notification.go:12
FunctionNewResultResponse
NewResultResponse creates a new result response.
service/jsonrpc/response.go:30
MethodNotificationsInitialized
NotificationsInitialized sends the initialized notification to the server.
service/mcpclient/rest.go:252
MethodNotificationsInitialized
NotificationsInitialized sends the initialized notification to the server.
service/mcpclient/stdio.go:378
MethodOnNotification
OnNotification adds a notification handler
service/mcpclient/rest.go:75
MethodOnNotification
OnNotification adds a notification handler
service/mcpclient/stdio.go:230
MethodProxyInfo
ProxyInfo returns the proxy info of the session
service/proxy/session.go:38
FunctionProxyRoute
ProxyRoute will create the routes for the http server
router/proxy.go:9
MethodRespErrMsg
(message string)
service/api/context.go:161
MethodRespJSON
(code int, message string, data interface{})
service/api/context.go:204
MethodRespNoAuth
()
service/api/context.go:182
MethodRespOK
()
service/api/context.go:168
MethodRespOKMsg
(message string)
service/api/context.go:175
FunctionSSE
SSE is a handler for the sse endpoint
handler/proxy/sse.go:13
FunctionSaveUser
(c echo.Context)
handler/api/beta/save-user.go:19
MethodSendData
SendData will send the data to the client
service/proxy/writer.go:48
MethodSendHeartbeat
SendHeartbeat will send the message to the client
service/proxy/writer.go:64
MethodSendMessage
SendMessage sends a message to the session
service/proxy/session.go:73
MethodSendMessage
SendMessage will send the message to the client
service/proxy/writer.go:59
MethodServerCommand
ServerCommand returns the server command
service/api/context.go:82
MethodServerConfig
ServerConfig returns the server config of the session
service/proxy/session.go:33
MethodServerURL
ServerURL returns the server url
service/api/context.go:87
MethodSetClient
SetClient sets the client of the session
service/proxy/session.go:58
MethodSetProxyInfo
SetProxyInfo sets the proxy info of the session
service/proxy/session.go:53
MethodTableName
()
model/server.go:24
← previousnext →101–200 of 213, ranked by callers