<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/build-an-ai-agent-without-leaving-vs-code--66f5pe7te" -->

---
title: Build an AI agent without leaving VS Code! | daily.dev
description: This video walks through building an AI agent inside VS Code using a model saved to Foundry. It shows adding system instructions for a sample cupcake store...
canonical: https://daily.dev/posts/build-an-ai-agent-without-leaving-vs-code--66f5pe7te
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Build an AI agent without leaving VS Code! | daily.dev
og:description: This video walks through building an AI agent inside VS Code using a model saved to Foundry. It shows adding system instructions for a sample cupcake store...
og:url: https://daily.dev/posts/build-an-ai-agent-without-leaving-vs-code--66f5pe7te
og:image: https://api.daily.dev/og/posts/66F5pE7te.png
og:image:alt: Build an AI agent without leaving VS Code!
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Build an AI agent without leaving VS Code!

**[Microsoft Developer](https://daily.dev/sources/microsoftdeveloper)** · 1 min read · 0 upvotes · 0 comments

## Summary

This video walks through building an AI agent inside VS Code using a model saved to Foundry. It shows adding system instructions for a sample cupcake store agent, then creating a custom MCP server connection with a connection name, remote endpoint, and no authentication. The tool is added to the agent, and a test message uses 20 tokens. The demo ends by placing a cupcake order through the conversation.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=sipxLzh8Mw4>

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#mcp](https://daily.dev/tags/mcp), [#vscode](https://daily.dev/tags/vscode)

[View this post on daily.dev](https://daily.dev/posts/build-an-ai-agent-without-leaving-vs-code--66f5pe7te)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Build an AI agent without leaving VS Code!","url":"https://daily.dev/posts/build-an-ai-agent-without-leaving-vs-code--66f5pe7te","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/build-an-ai-agent-without-leaving-vs-code--66f5pe7te"},"datePublished":"2026-11-02T16:22:11.575Z","dateModified":"2026-11-02T16:23:21.554Z","description":"This video walks through building an AI agent inside VS Code using a model saved to Foundry. It shows adding system instructions for a sample cupcake store...","image":"https://i.ytimg.com/vi/sipxLzh8Mw4/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/sipxLzh8Mw4/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Microsoft Developer","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Microsoft Developer","logo":"https://media.daily.dev/image/upload/s--xZzU3zUq--/f_auto/v1746714872/logos/microsoftdeveloper","url":"https://daily.dev/sources/microsoftdeveloper"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/build-an-ai-agent-without-leaving-vs-code--66f5pe7te","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,mcp,vscode","timeRequired":"PT1M","video":{"@type":"VideoObject","name":"Build an AI agent without leaving VS Code!","description":"This video walks through building an AI agent inside VS Code using a model saved to Foundry. It shows adding system instructions for a sample cupcake store...","thumbnailUrl":"https://i.ytimg.com/vi/sipxLzh8Mw4/sddefault.jpg","uploadDate":"2026-11-02T16:22:11.575Z","duration":"PT1M","url":"https://api.daily.dev/r/66F5pE7te","embedUrl":"https://www.youtube.com/embed/sipxLzh8Mw4"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Microsoft Developer","item":"https://daily.dev/sources/microsoftdeveloper"},{"@type":"ListItem","position":3,"name":"Build an AI agent without leaving VS Code!"}]}
```

