Workbench developer docs中文

From Claude Code

Workbench has an MCP server. Claude Code, or any MCP client that can send a header, can use it with your personal token.

Add the Workbench MCP server

claude mcp add --transport http workbench https://desktop-api.wbench.io/mcp \
  --header "Authorization: Bearer $(wb token)"

Then, in Claude Code, /mcp lists the server and its tools. The tools act as you, with your role and your company's data, like the Workbench app.

Another MCP client

Use these settings:

SettingValue
TransportStreamable HTTP (requests only; the server sends no event stream)
URLhttps://desktop-api.wbench.io/mcp
HeaderAuthorization: Bearer <the output of wb token>

Calling a connection from Claude Code

To let Claude Code call a vendor, let it run wb call in your terminal, for example wb call digikey products/v4/search/keyword --data '{"Keywords": "MMBT3904"}'. Every call is logged under your name, like a call you make yourself.

When the token changes

The header holds the token itself. After wb login gives you a new token, remove the server and add it again:

claude mcp remove workbench
claude mcp add --transport http workbench https://desktop-api.wbench.io/mcp \
  --header "Authorization: Bearer $(wb token)"