Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chatmcp/mcprouter
/ functions
Functions
213 in github.com/chatmcp/mcprouter
⨍
Functions
213
◇
Types & classes
57
↓ 1 callers
Method
TableName
TableName returns the table name for the server log
model/serverlog.go:40
↓ 1 callers
Function
UnmarshalRequest
UnmarshalRequest unmarshals a JSON-RPC request.
service/jsonrpc/request.go:26
↓ 1 callers
Function
UpdateServer
(server *Server)
model/server.go:32
↓ 1 callers
Function
UpdateServerTools
UpdateServerTools create or update server tools
model/tool.go:96
↓ 1 callers
Method
Validate
Validate: valid request
service/api/validate.go:13
↓ 1 callers
Function
cleanupSession
cleanupSession handles DELETE requests for session cleanup
handler/proxy/mcp.go:349
↓ 1 callers
Function
createMCPClient
createMCPClient creates and configures a new MCP client
handler/proxy/messages.go:138
↓ 1 callers
Function
createSSEMiddleware
createSSEMiddleware will create a middleware for http request
service/proxy/context.go:21
↓ 1 callers
Function
createSession
createSession creates a new session for initialize requests
handler/proxy/mcp.go:134
↓ 1 callers
Function
dbPool
()
util/db.go:95
↓ 1 callers
Function
forwardRequest
forwardRequest handles MCP client operations and request forwarding
handler/proxy/mcp.go:188
↓ 1 callers
Function
getDBServerConfig
getDBServerConfig returns the config for the given key from the database
service/mcpserver/config.go:59
↓ 1 callers
Function
getRemoteServerConfig
getRemoteServerConfig returns the config for the given key from the remote API
service/mcpserver/config.go:85
↓ 1 callers
Function
handleCORS
handleCORS handles CORS preflight requests
handler/proxy/mcp.go:42
↓ 1 callers
Function
handleMessageResponse
handleMessageResponse processes response and finalizes message handling
handler/proxy/messages.go:163
↓ 1 callers
Function
handleSSE
handleSSE handles GET requests for establishing persistent SSE connections
handler/proxy/mcp.go:320
↓ 1 callers
Function
handleSSEMessages
handleSSEMessages manages SSE message lifecycle and communication
handler/proxy/sse.go:65
↓ 1 callers
Method
listen
listen for messages from the backend mcp server.
service/mcpclient/stdio.go:113
↓ 1 callers
Function
loadSession
loadSession validates and retrieves existing session data
handler/proxy/mcp.go:167
↓ 1 callers
Function
monitorSession
monitorSession monitors session and request lifecycle
handler/proxy/sse.go:96
↓ 1 callers
Function
parseMessageRequest
parseMessageRequest validates context and parses message request
handler/proxy/messages.go:39
↓ 1 callers
Function
parseRequest
parseRequest validates the request and parses JSON-RPC
handler/proxy/mcp.go:86
↓ 1 callers
Function
parseSSERequest
parseSSERequest validates request parameters and gets server config
handler/proxy/sse.go:37
↓ 1 callers
Function
processInitResponse
processInitResponse processes initialize method responses
handler/proxy/mcp.go:225
↓ 1 callers
Function
processInitializeParams
processInitializeParams handles initialize method parameters
handler/proxy/messages.go:93
↓ 1 callers
Function
processInitializeResponse
processInitializeResponse handles initialize method response
handler/proxy/messages.go:193
↓ 1 callers
Function
processMessageWithClient
processMessageWithClient handles MCP client operations and message forwarding
handler/proxy/messages.go:114
↓ 1 callers
Function
processRequest
processRequest handles POST requests for MCP communication
handler/proxy/mcp.go:52
↓ 1 callers
Function
sendResponse
sendResponse finalizes processing and sends the response
handler/proxy/mcp.go:256
↓ 1 callers
Function
setupMessageSession
setupMessageSession configures session and proxy info for message processing
handler/proxy/messages.go:68
↓ 1 callers
Function
setupSSEConnection
setupSSEConnection creates SSE writer, session and proxy info
handler/proxy/sse.go:43
↓ 1 callers
Function
setupSession
setupSession creates proxy info and manages session
handler/proxy/mcp.go:103
↓ 1 callers
Function
startAPIServer
startAPIServer starts the api server
cmd/api.go:15
↓ 1 callers
Function
startProxyServer
startProxyServer starts the sse server
cmd/proxy.go:15
↓ 1 callers
Function
writeResponse
writeResponse determines and sends the appropriate response format
handler/proxy/mcp.go:289
Function
APIRoute
APIRoute will create the routes for the http server
router/api.go:12
Function
AddServer
(c echo.Context)
handler/api/beta/add-server.go:21
Function
CallTool
(c echo.Context)
handler/api/v1/call-tool.go:21
Method
CallTool
CallTool calls a tool with the given name and arguments.
service/mcpclient/rest.go:285
Method
CallTool
CallTool calls a tool with the given name and arguments.
service/mcpclient/stdio.go:411
Method
Client
Client returns the client of the session
service/proxy/session.go:63
Method
ClientInfo
ClientInfo returns the client info
service/api/context.go:72
Method
Close
Close closes the session
service/proxy/session.go:85
Method
Close
Close client
service/mcpclient/rest.go:57
Function
CloseAllConnections
CloseAllConnections closes all Redis connections
util/redis.go:176
Function
CreateTool
(tool *Tool)
model/tool.go:27
Function
CreateUser
(user *User)
model/user.go:28
Method
Error
Error returns the error message
service/mcpclient/rest.go:47
Method
Error
Error returns the error message from stderr
service/mcpclient/stdio.go:172
Method
Error
Error returns the string representation of the error.
service/jsonrpc/error.go:13
Function
FindProjectByUUID
FindProjectByUUID finds a project by its UUID
model/project.go:48
Function
FindServerkeyByServerKey
FindServerkeyByServerKey finds a serverkey by its server key
model/serverkey.go:31
Function
FindTool
(name, serverKey string)
model/tool.go:39
Function
FindToolByUUID
(uuid string)
model/tool.go:49
Function
GetDB
GetDB gets the database connection
util/db.go:91
Function
GetHostedServers
(page int, limit int)
service/mcpserver/server.go:16
Function
GetProjects
()
model/project.go:62
Function
GetRedisClient
For backward compatibility
util/redis.go:146
Function
GetRedisClusterClient
For backward compatibility
util/redis.go:161
Function
GetServer
(c echo.Context)
handler/api/beta/get-server.go:17
Function
GetServer
(c echo.Context)
handler/api/v1/get-server.go:14
Function
GetServerCommand
GetServerCommand returns the command for the given key
service/mcpserver/command.go:4
Function
GetServerToolsWithContext
GetServerToolsWithContext get server tools with context
model/tool.go:68
Function
GetServers
(c echo.Context)
handler/api/beta/get-servers.go:14
Function
GetTools
(page int, limit int)
model/tool.go:77
Function
GetUser
(c echo.Context)
handler/api/beta/get-user.go:14
Method
Initialize
Initialize initializes the client.
service/mcpclient/rest.go:231
Method
Initialize
Initialize initializes the client.
service/mcpclient/stdio.go:357
Method
JSONRPCStreamComplete
JSONRPCStreamComplete sends a completion event and closes the stream
service/proxy/context.go:159
Function
ListServers
(c echo.Context)
handler/api/v1/list-servers.go:14
Function
ListTools
ListTools is a handler for the list tools endpoint
handler/api/v1/list-tools.go:16
Method
ListTools
ListTools lists the tools available in the MCP server.
service/mcpclient/rest.go:264
Method
ListTools
ListTools lists the tools available in the MCP server.
service/mcpclient/stdio.go:390
Function
MCP
MCP is the main handler for the MCP endpoint
handler/proxy/mcp.go:21
Function
Messages
Messages is a handler for the messages endpoint
handler/proxy/messages.go:15
Function
NewNotification
NewNotification creates a new JSON-RPC notification.
service/jsonrpc/notification.go:12
Function
NewResultResponse
NewResultResponse creates a new result response.
service/jsonrpc/response.go:30
Method
NotificationsInitialized
NotificationsInitialized sends the initialized notification to the server.
service/mcpclient/rest.go:252
Method
NotificationsInitialized
NotificationsInitialized sends the initialized notification to the server.
service/mcpclient/stdio.go:378
Method
OnNotification
OnNotification adds a notification handler
service/mcpclient/rest.go:75
Method
OnNotification
OnNotification adds a notification handler
service/mcpclient/stdio.go:230
Method
ProxyInfo
ProxyInfo returns the proxy info of the session
service/proxy/session.go:38
Function
ProxyRoute
ProxyRoute will create the routes for the http server
router/proxy.go:9
Method
RespErrMsg
(message string)
service/api/context.go:161
Method
RespJSON
(code int, message string, data interface{})
service/api/context.go:204
Method
RespNoAuth
()
service/api/context.go:182
Method
RespOK
()
service/api/context.go:168
Method
RespOKMsg
(message string)
service/api/context.go:175
Function
SSE
SSE is a handler for the sse endpoint
handler/proxy/sse.go:13
Function
SaveUser
(c echo.Context)
handler/api/beta/save-user.go:19
Method
SendData
SendData will send the data to the client
service/proxy/writer.go:48
Method
SendHeartbeat
SendHeartbeat will send the message to the client
service/proxy/writer.go:64
Method
SendMessage
SendMessage sends a message to the session
service/proxy/session.go:73
Method
SendMessage
SendMessage will send the message to the client
service/proxy/writer.go:59
Method
ServerCommand
ServerCommand returns the server command
service/api/context.go:82
Method
ServerConfig
ServerConfig returns the server config of the session
service/proxy/session.go:33
Method
ServerURL
ServerURL returns the server url
service/api/context.go:87
Method
SetClient
SetClient sets the client of the session
service/proxy/session.go:58
Method
SetProxyInfo
SetProxyInfo sets the proxy info of the session
service/proxy/session.go:53
Method
TableName
()
model/server.go:24
← previous
next →
101–200 of 213, ranked by callers