Uploaded July 2025 | Updated September 2026, 3 weeks ago
Not all MCP servers shall be public so here's a guide on how to protect a tool on your custom MCP Server via oauth. With the user data you can either answer with personalized data... or not answer at all for unauthorized users!
The stack in this video is TanStack Start, better-auth and drizzle and I'm using GitHub Copilot to use the MCP server.
Code here: github.com/Balastrong/confhub/tree/c3882203651ec3276d1eb1237cb1c868372b9d9a
Notice this is the commit where I shot the video as main might be different now :)
_______________________________
Subscribe to my newsletter: https://leonardomontini.dev/newsletter
Support my work: github.com/sponsors/Balastrong ❤️
Hit like and subscribe for more content! :D
You can also follow me on the other platforms:
Discord Community: discord.gg/bqwyEa6We6
Twitter: twitter.com/Balastrong
dev.to: dev.to/balastrong
GitHub: github.com/Balastrong
Home: https://leonardomontini.dev/
TikTok: tiktok.com/@balastrong
Instagram: instagram.com/devbalastrong
_______________________________
TIMESTAMPS
00:00 Demo MCP with Authentication
01:37 Setup auth plugin
03:02 Create OAuth tables
04:17 OAuth Metadata
05:37 Get user session in the MCP tool
07:07 Using the MCP official SDK
08:09 Debugging this setup and development tricks
#MCP #Copilot #AI
Not all MCP servers shall be public so here's a guide on how to protect a tool on your custom MCP Server via oauth. With the user data you can either answer with personalized data... or not answer at all for unauthorized users!
The stack in this video is TanStack Start, better-auth and drizzle and I'm using GitHub Copilot to use the MCP server.
Code here: github.com/Balastrong/confhub/tree/c3882203651ec3276d1eb1237cb1c868372b9d9a
Notice this is the commit where I shot the video as main might be different now :)
_______________________________
Subscribe to my newsletter: https://leonardomontini.dev/newsletter
Support my work: github.com/sponsors/Balastrong ❤️
Hit like and subscribe for more content! :D
You can also follow me on the other platforms:
Discord Community: discord.gg/bqwyEa6We6
Twitter: twitter.com/Balastrong
dev.to: dev.to/balastrong
GitHub: github.com/Balastrong
Home: https://leonardomontini.dev/
TikTok: tiktok.com/@balastrong
Instagram: instagram.com/devbalastrong
_______________________________
TIMESTAMPS
00:00 Demo MCP with Authentication
01:37 Setup auth plugin
03:02 Create OAuth tables
04:17 OAuth Metadata
05:37 Get user session in the MCP tool
07:07 Using the MCP official SDK
08:09 Debugging this setup and development tricks
#MCP #Copilot #AI



![Create a Pull Request from Visual Studio Code [1/3]
Did anyone say the word Productivity? 📈 Were all used to the GitHub UI so we usually navigate to GitHub, then search for our repository, and then click the button to create a Pull Request.
But did you know that you can do all of this from Visual Studio Code? In this video, well see how to create a Pull Request from Visual Studio Code in literally two clicks.
This video will also be the first of a trilogy 3️⃣ about the GitHub + Visual Studio Code workflow, you better stay tuned to see what else these two can do together ;)
Part 1: Create a PR https://youtu.be/Ma67EbIHi64 (this video)
Part 2: Review a PR https://youtu.be/DSl-L6B_Qb4
Part 3: Manage Issues https://youtu.be/-nfUgBLBTIo
Get the extension: https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github
Hit like and subscribe for more content! :D
Join the Discord community! Heres the invite: https://discord.gg/bqwyEa6We6
You can also follow me on the other platforms:
Twitter: https://twitter.com/Balastrong
dev.to: https://dev.to/balastrong
TikTok: https://www.tiktok.com/@balastrong
GitHub: https://github.com/Balastrong
Instagram: https://www.instagram.com/devbalastrong/
TIMESTAMPS
00:00 Preview
00:13 Install the extension
00:30 Review the changes
01:22 Title & Description
02:29 Labels
02:50 Fixing a bug in the extension
04:02 Create Pull Request
04:25 More features!
Sound effects from https://www.zapsplat.com
#vscode #github #opensource Create a Pull Request from Visual Studio Code [1/3]](https://i.ytimg.com/vi/Ma67EbIHi64/mqdefault.jpg)






