@@ -294,6 +294,8 @@ transport. Claude Desktop requires a local stdio bridge:
294294Add to your ` claude_desktop_config.json `
295295([ location] ( https://modelcontextprotocol.io/quickstart/user#configure-claude-for-desktop ) ):
296296
297+ Without access token:
298+
297299``` json
298300{
299301 "mcpServers" : {
@@ -305,14 +307,40 @@ Add to your `claude_desktop_config.json`
305307}
306308```
307309
310+ With access token:
311+
312+ ``` json
313+ {
314+ "mcpServers" : {
315+ "web2api" : {
316+ "command" : " npx" ,
317+ "args" : [
318+ " -y" , " mcp-remote" ,
319+ " https://your-web2api-host/mcp/" ,
320+ " --header" , " Authorization: Bearer YOUR_TOKEN_HERE"
321+ ]
322+ }
323+ }
324+ }
325+ ```
326+
308327> ** Requires Node.js ≥ 18** on the machine running Claude Desktop.
309328
310329### Connecting Claude Code
311330
331+ Without access token:
332+
312333``` bash
313334claude mcp add --transport http web2api https://your-web2api-host/mcp/
314335```
315336
337+ With access token:
338+
339+ ``` bash
340+ claude mcp add --transport http web2api https://your-web2api-host/mcp/ \
341+ --header " Authorization: Bearer YOUR_TOKEN_HERE"
342+ ```
343+
316344### Connecting Other MCP Clients
317345
318346Any MCP client that supports Streamable HTTP transport can connect directly:
@@ -616,6 +644,8 @@ Environment variables (with defaults):
616644| `WEB2API_RECIPE_CATALOG_REF` | empty | Optional git ref for catalog source |
617645| `WEB2API_RECIPE_CATALOG_PATH` | `catalog.yaml` | Catalog file path inside catalog source |
618646| `PLUGIN_ENFORCE_COMPATIBILITY` | false | Skip plugin recipes outside declared `web2api` version bounds |
647+ | `WEB2API_ACCESS_TOKEN` | empty | Shared access token for admin API and MCP endpoints |
648+ | `WEB2API_ACCESS_TOKEN_FILE` | empty | Path to file containing the access token (alternative to `WEB2API_ACCESS_TOKEN`) |
619649| `BIRD_AUTH_TOKEN` | empty | X/Twitter auth token for `x` recipe |
620650| `BIRD_CT0` | empty | X/Twitter ct0 token for `x` recipe |
621651
0 commit comments