MCPcopy Create free account

hub / github.com/chatmcp/mcprouter / functions

Functions213 in github.com/chatmcp/mcprouter

↓ 30 callersMethodGet
(ctx context.Context, key string)
util/redis.go:27
↓ 27 callersMethodRespErr
(err error)
service/api/context.go:154
↓ 23 callersFunctiondb
()
model/base.go:9
↓ 21 callersMethodString
String returns the string representation of the response.
service/jsonrpc/response.go:13
↓ 14 callersMethodJSONRPCError
JSONRPCError returns a JSON-RPC error response
service/proxy/context.go:104
↓ 13 callersMethodSet
(ctx context.Context, key string, value interface{}, expiration time.Duration)
util/redis.go:26
↓ 12 callersFunctionGetAPIContext
GetAPIContext returns the APIContext from the echo.Context
service/api/context.go:38
↓ 10 callersMethodClose
()
util/redis.go:30
↓ 10 callersMethodRespData
(data interface{})
service/api/context.go:196
↓ 10 callersMethodSendEventData
SendEventData will send the event data to the client
service/proxy/writer.go:37
↓ 10 callersMethodValid
Valid: valid request params
service/api/context.go:47
↓ 8 callersMethodClose
()
service/mcpclient/client.go:15
↓ 8 callersFunctionNewRequest
NewRequest creates a new JSON-RPC request.
service/jsonrpc/request.go:14
↓ 6 callersFunctionNewError
NewError creates a new JSON-RPC error.
service/jsonrpc/error.go:18
↓ 6 callersMethodUnmarshalResult
UnmarshalResult unmarshals the result into a given value.
service/jsonrpc/response.go:20
↓ 5 callersMethodDone
Done returns the done channel of the session
service/proxy/session.go:98
↓ 5 callersMethodRespNoAuthMsg
(message string)
service/api/context.go:189
↓ 4 callersMethodClose
Close client
service/mcpclient/stdio.go:182
↓ 4 callersMethodError
()
service/mcpclient/client.go:14
↓ 4 callersMethodForwardMessage
ForwardMessage forwards a JSON-RPC message to the MCP server and returns the response
service/mcpclient/rest.go:202
↓ 4 callersMethodForwardMessage
ForwardMessage forwards a JSON-RPC message to the MCP server and returns the response
service/mcpclient/stdio.go:327
↓ 4 callersFunctionGetServerConfig
GetServerConfig returns the config for the given key
service/mcpserver/config.go:32
↓ 4 callersMethodProxyInfo
ProxyInfo returns the proxy info
service/api/context.go:63
↓ 3 callersMethodConnect
Connect connects to the mcp server
service/api/context.go:92
↓ 3 callersMethodDeleteClient
DeleteClient deletes the client from the clients store
service/proxy/context.go:78
↓ 3 callersFunctionGenUUID
()
util/hash.go:15
↓ 3 callersFunctionGetRedisHandler
GetRedisHandler returns a Redis handler
util/redis.go:133
↓ 3 callersMethodJSONRPCResponse
JSONRPCResponse returns a JSON-RPC response
service/proxy/context.go:111
↓ 3 callersFunctionNewClient
NewClient creates a new client
service/mcpclient/client.go:26
↓ 3 callersFunctionNewSSEWriter
NewSSEWriter will create SSE writer from request context
service/proxy/writer.go:18
↓ 3 callersMethodSendMessage
(message []byte)
service/mcpclient/client.go:17
↓ 3 callersMethodServerConfig
ServerConfig returns the server config
service/api/context.go:77
↓ 3 callersMethodSetProxyInfo
(proxyInfo *proxy.ProxyInfo)
service/api/context.go:67
↓ 3 callersFunctiongetRedisContext
()
service/proxy/cache.go:28
↓ 3 callersFunctiongetRedisHandler
获取Redis操作接口
service/proxy/cache.go:19
↓ 3 callersFunctionvalidateSSEContext
validateSSEContext validates and returns SSE context
handler/proxy/common.go:52
↓ 2 callersMethodCommand
Command returns the command of the session
service/proxy/session.go:48
↓ 2 callersFunctionCreateServerLog
CreateServerLog creates a new server log
model/serverlog.go:45
↓ 2 callersMethodDeleteSession
DeleteSession deletes the session from the sessions store
service/proxy/context.go:59
↓ 2 callersFunctionFindServer
(name, authorName string)
model/server.go:40
↓ 2 callersMethodForwardMessage
(request *jsonrpc.Request)
service/mcpclient/client.go:18
↓ 2 callersFunctionGetClient
GetClient gets the database connection
util/db.go:81
↓ 2 callersMethodGetClient
GetClient returns the client from the clients store
service/proxy/context.go:69
↓ 2 callersMethodGetJSONRPCRequest
GetJSONRPCRequest returns the JSON-RPC request from the request body
service/proxy/context.go:87
↓ 2 callersFunctionGetServerTools
(serverKey string)
model/tool.go:58
↓ 2 callersFunctionGetServers
(page int, limit int)
model/server.go:68
↓ 2 callersMethodGetSessionID
GetSessionID returns the session ID for the proxy info
service/proxy/proxy.go:43
↓ 2 callersFunctionInit
()
cmd/root.go:32
↓ 2 callersMethodJSONRPCAcceptResponse
JSONRPCAcceptResponse returns a JSON-RPC accept response
service/proxy/context.go:116
↓ 2 callersMethodListTools
()
service/mcpclient/client.go:21
↓ 2 callersFunctionMD5
MD5 returns the MD5 hash of the given string
util/hash.go:11
↓ 2 callersMethodOnNotification
(handler func(message []byte))
service/mcpclient/client.go:16
↓ 2 callersMethodPing
(ctx context.Context)
util/redis.go:29
↓ 2 callersMethodStart
Start will start the http server
service/api/server.go:32
↓ 2 callersMethodStoreClient
StoreClient stores the client in the clients store
service/proxy/context.go:64
↓ 2 callersFunctionStoreProxyInfo
StoreProxyInfo stores the proxy info to redis
service/proxy/cache.go:33
↓ 2 callersMethodStoreSession
StoreSession stores the session in the sessions store
service/proxy/context.go:54
↓ 2 callersMethodToServerLog
ToServerLog converts a ProxyInfo to a ServerLog
service/proxy/proxy.go:48
↓ 2 callersFunctioncreateProxyInfo
createProxyInfo creates basic ProxyInfo structure with server config
handler/proxy/common.go:61
↓ 2 callersFunctionvalidateKeyAndConfig
validateKeyAndConfig validates key parameter and retrieves server configuration
handler/proxy/common.go:35
↓ 1 callersMethodCallTool
(params *jsonrpc.CallToolParams)
service/mcpclient/client.go:22
↓ 1 callersMethodCloseClient
()
service/proxy/session.go:90
↓ 1 callersFunctionCreateAPIBetaMiddleware
()
service/api/middleware.go:24
↓ 1 callersFunctionCreateAPIMiddleware
()
service/api/middleware.go:12
↓ 1 callersFunctionCreateAPIV1Middleware
()
service/api/middleware.go:54
↓ 1 callersFunctionCreateServer
(server *Server)
model/server.go:28
↓ 1 callersMethodDel
(ctx context.Context, keys ...string)
util/redis.go:28
↓ 1 callersFunctionDeleteProxyInfo
DeleteProxyInfo deletes the proxy info from redis
service/proxy/cache.go:79
↓ 1 callersFunctionExecute
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the r
cmd/root.go:25
↓ 1 callersFunctionFindServerByKey
(serverKey string)
model/server.go:59
↓ 1 callersFunctionFindServerByUUID
(uuid string)
model/server.go:50
↓ 1 callersFunctionFindUserByEmail
(email string)
model/user.go:65
↓ 1 callersFunctionFindUserByUUID
(uuid string)
model/user.go:74
↓ 1 callersFunctionGetProjectsWithFilters
GetProjectsWithFilters gets projects with various filters
model/project.go:90
↓ 1 callersFunctionGetProxyInfo
GetProxyInfo gets the proxy info from redis
service/proxy/cache.go:54
↓ 1 callersFunctionGetSSEContext
GetSSEContext returns the SSEContext from the echo.Context
service/proxy/context.go:36
↓ 1 callersMethodGetSession
GetSession returns the session from the sessions store
service/proxy/context.go:45
↓ 1 callersFunctionInitConfigWithFile
InitConfigWithFile will read config from file
util/config.go:11
↓ 1 callersFunctionInitDBWithName
InitDBWithName initializes the database connection
util/db.go:31
↓ 1 callersFunctionInitRedisWithName
InitRedisWithName initializes the redis connection
util/redis.go:55
↓ 1 callersMethodInitialize
(params *jsonrpc.InitializeParams)
service/mcpclient/client.go:19
↓ 1 callersMethodJSONRPCStreamResponse
JSONRPCStreamResponse returns a JSON-RPC response in SSE format for streaming
service/proxy/context.go:121
↓ 1 callersMethodJSONRPCStreamStart
JSONRPCStreamStart initiates a streaming response and returns the writer for continued streaming
service/proxy/context.go:143
↓ 1 callersMethodKey
Key returns the key of the session
service/proxy/session.go:43
↓ 1 callersMethodMessages
Messages returns the messages channel of the session
service/proxy/session.go:68
↓ 1 callersFunctionNewAPIServer
NewAPIServer will create API server
service/api/server.go:16
↓ 1 callersFunctionNewErrorResponse
NewErrorResponse creates a new error response.
service/jsonrpc/response.go:41
↓ 1 callersFunctionNewRestClient
NewRestClient creates a new RestClient.
service/mcpclient/rest.go:32
↓ 1 callersFunctionNewSSEServer
NewSSEServer will create SSE server
service/proxy/server.go:18
↓ 1 callersFunctionNewSSESession
NewSSESession will create a new SSE session
service/proxy/session.go:21
↓ 1 callersFunctionNewStdioClient
NewStdioClient creates a new StdioClient.
service/mcpclient/stdio.go:35
↓ 1 callersFunctionNewValidator
NewValidator: new validator
service/api/validate.go:23
↓ 1 callersMethodNotificationsInitialized
()
service/mcpclient/client.go:20
↓ 1 callersMethodRoute
Route will create the routes for http server
service/proxy/server.go:27
↓ 1 callersMethodRoute
Route will create the routes for http server
service/api/server.go:23
↓ 1 callersFunctionSaveServerTools
(serverKey string, tools []*jsonrpc.Tool)
service/tools.go:12
↓ 1 callersFunctionSaveUser
SaveUser saves the user information using email as the unique key. If a user with the given email exists, it updates the record; otherwise, it creates
model/user.go:35
↓ 1 callersMethodSendMessage
SendMessage sends a JSON-RPC message to the MCP server and returns the response
service/mcpclient/rest.go:82
↓ 1 callersMethodSendMessage
SendMessage sends a JSON-RPC message to the MCP server and returns the response
service/mcpclient/stdio.go:237
↓ 1 callersMethodStart
Start will start the http server
service/proxy/server.go:33
next →1–100 of 213, ranked by callers