Skip to content

feat: add setting to configure mcp host - #8439

Merged
justin-tahara merged 1 commit into
onyx-dot-app:mainfrom
wwgrainger:feat/addl-mcp-config
Feb 13, 2026
Merged

justin-tahara merged 1 commit into
onyx-dot-app:mainfrom
wwgrainger:feat/addl-mcp-config

Conversation

@victoriamreese

@victoriamreese victoriamreese commented Feb 13, 2026 •

Copy link
Copy Markdown
Contributor

Description

How Has This Been Tested?

Additional Options

  • [Required] I have considered whether this PR needs to be cherry-picked to the latest beta branch.
  • [Optional] Override Linear Check

Summary by cubic

Added MCP_SERVER_HOST env var to set which host the MCP server listens on. Defaults to 0.0.0.0; logs and Uvicorn now use this value.

Written for commit d9749fa. Summary will update on new commits.

@victoriamreese
victoriamreese requested a review from a team as a code owner February 13, 2026 20:18
@greptile-apps

greptile-apps Bot commented Feb 13, 2026

Copy link
Copy Markdown
Contributor

Greptile Overview

Greptile Summary

Adds MCP_SERVER_HOST environment variable configuration to allow customizing the host the MCP server binds to, replacing the hardcoded 0.0.0.0 value.

  • Added MCP_SERVER_HOST config in backend/onyx/configs/app_configs.py with default 0.0.0.0
  • Updated backend/onyx/mcp_server_main.py to use the configurable host instead of hardcoded value
  • Improves deployment flexibility for different networking configurations
  • Documentation in backend/onyx/mcp_server/README.md could be updated to mention the new environment variable

Confidence Score: 5/5

  • This PR is safe to merge with no risk
  • Clean implementation that adds configuration flexibility without changing behavior. Default value 0.0.0.0 maintains backward compatibility. Changes follow existing patterns in the codebase, and test infrastructure already uses MCP_SERVER_HOST environment variable.
  • No files require special attention

Important Files Changed

Filename Overview
backend/onyx/configs/app_configs.py Added MCP_SERVER_HOST configuration variable with default 0.0.0.0, consistent with existing patterns
backend/onyx/mcp_server_main.py Updated to use configurable MCP_SERVER_HOST instead of hardcoded 0.0.0.0, improving deployment flexibility

Last reviewed commit: d9749fa

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

2 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@greptile-apps

greptile-apps Bot commented Feb 13, 2026

Copy link
Copy Markdown
Contributor
Additional Comments (1)

backend/onyx/mcp_server/README.md
Consider adding the new MCP_SERVER_HOST environment variable to this list:

**MCP Server Configuration:**
- `MCP_SERVER_ENABLED`: Enable MCP server (set to "true" to enable, default: disabled)
- `MCP_SERVER_HOST`: Host address for MCP server to bind to (default: "0.0.0.0")
- `MCP_SERVER_PORT`: Port for MCP server (default: 8090)

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@justin-tahara

Copy link
Copy Markdown
Contributor

I like this approach better

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 2 files

@victoriamreese

Copy link
Copy Markdown
Contributor Author

following up with: wwgrainger#1

@justin-tahara
justin-tahara added this pull request to the merge queue Feb 13, 2026
Merged via the queue into onyx-dot-app:main with commit d4e4c6b Feb 13, 2026
102 of 136 checks passed
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.

2 participants