Skip to content

Document bearer token auth for CLI remote servers#932

Merged
danbarr merged 1 commit into
mainfrom
document-cli-bearer-token
Jun 12, 2026
Merged

Document bearer token auth for CLI remote servers#932
danbarr merged 1 commit into
mainfrom
document-cli-bearer-token

Conversation

@danbarr

@danbarr danbarr commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Description

Bearer token support for remote MCP servers shipped in both the UI and CLI, but only the UI guide documented it. This adds a "Bearer token authentication" subsection to the CLI's "Run MCP servers" guide, covering --remote-auth-bearer-token and --remote-auth-bearer-token-file, with a note that the token is held in ToolHive's secrets manager (only a reference is saved to the run config) and a pointer to forwarded headers for servers that expect a non-Authorization header like X-API-Key.

Type of change

  • Documentation update

Related issues/PRs

Closes #456. The UI half was already covered; this completes the CLI side. Feature reference: stacklok/toolhive#3111.

The CLI guide covered only OAuth/OIDC flows for remote MCP server
authentication. Add a Bearer token subsection covering the
--remote-auth-bearer-token and --remote-auth-bearer-token-file flags,
matching the coverage already present in the UI guide.

Closes #456.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 12, 2026 02:48
@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
docs-website Ready Ready Preview, Comment Jun 12, 2026 2:49am

Request Review

Copilot AI 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.

Pull request overview

This PR closes a documentation gap in the ToolHive CLI guides by documenting bearer token authentication for remote MCP servers in the existing “Run MCP servers” guide, aligning CLI documentation with the already-documented UI workflow.

Changes:

  • Adds a new “Bearer token authentication” subsection under the remote server authentication setup guidance.
  • Documents --remote-auth-bearer-token and --remote-auth-bearer-token-file, including security guidance about secret storage and shell history exposure.
  • Adds a cross-reference to the existing “Inject custom headers” section for servers that require credentials in non-Authorization headers (for example, X-API-Key).

@danbarr danbarr requested a review from amirejaz June 12, 2026 04:17
@danbarr danbarr merged commit cab7bde into main Jun 12, 2026
5 checks passed
@danbarr danbarr deleted the document-cli-bearer-token branch June 12, 2026 13:20
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.

[Gap]: Bearer token support in UI/CLI

3 participants