Skip to content

Commit 50f4681

Browse files
remove logrus and edit readme
1 parent 178bd07 commit 50f4681

File tree

4 files changed

+1
-10
lines changed

4 files changed

+1
-10
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,7 @@ MCP-Go provides a robust session management system that allows you to:
547547
- Register and track client sessions
548548
- Send notifications to specific clients
549549
- Provide per-session tool customization
550+
- Provide per-session prompt customization
550551

551552
<details>
552553
<summary>Show Session Management Examples</summary>

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@ require golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect
1414
require (
1515
github.com/davecgh/go-spew v1.1.1 // indirect
1616
github.com/pmezard/go-difflib v1.0.0 // indirect
17-
github.com/sirupsen/logrus v1.9.3
1817
gopkg.in/yaml.v3 v3.0.1 // indirect
1918
)

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
1515
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
1616
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
1717
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
18-
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
19-
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
2018
github.com/spf13/cast v1.7.1 h1:cuNEagBQEHWN1FnbGEjCXL2szYEXqfJPbP2HNUaca9Y=
2119
github.com/spf13/cast v1.7.1/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo=
2220
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=

server/server.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111
"sync"
1212

1313
"github.com/mark3labs/mcp-go/mcp"
14-
"github.com/sirupsen/logrus"
1514
)
1615

1716
// resourceEntry holds both a resource and its handler
@@ -896,17 +895,11 @@ func (s *MCPServer) handleGetPrompt(
896895
var handler PromptHandlerFunc
897896
var ok bool
898897

899-
logrus.Infof("[handleGetPrompt]: %s", request.Params.Name)
900-
901898
session := ClientSessionFromContext(ctx)
902899
if session != nil {
903-
logrus.Infof("[handleGetPrompt] session: %s", session.SessionID())
904900
if sessionWithPrompts, typeAssertOk := session.(SessionWithPrompts); typeAssertOk {
905-
logrus.Info("[handleGetPrompt] SessionWithPrompts: ok")
906901
if sessionPrompts := sessionWithPrompts.GetSessionPrompts(); sessionPrompts != nil {
907-
logrus.Info("[handleGetPrompt] GetSessionPrompts: ok")
908902
if serverPrompt, sessionOk := sessionPrompts[request.Params.Name]; sessionOk {
909-
logrus.Info("[handleGetPrompt] handler: ok")
910903
handler = serverPrompt.Handler
911904
ok = true
912905
}

0 commit comments

Comments
 (0)