Skip to content

Wrong username in Github API calls, those fails #134

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

Closed
MiguelElGallo opened this issue Apr 6, 2025 · 4 comments
Closed

Wrong username in Github API calls, those fails #134

MiguelElGallo opened this issue Apr 6, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@MiguelElGallo
Copy link

MiguelElGallo commented Apr 6, 2025

Describe the bug

  • Using get_me it identifies my correct Github user name lets call it correctuser.
  • Any call to something that used the username, for example:
    Calling to: create_branch fails with:
    MPC -32603: failed to get repository: GET [https://api.github.com/repos/**wronguser**/iparq](vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-sandbox/workbench/workbench.html): 404 Not Found []

Is worth noting that the call is using wronguser in the URL that is why it is failing, the user that puts there is just my login to my Mac OS, NOT my Github username

Affected version

server version v0.1.0 (b893367) 2025-04-04T15:38:21Z

Steps to reproduce the behavior

  1. Use MacOS
  2. Try to call to create_branch
  3. See error

Expected vs actual behavior

It should call the api with:
GET [https://api.github.com/repos/correctuser/iparq]

Logs

MPC -32603: failed to get repository: GET https://api.github.com/repos/wronguser/iparq: 404 Not Found []

As you can see instead of correctuser, is setting a username that is not my github username but the login to my operating systems

@MiguelElGallo MiguelElGallo added the bug Something isn't working label Apr 6, 2025
@AlexanderYastrebov
Copy link
Contributor

#110 seems related as there MCP also used wrong owner name.

@barshopen
Copy link

I'm getting the same error when attempting to search or create issues.
I confirmed that the token I'm using has access to do these operations by creating and searching for issues with curl with the same token.

@SamMorrowDrums
Copy link
Collaborator

We can't entirely be responsible for the choices made by the LLM here, especially as this can be called by any of them. My experience is that some models do better than others for this, and that you can try to use the translations feature to change the description of get_me to validate if a change to that improves behaviour.

Please let me know. Also note the software and ideally model version you are using. Some are better than others at this, and more can be with great tool descriptions and field descriptions.

I'm not sure what it would take to get this issue closed? I'm assuming you can correct the behaviour with more prompting by yourself until it does the correct thing.

Let me know but I'd be tempted to close the issue out as it's not a bug. The MCP server works just fine. The LLM controlling it on the other hand is not working just fine. The only part in our control is guiding it with better descriptions.

@SamMorrowDrums
Copy link
Collaborator

I am going to close this out, as it's largely out of our control. Get Me fixes many of these scenarios, but depending on the model you might need to be more explicit sometimes to get it to do the right thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants