Skip to content

[Bug]: Tool invocation for an MCP server authorized by OAUTH2 fails #949

@popagruia

Description

@popagruia

🐞 Bug Summary

Tool invocation for an MCP server authorized by OAUTH2 fails


🧩 Affected Component

Select the area of the project impacted:

  • [x ] mcpgateway - API
  • [x ] mcpgateway - UI (admin panel)
  • mcpgateway.wrapper - stdio wrapper
  • Federation or Transports
  • CLI, Makefiles, or shell scripts
  • Container setup (Docker/Podman/Compose)
  • Other (explain below)

🔁 Steps to Reproduce

  1. Add a server authorised by OAUT2 like https://api.githubcopilot.com/mcp/
  2. Authorize and fetch tools
  3. Invoke tool from tools of github
  4. the tool invocation panel displays Invalid method
    {
    "jsonrpc": "2.0",
    "error": {
    "code": -32000,
    "message": "Invalid method",
    "data": {
    "owner": "popagruia",
    "repo": "myrepo"
    }
    },
    "id": 1757412297064
    }

🤔 Expected Behavior

What should have happened instead?


📓 Logs / Error Output

Paste any relevant stack traces or logs here.
⚠️ Do not paste secrets, credentials, or tokens.


🧠 Environment Info

You can retrieve most of this from the /version endpoint.

Key Value
Version or commit 0.6.0
Runtime Python 3.11, Gunicorn
Platform / OS macOS
Container none

🧩 Additional Context (optional)

Add any configuration details, flags, or related issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageIssues / Features awaiting triage

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions