Skip to content
Discussion options

You must be logged in to vote

hello @BittuChan, I've tried custom MCP servers with Onyx recently so here are my suggestions:

  1. Token Refresh
  • For OAuth flows with expiring tokens, the cleanest approach I've found is implementing a lightweight proxy service that sits between Onyx and your API. The proxy handles token refresh automatically and Onyx just authenticates once to the proxy with a long-lived credential. We built ours in Node.js (about 100 lines) and it's been rock solid.
  • Alternatively, if your MCP server implementation supports it, you can handle refresh logic in the server itself before forwarding requests. This keeps everything in one place but requires your MCP server to be stateful.
  1. Shared vs Per-User Auth

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Shiven0504
Comment options

@BittuChan
Comment options

Answer selected by BittuChan
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants