Skip to content

Commit 11df34e

Browse files
authored
Add HF access token permissions setup for tiny agents
Add a new "Configure Access Token Permissions" section to the Setup instructions for tiny agents. This addresses a common issue where users encounter authentication errors when running tiny agents with hosted models because their Hugging Face access tokens lack the "Make calls to Inference Providers" permission. Changes: - Added step-by-step instructions to configure token permissions - Included clear warning about potential authentication errors - Explained why this permission is required for inference providers like Nebius - Positioned after login step for logical setup flow This change will help new users avoid frustrating authentication issues and get up and running faster with MCP tiny agents.
1 parent e1887ee commit 11df34e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

units/en/unit1/mcp-clients.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,21 @@ Then, we will need to log in to the Hugging Face Hub to access the MCP servers.
257257
```bash
258258
huggingface-cli login
259259
```
260+
### Configure Access Token Permissions
261+
262+
After creating your Hugging Face access token and logging in, you need to ensure your token has the proper permissions to work with inference providers.
263+
264+
**Important:** If you skip this step, you may encounter authentication errors when running tiny agents with hosted models.
265+
266+
1. Go to your [Hugging Face Access Tokens page](https://huggingface.co/settings/tokens)
267+
2. Find your MCP token and click the three dots (⋮) next to it
268+
3. Select **"Edit permissions"**
269+
4. Under the **Inference** section, check the box for:
270+
- **"Make calls to Inference Providers"**
271+
5. Save your changes
272+
273+
This permission is required because tiny agents need to make API calls to hosted models like `Qwen/Qwen2.5-72B-Instruct` through providers like Nebius.
274+
260275

261276
<hfoptions id="language">
262277
<hfoption id="python">

0 commit comments

Comments
 (0)