# Tiny Agent Mcp course- connection close

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftiny-agent-mcp-course-connection-close%2F167303%3E%5C
**Category:** Course\
**Created:** [August 19, 2025, 4:47pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftiny-agent-mcp-course-connection-close%2F167303 "2025-08-19T16:47:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sampsong](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@sampsong](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsampsong)%5C
**Post date:** [August 19, 2025, 4:47pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftiny-agent-mcp-course-connection-close%2F167303%2F1 "2025-08-19T16:47:21Z")

</div>

HI there:

I am trying to run the tiny agent mcp course [Building Tiny Agents with MCP and the Hugging Face Hub - Hugging Face MCP Course](https://huggingface.co/learn/mcp-course/unit2/tiny-agents)

but when i run tiny-agents run agent.json on visual studio code, i have connection close error. but when i go to the [http://localhost:7860/gradio\_api/mcp/sse](http://localhost:7860/gradio_api/mcp/sse) the page is running fine.

anyone can help?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [August 20, 2025, 4:14am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftiny-agent-mcp-course-connection-close%2F167303%2F2 "2025-08-20T04:14:21Z")

</div>

When trying to use MCP from VSCode, [VSCode may fail because it cannot find `npx`](https://github.com/cline/cline/issues/2886).

---

<div class="post-metadata">

**Author:** ![suuuuuusan](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@suuuuuusan](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsuuuuuusan)%5C
**Post date:** [October 30, 2025, 8:49am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftiny-agent-mcp-course-connection-close%2F167303%2F3 "2025-10-30T08:49:33Z")

</div>

I have the same problem. were you able to find any solution to this.
