Skip to content

feat(mcp): support custom base URLs via environment variables#5609

Open
bobey wants to merge 2 commits intoHelicone:mainfrom
bobey:feat/mcp-eu-base-url-support
Open

feat(mcp): support custom base URLs via environment variables#5609
bobey wants to merge 2 commits intoHelicone:mainfrom
bobey:feat/mcp-eu-base-url-support

Conversation

@bobey
Copy link

@bobey bobey commented Feb 27, 2026

Summary

  • Add support for HELICONE_BASE_URL environment variable to configure the Helicone API endpoint (defaults to https://api.helicone.ai)
  • Add support for HELICONE_AI_GATEWAY_BASE_URL environment variable to configure the AI Gateway endpoint (defaults to https://ai-gateway.helicone.ai)
  • Update README with EU configuration example and environment variables reference table

Currently the API base URL is hardcoded to https://api.helicone.ai, which makes the MCP server unusable for EU customers whose data and API keys live on https://eu.api.helicone.ai.

The MCP server hardcodes `api.helicone.ai` as the API base URL, which
makes it unusable for EU customers whose data lives on `eu.api.helicone.ai`.

Add support for `HELICONE_BASE_URL` and `HELICONE_AI_GATEWAY_BASE_URL`
environment variables so users can point the MCP server at the correct
regional endpoint.
@vercel
Copy link

vercel bot commented Feb 27, 2026

@bobey is attempting to deploy a commit to the Helicone Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

Add vitest with 4 tests covering:
- default US API base URL when HELICONE_BASE_URL is not set
- custom base URL from HELICONE_BASE_URL env var
- custom gateway URL from HELICONE_AI_GATEWAY_BASE_URL env var
- API key passed in Authorization header
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.

1 participant