Skip to content

Add logger to context for serverInit #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bwalding
Copy link

Makes the gomcp server logger available during server init (via the context) - this has a few advantages:

  1. The gomcp logger is now available for logging during the setup of the tool context
  2. We only need to do logger setup once in the server init
  3. Our logs are properly interleaved in the same log as the MCP server

Logger setup

In our case, the logger setup is configuring the logrus package (https://github.com/sirupsen/logrus) to send logs to the same place as the MCP server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant