# Tiny Agent Mcp course- connection close

**URL:** <https://discuss.huggingface.co/t/tiny-agent-mcp-course-connection-close/167303>\
**Category:** Course\
**Created:** [August 19, 2025, 4:47pm UTC](https://discuss.huggingface.co/t/tiny-agent-mcp-course-connection-close/167303 "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](https://discuss.huggingface.co/u/sampsong)\
**Post date:** [August 19, 2025, 4:47pm UTC](https://discuss.huggingface.co/t/tiny-agent-mcp-course-connection-close/167303/1 "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](https://discuss.huggingface.co/u/John6666)\
**Post date:** [August 20, 2025, 4:14am UTC](https://discuss.huggingface.co/t/tiny-agent-mcp-course-connection-close/167303/2 "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](https://discuss.huggingface.co/u/suuuuuusan)\
**Post date:** [October 30, 2025, 8:49am UTC](https://discuss.huggingface.co/t/tiny-agent-mcp-course-connection-close/167303/3 "2025-10-30T08:49:33Z")

</div>

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