Skip to content

Conversation

@jhrozek
Copy link
Contributor

@jhrozek jhrozek commented Jan 28, 2026

Description

Add "Inject custom headers" section to the remote server configuration guide covering the new --remote-forward-headers and --remote-forward-headers-secret flags.

Type of change

  • Documentation update

Related issues/PRs

stacklok/toolhive#3452
stacklok/toolhive#3316

Screenshots

N/A

Submitter checklist

Content and formatting

  • I have reviewed the content for technical accuracy
  • I have reviewed the content for spelling, grammar, and style

Reviewer checklist

Content

  • I have reviewed the content for technical accuracy
  • I have reviewed the content for spelling, grammar, and style

Add "Inject custom headers" section to the remote server configuration
guide covering the new --remote-forward-headers and
--remote-forward-headers-secret flags.
Copilot AI review requested due to automatic review settings January 28, 2026 10:58
@vercel
Copy link

vercel bot commented Jan 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
docs-website Ready Ready Preview, Comment Jan 28, 2026 9:50pm

Request Review

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds documentation for the new custom header injection feature for remote MCP servers. This feature allows users to inject custom headers into requests forwarded to remote MCP servers, with support for both plaintext values and secret-backed values from ToolHive's secrets manager.

Changes:

  • Added a new "Inject custom headers" section under "Advanced remote server configuration"
  • Documented the --remote-forward-headers flag for plaintext headers
  • Documented the --remote-forward-headers-secret flag for secret-backed headers
  • Included security warnings about storing sensitive values
  • Referenced thv proxy command support for these flags

The thv proxy command lacks narrative documentation explaining when
to use it vs thv run, so referencing it here would confuse readers.
@jhrozek jhrozek merged commit 41a54c8 into main Jan 28, 2026
6 of 8 checks passed
@jhrozek jhrozek deleted the remote_headers branch January 28, 2026 22:30
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.

3 participants