Skip to content

Fix Tiny Agents setup on Windows and JSON schema errors #162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 18 additions & 23 deletions units/en/unit2/tiny-agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Let's setup a project with a basic Tiny Agent.
```bash
mkdir my-agent
touch my-agent/agent.json
cd my-agent
```

The JSON file will look like this:
Expand All @@ -76,13 +77,11 @@ The JSON file will look like this:
"servers": [
{
"type": "stdio",
"config": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:7860/gradio_api/mcp/sse" // This is the MCP Server we created in the previous section
]
}
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:7860/gradio_api/mcp/sse"
]
}
]
}
Expand All @@ -91,7 +90,7 @@ The JSON file will look like this:
We can then run the agent with the following command:

```bash
npx @huggingface/tiny-agents run ./my-agent
npx @huggingface/tiny-agents run agent.json
```

</hfoption>
Expand All @@ -114,13 +113,11 @@ The JSON file will look like this:
"servers": [
{
"type": "stdio",
"config": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:7860/gradio_api/mcp/sse"
]
}
"command": "npx.cmd",
"args": [
"mcp-remote",
"http://localhost:7860/gradio_api/mcp/sse"
]
}
]
}
Expand Down Expand Up @@ -154,13 +151,11 @@ We could also use an open source model running locally with Tiny Agents. If we s
"servers": [
{
"type": "stdio",
"config": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:1234/v1/mcp/sse"
]
}
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:1234/v1/mcp/sse"
]
}
]
}
Expand Down Expand Up @@ -271,4 +266,4 @@ This modular approach is what makes MCP so powerful for building flexible AI app

- Check out the Tiny Agents blog posts in [Python](https://huggingface.co/blog/python-tiny-agents) and [TypeScript](https://huggingface.co/blog/tiny-agents)
- Review the [Tiny Agents documentation](https://huggingface.co/docs/huggingface.js/main/en/tiny-agents/README)
- Build something with Tiny Agents!
- Build something with Tiny Agents!