Skip to content

[BUG][AUTH]: MCP gateway ping fails - refresh token not implemented #1023

@popagruia

Description

@popagruia

🐞 Bug Summary

Briefly describe the issue or unexpected behavior.
w ping because the refresh token is not yet implemented..

🧩 Affected Component

Select the area of the project impacted:

  • mcpgateway - API
  • 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. I add an OAUTH2 authenticated server https://api.githubcopilot.com/mcp/.
  2. I can "authorise" and fetch tools
  3. After 24h Server is shown as "offline

🤔 Expected Behavior

Seems that _refresh_access_token needs to be implemented


📓 Logs / Error Output

2025-09-16 14:05:02,116 - mcpgateway.services.token_storage_service - INFO - OAuth token expired for gateway 0cceff485d5145a493911c846fa2b9b0
2025-09-16 14:05:02,117 - mcpgateway.services.token_storage_service - INFO - Token refresh not yet implemented for gateway 0cceff485d5145a493911c846fa2b9b0

🧠 Environment Info

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

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

🧩 Additional Context (optional)

Add any configuration details, flags, or related issues.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingsecurityImproves security

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions