Skip to content

Commit f77809f

Browse files
authored
Merge pull request #126 from meAmitPatil/patch-1
Add HF access token permissions setup for tiny agents
2 parents ea4487c + 84171d3 commit f77809f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

units/en/unit1/mcp-clients.mdx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,25 @@ Then, we will need to log in to the Hugging Face Hub to access the MCP servers.
270270
```bash
271271
huggingface-cli login
272272
```
273+
### Configure Access Token Permissions
274+
275+
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.
276+
277+
<Tip warning={true}>
278+
279+
**Important:** If you skip this step, you may encounter authentication errors when running tiny agents with hosted models.
280+
281+
</Tip>
282+
283+
1. Go to your [Hugging Face Access Tokens page](https://huggingface.co/settings/tokens)
284+
2. Find your MCP token and click the three dots (⋮) next to it
285+
3. Select **"Edit permissions"**
286+
4. Under the **Inference** section, check the box for:
287+
- **"Make calls to Inference Providers"**
288+
5. Save your changes
289+
290+
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.
291+
273292

274293
<hfoptions id="language">
275294
<hfoption id="python">

0 commit comments

Comments
 (0)