Skip to content

Commit 0e24d31

Browse files
add log
1 parent 3302f37 commit 0e24d31

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/server.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,13 +896,17 @@ func (s *MCPServer) handleGetPrompt(
896896
var handler PromptHandlerFunc
897897
var ok bool
898898

899-
logrus.Infof("handleGetPrompt: %s", request.Params.Name)
899+
logrus.Infof("[handleGetPrompt]: %s", request.Params.Name)
900900

901901
session := ClientSessionFromContext(ctx)
902902
if session != nil {
903+
logrus.Infof("[handleGetPrompt] session: %s", session.SessionID())
903904
if sessionWithPrompts, typeAssertOk := session.(SessionWithPrompts); typeAssertOk {
905+
logrus.Info("[handleGetPrompt] SessionWithPrompts: ok")
904906
if sessionPrompts := sessionWithPrompts.GetSessionPrompts(); sessionPrompts != nil {
907+
logrus.Info("[handleGetPrompt] GetSessionPrompts: ok")
905908
if serverPrompt, sessionOk := sessionPrompts[request.Params.Name]; sessionOk {
909+
logrus.Info("[handleGetPrompt] handler: ok")
906910
handler = serverPrompt.Handler
907911
ok = true
908912
}

0 commit comments

Comments
 (0)