Skip to playerSkip to main content
In this deep dive, we go beyond the basics of Gemini CLI to show you how to integrate MCP servers like Contact7 & Taskmaster AI into your dev environment. Whether you’re new to Gemini or experienced with AI tools, this guide will help you push the limits of Gemini CLI.

🔥 Tutorial highlights:

Step-by-step Gemini CLI installation with Node.js

Authenticating Gemini with Google

Running shortcuts & commands in the Gemini terminal

Configuring multiple MCPs in settings.json

Real-world demo with GitHub repo analysis

Advanced context fetching inside Gemini CLI

By following along, you’ll create a customized AI-powered CLI environment inside VS Code that adapts to your projects.

✅ Subscribe for more hands-on AI developer tutorials & tool integrations.

👉 Watch the Full Video on Youtube: https://www.youtube.com/watch?v=HpasFDFxsmk

#GeminiCLI #AItools #GoogleGemini #VisualStudioCode #opensource #developers
Transcript
00:00First, we'll be checking what version we have. Open your terminal and type node-b and npm-b.
00:08You should see version 22.17.0 and 10.9.2.
00:15If not, then go to node.js and install the latest version on their website.
00:21Check your terminal again. It should be up to date.
00:27We'll then proceed to copying the npx link from GitHub and paste the link into Windows PowerShell and press Enter.
00:44It will ask to install the following packages. Press Y to proceed.
00:56Press Enter to select a theme, for example default arc, when prompted.
01:11Choose Login with Google for Authentication.
01:15Sign in using your Google account.
01:27Check available commands. Press forward slash help.
01:39Run shell commands using exclamation point. For example, exclamation point then cd.
01:47That just tells you you're in your user folder.
01:51In this example, we'll just use a code editor, something like Visual Studio Code.
02:01Go into your user folder and look for a folder named Point Gemini.
02:05You'll see files that were added during installation.
02:07You'll see files that were added during installation.
02:08They'll show you in a bit how to edit the settings point.json file.
02:13First, in the left sidebar, click Desktop.
02:17Then create a folder. For example, mine is Gemini CLI.
02:29Then head to Visual Studio to open folder and navigate to your desktop.
02:34Press the file you just created once and click Select Folder.
02:39The file should appear in your Visual Studio.
02:48Then we're going to copy the NPX link.
02:55Head to the terminal in your Visual Studio Code and paste it and press Enter.
03:07This should open your Gemini CLI in your Visual Studio Code.
03:14Alright, after we run the command, you'll see that we've entered Gemini CLI.
03:18Right now, it's using Gemini 2.5 Pro.
03:28For this demo, we're going to let Gemini clone a GitHub repository.
03:33It'll read the code, understand it, and then make some changes based on that open source project.
03:42Click the Code button. Copy the repository link.
03:46Then open your terminal.
03:48Type git clone, paste the link after it, and press Enter to run the command.
03:54You can see the small agents folder is open here.
04:09You can see the small agents folder is open here.
04:19Now, let's go back to the Gemini CLI terminal.
04:22Type git symbol, and it will display the small agents folder.
04:27Press the Tab key to auto-complete the folder name.
04:30This tells Gemini where to look for the project files.
04:34You'll see a list of all the files inside the folder, such as the license and make file.
04:40We're not going to target a specific file.
04:42We'll let Gemini read the entire folder.
04:45After the folder path, press Space and type your prompt asking Gemini to analyze the project.
04:51Then press Enter to run the command and let Gemini begin the analysis.
04:59The goal is to analyze the overall structure of the project, looking at its main modules, their responsibilities,
05:06how data flows through the system, any dependencies, the design patterns used,
05:11and any potential issues with the architecture.
05:16You can see that Gemini analyzed all the files in the project and provided a detailed response.
05:23It outlines the main modules and their responsibilities.
05:32Before adding an MCP server to our Gemini CLI, we can first check which MCP servers are currently configured.
05:40To do this, we use the forward slash MCP command in the Gemini CLI.
05:45When we run it, we should see that no MCP servers are set up yet.
05:52We're going to go into our user folder and go to the point Gemini folder,
05:56and inside we'll click the settings JSON file.
06:05We'll be using the contact 7 MCP server.
06:08This server is great because it can fetch up-to-date code, examples, and documentation directly from any repository.
06:16We'll use it to pull that information straight from the source and insert it into our prompts.
06:21That's the main goal here.
06:23These are the settings we'll be updating inside the settings.json file for Gemini.
06:38We'll use the NPX link in the visual studio code.
06:48Open a new terminal after installing the MCP and paste it inside.
06:52You'll notice the MCP has been installed.
07:06Now if we type forward slash MCP inside the Gemini CLI,
07:10it should display the list of MCP servers currently configured in our system.
07:29Here, we're simply going to use the contact 7 MCP to search for the latest features of Autogen.
07:38It explains that Autogen has introduced several new features in both its Net and Python versions,
07:44highlighting the key updates for each.
07:50I also added another MCP server called Taskmaster AI.
07:54This MCP server is an AI-powered task management system that's useful.
08:00We'll be using it in visual studio code to help us build and manage our programs using these MCP tools.
08:10Now we just need to make sure we set our environment variables for the Gemini code to run properly.
08:19Open your Deployged Gemini folder and open the settings.json file.
08:24Paste the code where you pasted the code earlier.
08:27Now save the file.
08:29Once that's done, return to the Gemini CLI.
08:32You'll now see that two MCP servers are installed and ready to use.
08:37It's fairly simple to install.
08:51Just follow the video step by step.
08:54If you found my video useful subscribe and like for more content like this.
09:07Meanwhile, we send you to the
Be the first to comment
Add your comment

Recommended