Skip to content

docs: add a credential broker example to MCP settings - #1191

Open
forever8896 wants to merge 2 commits into
OpenHands:mainfrom
forever8896:docs/mcp-credential-broker
Open

forever8896 wants to merge 2 commits into
OpenHands:mainfrom
forever8896:docs/mcp-credential-broker

Conversation

@forever8896

@forever8896 forever8896 commented Nov 25, 2026 •

Copy link
Copy Markdown
  • I have read and reviewed the documentation changes to the best of my ability.
  • If the change is significant, I have run the documentation site locally and confirmed it renders as expected.

Summary of changes

Secrets saved in Settings > Secrets are exported into the agent's runtime, which is right for tools the agent runs itself. For an HTTP API such as GitHub there is a second option that needs no code: connect a credential broker as an MCP server, and the agent uses the token without it being in its environment.

This adds that as a third tab under Configuration Examples in MCP Settings, next to the proxy and stdio examples, and a one-line pointer to it from Secrets Management.

  • openhands/usage/settings/mcp-settings.mdx: new Credential Broker (SHTTP) tab with the Add custom server values and the two header lines, in the same table format as the other tabs.
  • openhands/usage/settings/secrets-settings.mdx: a note under "Using Secrets in the Agent" linking to the example.
  • openhands/static/img/mcp-credential-broker.gif: a screen recording of Agent Canvas.

Agent Canvas: adding the broker as a custom MCP server, then a conversation where the agent finds no GitHub token in its environment, reads a repository through the broker, and is refused a DELETE request

The recording is Agent Canvas 1.45.0 running locally in Docker, following the steps in the new tab exactly: Customize > MCP Servers > Add custom server, SHTTP, Header authentication, Test connection (9 tools), Add Server. In a new conversation the agent then finds no GitHub token in its environment, reads the three newest tags of OpenHands/software-agent-sdk from api.github.com through the broker (they match GitHub), and has a DELETE refused by the broker. The agent key in the Headers field is blurred and waiting time for the model is shortened; nothing else is edited.

The X-1Claw-Toolsets=execute header keeps the server to its brokered-call tools, so its tool names stay clear of Agent Canvas's built-in ones.

Disclosure: I work on 1Claw, the broker in the example. If you would rather keep vendor names out of this page, I am glad to reword the tab around the pattern and move the specific values elsewhere.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 974930a.

Approve preview

@forever8896
forever8896 marked this pull request as ready for review November 25, 2026 14:03

This branch has not been deployed

No deployments
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