fix: added `reason` argument to `get_me` function by toby · Pull Request #8 · github/github-mcp-server · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

fix: added reason argument to get_me function #8

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

Merged
merged 1 commit into from
Mar 14, 2025
Merged

fix: added reason argument to get_me function #8

merged 1 commit into from
Mar 14, 2025

Conversation

toby
Copy link
Member

@toby toby commented Mar 13, 2025

The mark3labs/mcp-go library has a bug where it will error when there are no arguments specified for a tool. This adds a reason argument, which works around that bug but is also somewhat helpful for debugging and potentially even returns better results because the LLM can see why it decided to call the tool.

@Copilot Copilot AI review requested due to automatic review settings March 13, 2025 22:46
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request addresses a bug in the mark3labs/mcp-go library by adding a new "reason" argument to the get_me tool to avoid errors when no arguments are supplied and to provide additional context for debugging.

  • Added a "reason" argument with an accompanying description in the tool configuration.
  • Updated the tool initialization in pkg/github/server.go to include the new argument.

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more

@toby toby merged commit 62b20f7 into main Mar 14, 2025
3 checks passed
@toby toby deleted the no-args-fix branch March 14, 2025 16:19
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.

2 participants

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.