<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Salmanvaipees on Medium]]></title>
        <description><![CDATA[Stories by Salmanvaipees on Medium]]></description>
        <link>https://medium.com/@salmanvaipees913?source=rss-19646c7d7aa2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*TvMqkOz4KcY6OIXG</url>
            <title>Stories by Salmanvaipees on Medium</title>
            <link>https://medium.com/@salmanvaipees913?source=rss-19646c7d7aa2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 21:34:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@salmanvaipees913/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Unlocking Power: How to Connect MongoDB MCP and Gemini CLI in Minutes]]></title>
            <link>https://medium.com/@salmanvaipees913/unlocking-power-how-to-connect-mongodb-mcp-and-gemini-cli-in-minutes-33bf6d0e3179?source=rss-19646c7d7aa2------2</link>
            <guid isPermaLink="false">https://medium.com/p/33bf6d0e3179</guid>
            <category><![CDATA[gemini]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[mongodb]]></category>
            <dc:creator><![CDATA[Salmanvaipees]]></dc:creator>
            <pubDate>Sun, 13 Jul 2025 09:22:31 GMT</pubDate>
            <atom:updated>2025-07-13T09:22:31.418Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*drcSb1eXBxCEQ7cdX7ru3w.png" /></figure><p>Imagine being able to control your MongoDB MCP with just a few simple commands, right from your terminal. With the Gemini CLI, this is not just possible — it’s effortless. Whether you’re a developer looking to automate your database workflows or a data enthusiast eager to streamline your operations, connecting MongoDB MCP with Gemini CLI opens up a world of possibilities.</p><p>In this guide, I’ll walk you through the step-by-step process to make this powerful connection. No jargon, no fuss — just a clear path to integrating two cutting-edge tools. By the end, you’ll be ready to manage your MongoDB resources with confidence and speed, all from the comfort of your command line.</p><blockquote>The first step is to install the <strong>geminiCLI </strong>to our system<br>Follow this link to complete instalation guid : <a href="https://github.com/google-gemini/gemini-cli/blob/main/README.md">https://github.com/google-gemini/gemini-cli/blob/main/README.md</a></blockquote><h4>Prerequisites</h4><p>Node.js (version 18 or later) must be installed on your system. You can check if Node.js is installed by running:</p><pre>node -v</pre><h3>Install Gemini CLI</h3><pre>npm install -g @google/gemini-cli</pre><blockquote>After globally installing gemini to your system type <strong><em>gemini </em></strong>in cmd</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u6xKFQams7m-JsW32fDK2A.png" /></figure><p>After setting your color theme and signing in to your account with Gemini, you can see something like this…</p><h3>Set up MongoDB MCP</h3><blockquote>What is MongoDB MCP?</blockquote><blockquote>The MongoDB Model Context Protocol (MCP) Server is a powerful bridge that enables Large Language Models (LLMs) like Gemini to interact directly with MongoDB databases. This server provides a standardized interface for database operations, making it possible for AI assistants to query, analyze, and manipulate your MongoDB data intelligently.</blockquote><h4>Install globally using NPM</h4><pre>npm install -g mcp-mongo-server</pre><h3>Connect MongoDB MCP With Gemini CLI</h3><p>As of now, you have installed both gemini CLI and mcp server of mongoDB in your local system.</p><p>Now let’s connect both, and we can use your collections data with Gemini directly</p><p>For this, you first go to the .gemini folder in your local directory. generally the path for this should be in <strong><em>C:\Users\user\.gemini </em></strong>inside this there will be file called <strong>settings.json </strong>edit the file as follows</p><pre>&quot;mcpServers&quot;: {<br>    &quot;mongodb-env&quot;: {<br>      &quot;command&quot;: &quot;npx&quot;,<br>      &quot;args&quot;: [<br>        &quot;-y&quot;,<br>        &quot;mcp-mongo-server&quot;<br>      ],<br>      &quot;env&quot;: {<br>        &quot;MCP_MONGODB_URI&quot;: &quot;mongodb://127.0.0.1:27017/youDataBase&quot;,<br>        &quot;MCP_MONGODB_READONLY&quot;: &quot;true&quot;<br>      }<br>    }<br>  }</pre><p>Paste this JSON inside the settings.json</p><p>Now open cmd type gemini, then give the command <strong>/mcp</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3cY1OYJ5_iqOkQGgluRWXA.png" /></figure><p>Now it will give an option like this. You can now perform this MongoDB operation using GeminiCLI on the database that you mentioned in the settings.json.</p><p>The MongoDB MCP Server provides a powerful and secure way to connect your MongoDB databases with AI assistants. By following the configuration steps and best practices outlined above, you can enable intelligent database interactions while maintaining security and performance. Whether you’re using it for data analysis, content generation, or automated database operations, this tool opens up new possibilities for AI-powered database management.</p><p>Remember to always prioritize security by using read-only mode for production environments and storing sensitive connection information in environment variables rather than configuration files.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33bf6d0e3179" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multiple Github Accounts on One Windows System with SSH]]></title>
            <link>https://medium.com/@salmanvaipees913/multiple-github-accounts-on-one-windows-system-with-ssh-3c42860a9e1a?source=rss-19646c7d7aa2------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c42860a9e1a</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[git-ssh]]></category>
            <category><![CDATA[ssh]]></category>
            <dc:creator><![CDATA[Salmanvaipees]]></dc:creator>
            <pubDate>Mon, 27 Jan 2025 17:04:18 GMT</pubDate>
            <atom:updated>2025-01-27T17:04:18.846Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*fmiUj58JHbVBpnUwXMLuGQ.jpeg" /></figure><p>As a developer, managing multiple GitHub accounts — such as one for work and another for personal projects — can be tricky. Switching between accounts often leads to frustrating authentication errors, but the good news is that SSH makes it possible to manage multiple profiles on a single machine seamlessly.</p><p>Here I am taking a Github Account &amp; a Gitlab Account</p><blockquote>Try to use the below commands with gitbash. If you are using this with the command prompt or Powershell, you may face some authentication issues.</blockquote><ol><li><strong>Generate SSH Keys for Both Accounts</strong></li></ol><p>&gt;Generate For GitHub Account</p><pre>ssh-keygen -t rsa -b 4096 -C &quot;gitHubMailid@gmail.com&quot; -f ~/.ssh/id_rsa_github</pre><p>&gt;Generate For GitLab Account</p><pre>ssh-keygen -t rsa -b 4096 -C &quot;gitlabMailid@gmail.com&quot; -f ~/.ssh/id_rsa_gitlab</pre><p>2. <strong>Add SSH Keys to the SSH Agent</strong></p><pre>ssh-add ~/.ssh/id_rsa_github</pre><pre>ssh-add ~/.ssh/id_rsa_gitlab</pre><blockquote>If You are facing any error while this process Try below command</blockquote><blockquote>eval “$(ssh-agent -s)”</blockquote><p>Before Going to next process make sure in you .ssh folder two id_rsa files generated with given names, also along with that there should be two id_rsa_pub_yougivenname.pub files.</p><p>3. <strong>Add SSH Key to Github/Gitlab</strong></p><p>In github navigate to <a href="https://github.com/settings/profile">settings</a> where you can see a section SSH &amp; GPG Keys</p><figure><img alt="Add SSH Key Here in GitHub" src="https://cdn-images-1.medium.com/max/497/1*PGM9J1lR5zxiS39Gmk3RBw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NNVMf0GJm0ngq6pw3hjuIg.png" /></figure><p>In GitLab navigate to <a href="https://gitlab.com/-/user_settings/ssh_keys">user settings</a> where you can see a section SSH Keys</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*Hzh0FxJSETBo_tMoFTPdAg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AK1baKFlCbQH6CVdwBpBmw.png" /></figure><p>Navigate to the above section and paste the key in your id_rsa.pub files to respective accounts.</p><blockquote>Always copy the ssh key from the pub file and paste there. As our need is to authenticate user while git actions use key Type/Usage Type as Authentication</blockquote><p>4. <strong>Configure SSH Config File</strong></p><p>In the .ssh folder create a config folder as shown below</p><pre># GitHub account<br>Host github-personal.com<br>    HostName github.com<br>    User git<br>    IdentityFile ~/.ssh/id_rsa_github<br><br># GitLab account<br>Host gitlab-office.com<br>    HostName gitlab.com<br>    User git<br>    IdentityFile ~/.ssh/id_rsa_gitlab</pre><p>5. <strong>Configure Git User Profile</strong></p><pre>git config --global user.name &quot;work&quot;<br>git config --global user.email &quot;workmail@gmail.com&quot;</pre><p>If you are using an office laptop then try to configure the global git configure with your work mail</p><p>For using personal git account go the project folder where you needed and initialize the the folder to git with git init</p><pre>git config user.name &quot;personal&quot;<br>git config user.email &quot;personal@gmail.com&quot;</pre><p>Here, For the particular folder the configuration will be with your personal mail</p><p>6. <strong>Clone Repositories Using Correct Config</strong></p><pre>#for office Account<br>git clone git@gitlab-office.com:username/repository.git<br><br>#for Personal Account<br>git clone git@github-personal.com:username/repository.git</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/1*eQ-GzPmB-jR9jhgQg2g-Jg.png" /></figure><blockquote>Always clone with the SSH instead of HTTP</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c42860a9e1a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Swap two integers without using an extra variable]]></title>
            <link>https://medium.com/@salmanvaipees913/swap-two-integers-without-using-an-extra-variable-d50cc00e1f51?source=rss-19646c7d7aa2------2</link>
            <guid isPermaLink="false">https://medium.com/p/d50cc00e1f51</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[problem-solving]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[swap]]></category>
            <dc:creator><![CDATA[Salmanvaipees]]></dc:creator>
            <pubDate>Sat, 10 Aug 2024 15:21:57 GMT</pubDate>
            <atom:updated>2024-08-10T15:21:57.303Z</atom:updated>
            <content:encoded><![CDATA[<p>For Swap to values, we always use an extra variable to store the temporary value.</p><p>But In the case of swap two integers we can use an unique method using XOR operator</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ywO5B7qT8cd0OTHwHmAoLw.png" /><figcaption><strong>sample Js code of swapping two intergers</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*xf7GQtG4IEu13g2VIFiVtg.png" /><figcaption><strong>Output of the above</strong></figcaption></figure><h3>Explanation:</h3><ol><li><strong>Step 1:</strong> a = a ^ b</li></ol><ul><li>This stores the XOR of a and b in a.</li></ul><ol><li><strong>Step 2:</strong> b = a ^ b</li></ol><ul><li>Now, b is XORed with the new a (which is a ^ b). This effectively gives us the original value of a, which is then stored in b.</li></ul><ol><li><strong>Step 3:</strong> a = a ^ b</li></ol><ul><li>Finally, a is XORed with the new b (which is the original a), resulting in b being stored in a.</li></ul><p>After executing these steps, the values of a and b will be swapped.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d50cc00e1f51" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>