<?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 Manojraghav on Medium]]></title>
        <description><![CDATA[Stories by Manojraghav on Medium]]></description>
        <link>https://medium.com/@manojraghav90?source=rss-64a11336367e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*DIiMKe4dH3-HYMjC</url>
            <title>Stories by Manojraghav on Medium</title>
            <link>https://medium.com/@manojraghav90?source=rss-64a11336367e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 07:15:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@manojraghav90/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[Using the MCP Server of Figma to Create Designs with Cursor IDE: A Modern Design-to-Code Workflow]]></title>
            <link>https://medium.com/@manojraghav90/using-the-mcp-server-of-figma-to-create-designs-with-cursor-ide-a-modern-design-to-code-workflow-1fb59b161c48?source=rss-64a11336367e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fb59b161c48</guid>
            <category><![CDATA[cursor-ide]]></category>
            <category><![CDATA[cursor-ai]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[figma-api]]></category>
            <dc:creator><![CDATA[Manojraghav]]></dc:creator>
            <pubDate>Mon, 07 Jul 2025 11:44:12 GMT</pubDate>
            <atom:updated>2025-07-07T11:50:57.053Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*Kk5kFBzru6uAT7SBdS7kwg.png" /></figure><p>Integrating Figma’s <strong>Model Context Protocol (MCP)</strong> server with <strong>Cursor IDE</strong> is transforming the way developers and designers collaborate. This setup allows you to convert Figma designs into clean, production-ready code with impressive speed and precision — all through natural language interaction. In this article, you’ll learn how to leverage Figma’s MCP server within Cursor IDE to streamline your design-to-code workflow.What is the Figma MCP Server?</p><h4>🔍 What is the Figma MCP Server?</h4><p>Figma MCP is a server that implements the Model Context Protocol, a standardized framework that allows large language models (LLMs) and AI tools to interact directly with Figma design data. By connecting to Figma’s API, the MCP server provides filtered and structured access to design elements such as frames, layers, components, and styles.</p><h4>🚀 Why Use Cursor IDE with Figma MCP?</h4><ol><li>⚡ <strong>Accuracy</strong>: Code generated aligns closely with your design specs.</li><li>⏱️ <strong>Time savings</strong>: Automate tedious front-end implementation tasks.</li><li>🗣️ <strong>Better Collaboration:</strong> Reduce back-and-forth between designers and developers.</li><li>💻 <strong>Code Quality:</strong> Output is cleaner and more maintainable thanks to design context</li></ol><h4>🔧 Setting Up the Figma MCP Server in Cursor IDE</h4><p>Follow these steps to get everything up and running:</p><h4>1. Generate a Figma Personal Access Token</h4><ul><li>Log in to your <a href="https://figma.com/">Figma</a> account.</li><li>Navigate to <strong>Settings</strong> &gt; <strong>Security</strong>.</li><li>Under <strong>Personal Access Tokens</strong>, generate a new token</li><li>Copy and securely save the token as it will not be shown again</li><li><strong>Important:</strong> Copy and save the token securely — it won’t be shown again.</li></ul><h4>2. Configure the MCP Server in Cursor</h4><ul><li>Open Cursor IDE and go to Settings &gt; MCP tab.</li><li>Add a new global MCP server.</li><li>Use the following JSON configuration in your ~/.cursor/mcp.json file, replacing &lt;your-figma-api-key&gt; with your actual token:</li></ul><pre>{<br>  &quot;mcpServers&quot;: {<br>    &quot;Framelink Figma MCP&quot;: {<br>      &quot;command&quot;: &quot;npx&quot;,<br>      &quot;args&quot;: [<br>        &quot;-y&quot;,<br>        &quot;figma-developer-mcp&quot;,<br>        &quot;--figma-api-key=&lt;your-figma-api-key&gt;&quot;,<br>        &quot;--stdio&quot;<br>      ]<br>    }<br>  }<br>}</pre><ul><li>Ensure the Figma MCP server is running locally (usually on port 3333) by executing:</li></ul><pre>npx figma-developer-mcp --figma-api-key=&lt;your-figma-api-key&gt;</pre><ul><li>In Cursor, add the MCP server URL (e.g., http://localhost:3333) with SSE (Server-Sent Events) enabled.</li></ul><h4>3. Verify Connection</h4><ul><li>A green indicator next to the MCP server in Cursor confirms a successful connection.</li><li>If red, check your configuration and ensure the MCP server is running</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CvL3FbHL3iEayh3fP0BQMQ.png" /></figure><h4>🧑‍💻 Creating Designs Using Cursor and Figma MCP</h4><p>Now you’re ready to use Figma MCP in your workflow:</p><ul><li>Paste a link to any <strong>Figma file, frame, or component</strong> into Cursor.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*h_yflCnOCfTDopICpqTL4g.png" /></figure><ul><li>Use <strong>natural language prompts</strong> (e.g., “Implement this frame as a responsive layout”).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*UFeLtre68-eH8cByIeN8Ag.png" /></figure><ul><li>Cursor fetches the design context via MCP and generates accurate code accordingly.</li></ul><p>This creates a feedback loop where you can iterate quickly and stay aligned with the design intent.</p><h4>✨ Real Example</h4><p>Below is the Figma design used for demonstration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Wvxq8fy5uVrD9eqOq1Y-Q.png" /></figure><p>Here’s the resulting site created entirely through Cursor using the MCP integration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nhQoR-2LTs4guz-vrS8JGQ.png" /></figure><h4>Conclusion</h4><p>The combination of <strong>Figma MCP</strong> and <strong>Cursor IDE</strong> offers a futuristic, AI-enhanced workflow that makes design-to-code feel seamless. By enabling direct communication between Figma and your coding environment, it eliminates many traditional friction points — saving time, reducing errors, and boosting team productivity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fb59b161c48" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Reasons Why Developers Should Use GitHub Copilot Chat Instead of ChatGPT.]]></title>
            <link>https://medium.com/@manojraghav90/the-reasons-why-developers-should-use-github-copilot-chat-instead-of-chatgpt-c6d3858ae35d?source=rss-64a11336367e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6d3858ae35d</guid>
            <category><![CDATA[programming-technology]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[github-copilot]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Manojraghav]]></dc:creator>
            <pubDate>Thu, 11 Jan 2024 10:29:51 GMT</pubDate>
            <atom:updated>2024-01-11T10:29:51.242Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XxxHnbSv7nVJb_u2ZnwFZw.png" /></figure><p>Developers are always searching for solutions to improve their productivity and optimize their workflow in the ever changing world of technology. <strong>GitHub Copilot Chat</strong> and <strong>ChatGPT</strong> are two prominent competitors in the field of AI-assisted programming. Although each have their own advantages, this article tries to explain why developers ought to give GitHub Copilot Chat preference over ChatGPT in specific situations.</p><p><strong>Smooth Coding Integration</strong></p><p>One of GitHub Copilot Chat’s major features is its strong interaction with GitHub code repositories. This native integration enables developers to easily add code snippets into their applications. Copilot Chat creates highly relevant code suggestions based on the codebase’s context and intended functionality, saving developers considerable time.</p><p>ChatGPT, on the other hand, is capable of producing natural language answers but lacks interaction with code repositories specifically. GitHub Copilot Chat’s ability to grasp the coding environment distinguishes it for developers that value efficiency in their development process.</p><p><strong>Code Autocompletion for Developers</strong></p><p>GitHub Copilot Chat is trained on a large dataset of public code repositories, so it can anticipate and generate code snippets that follow industry best practices. The model has learnt from a wide variety of coding styles and patterns, enabling it to make contextually appropriate code suggestions depending on the developer’s purpose.</p><p>ChatGPT, on the other hand, excels in natural language understanding and creation but may not be as precise with code-specific tasks. Because of its focus on code-related situations, GitHub Copilot Chat is the best option for engineers looking for precise and personalized code autocompletion.</p><p>And lately, it received two significant improvements that made it significantly superior:</p><p><strong>Github Copilot Chat</strong>— a new IDE tool that allows you to communicate with AI about your code, ask questions, build unit tests, solve bugs, refactor, explain sections of the code you don’t understand, and so on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sMtuxKFSyhUXeDB-RAjBGw.png" /></figure><p><strong>Github Copilot Voice</strong> — a voice assistant that allows you to write code without typing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U4NfWQI3VbtGJfwUXotTYw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6d3858ae35d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Micro-Frontends with React and Module Federation]]></title>
            <link>https://medium.com/@manojraghav90/building-micro-frontends-with-react-and-module-federation-1a967a59e6e8?source=rss-64a11336367e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a967a59e6e8</guid>
            <dc:creator><![CDATA[Manojraghav]]></dc:creator>
            <pubDate>Tue, 07 Mar 2023 10:59:07 GMT</pubDate>
            <atom:updated>2023-03-07T10:59:07.120Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sB1EcG8xbe57qm98vUL6VQ.png" /></figure><p><strong>Introduction</strong></p><p>The micro-frontend is an architectural pattern for developing web applications where the user interface (UI) is decomposed into smaller, more manageable pieces. Each piece, or micro frontend, is developed and deployed independently by a small, cross-functional team responsible for a specific UI part.</p><p><strong>How to setup</strong></p><p>Creating Module Federation Microfrontends with create-mf-app is a streamlined process that allows you to quickly set up a micro-frontend architecture with React and Module Federation. Here are the steps:</p><p><strong>Step 1: Creating the host app</strong></p><ol><li>Create a new micro frontend host application using the npx create-mf-app command</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TSDaQFBplGgYo3knKzTi4Q.png" /></figure><p><strong>Step 2: Creating the remote app</strong></p><ol><li>Create a new micro-frontend remote application using the npx create-mf-app command</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I0wP6Gyu8JH4PwMfZQ1XJg.png" /></figure><p>Now we have 2 Apps running side by side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*fFHmKhZ972g0qEHPHBX_JA.png" /></figure><p><strong>Step 3: Creating the Micro-Frontend</strong></p><p>In the remote app, we define a function called Counter inside the src folder that we want to make available to the host app. This is done using Module Federation, which allows us to share code between different applications running on different servers or domains. Once the remote app is set up to expose the Counter function, the host app can import and use it as if it were part of its own codebase.</p><p>Counter.jsx</p><pre>import { createSignal } from &quot;solid-js&quot;;<br><br>export default () =&gt; {<br>  const [count, setCount] = createSignal(0);<br><br>  return (<br>    &lt;div&gt;<br>      &lt;div&gt;Count = {count()}&lt;/div&gt;<br>      &lt;button onClick={() =&gt; setCount(count() + 1)}&gt;Add One&lt;/button&gt;<br>    &lt;/div&gt;<br>  );<br>};</pre><p>Now import Counter in App.jsx</p><pre>import { render } from &quot;solid-js/web&quot;;<br><br>import &quot;./index.scss&quot;;<br>import Counter from &quot;./Counter&quot;;<br>const App = () =&gt; (<br>  &lt;div class=&quot;mt-10 text-3xl mx-auto max-w-6xl&quot;&gt;<br>    &lt;div&gt;Name: remote&lt;/div&gt;<br>    &lt;Counter/&gt;<br>  &lt;/div&gt;<br>);<br>render(App, document.getElementById(&quot;app&quot;));</pre><p>our remote App now looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*GNmykkorxt9CDBTbaVuwpw.png" /></figure><p><strong>Step 4: Exposing the Micro-Frontend</strong></p><p>In order to expose the Counter component from the remote app, we need to update the webpack configuration of the remote app. Specifically, we need to add an entry point for the remote app and configure the exposes option in the ModuleFederationPlugin to make the Counter component available for consumption by other apps.</p><p>Here’s an example of what the updated webpack.config.js file for the remote app might look like:</p><pre>const HtmlWebPackPlugin = require(&quot;html-webpack-plugin&quot;);<br>const ModuleFederationPlugin = require(&quot;webpack/lib/container/ModuleFederationPlugin&quot;);<br><br>const deps = require(&quot;./package.json&quot;).dependencies;<br>module.exports = {<br>  output: {<br>    publicPath: &quot;http://localhost:3000/&quot;,<br>  },<br><br>  resolve: {<br>    extensions: [&quot;.tsx&quot;, &quot;.ts&quot;, &quot;.jsx&quot;, &quot;.js&quot;, &quot;.json&quot;],<br>  },<br><br>  devServer: {<br>    port: 3000,<br>    historyApiFallback: true,<br>  },<br><br>  module: {<br>    rules: [<br>      {<br>        test: /\.m?js/,<br>        type: &quot;javascript/auto&quot;,<br>        resolve: {<br>          fullySpecified: false,<br>        },<br>      },<br>      {<br>        test: /\.(css|s[ac]ss)$/i,<br>        use: [&quot;style-loader&quot;, &quot;css-loader&quot;, &quot;postcss-loader&quot;],<br>      },<br>      {<br>        test: /\.(ts|tsx|js|jsx)$/,<br>        exclude: /node_modules/,<br>        use: {<br>          loader: &quot;babel-loader&quot;,<br>        },<br>      },<br>    ],<br>  },<br><br>  plugins: [<br>    new ModuleFederationPlugin({<br>      name: &quot;remote&quot;,<br>      filename: &quot;remoteEntry.js&quot;,<br>      remotes: {},<br>      exposes: {<br>        &quot;Counter&quot;:&quot;./src/Counter.jsx&quot;<br>      },<br>      shared: {<br>        ...deps,<br>        &quot;solid-js&quot;: {<br>          singleton: true,<br>          requiredVersion: deps[&quot;solid-js&quot;],<br>        },<br>      },<br>    }),<br>    new HtmlWebPackPlugin({<br>      template: &quot;./src/index.html&quot;,<br>    }),<br>  ],<br>};</pre><p>Let’s understand each option:</p><p><strong>name</strong>: This is the name of the remote app, which is used by the host app to import modules from the remote app.</p><p><strong>filename</strong>: This is the name of the file that is created by the remote app when it is built. This file contains the information that the host app needs to load modules from the remote app. In the example code I provided above, the filename is set to &#39;remoteEntry.js&#39;</p><p><strong>exposes</strong>: The exposes option in the ModuleFederationPlugin is used to specify which modules from the remote app should be exposed to other apps that use Module Federation. These modules can be components, functions, or any other kind of code that you want to share between apps. To use the exposes option, you need to specify an object that maps module names to the paths of the modules that you want to expose.</p><p>After making the changes to the webpack.config.js file of the remote app, you need to restart the remote app so that the changes take effect.</p><p>Once the remote app is running again, you can access the remoteEntry.js file by navigating to http://localhost:3000/remoteEntry.js in your web browser. This file contains information about the modules that are exposed by the remote app, and it is used by the host app to load those modules at runtime.</p><p><strong>Step 5: Consuming the Micro-Frontend</strong></p><p>To use the remote app in the host application, we need to update the remotes key in the webpack config file of the host app.</p><p>The remotes key is used to specify which remote apps the host app depends on, and how to load modules from those remote apps. To use the Counter component from the remote app that we just created, we need to add an entry to the remotes object like this:</p><pre>remotes: {<br> remote:&quot;remote@http://localhost:3000/remoteEntry.js&quot;<br> },</pre><p>Note that the &#39;./Counter&#39; part of the import statement corresponds to the module name that we exposed in the exposes option of the ModuleFederationPlugin in the counter app. If you exposed the Counter component with a different name or path, you will need to adjust the import statement accordingly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_91a9D4CppJW-NafWAHEYQ.png" /></figure><p><strong>Step 6: Wrapping the Micro-Frontend</strong></p><ol><li>Create a container application using the npx create-mf-app command</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BZdxxCvGqV0elcfMxVv4MQ.png" /></figure><p>2. To use the remote app inside react-host update the webpack config file of react-host app</p><pre>remotes: {<br> remote:&quot;remote@http://localhost:3000/remoteEntry.js&quot;<br> },</pre><p>But our react-host app doesn’t know anything about solidjs. so what we’re going to do is wrap out solid-js component in a universal function that just takes an element and will automatically mount that application into it</p><p><strong>Step 7: Wrapping the Micro-Frontend</strong></p><ol><li>In the remote app create a file counterWrapper.jsx inside src folder</li></ol><pre>import { render } from &quot;solid-js/web&quot;;<br>import &quot;./index.scss&quot;;<br>import Counter from &quot;./Counter&quot;;<br><br>export default (el) =&gt; {<br>  render(Counter, el);<br>};</pre><p>To expose the counterWrapper to the host app, we need to update the exposes configuration in the webpack.config.js file of the host app.</p><pre> exposes: {<br> &quot;./Counter&quot;:&quot;./src/Counter.jsx&quot;,<br> &quot;./counterWrapper&quot;:&quot;./src/counterWrapper.jsx&quot;<br> }</pre><p><strong>Step 8: Consuming the Micro-Frontend in React</strong></p><ol><li>To use the counterWrapper in the react-host app we have to import the counterWrapper in App.jsx file of react-host app.</li></ol><pre>import React, { useRef, useEffect } from &quot;react&quot;;<br>import ReactDOM from &quot;react-dom&quot;;<br><br>import &quot;./index.scss&quot;;<br>import counterWrapper from &quot;remote/counterWrapper&quot;;<br><br>const App = () =&gt; {<br>  const divRef = useRef(null);<br>  useEffect(() =&gt; {<br>    counterWrapper(divRef.current);<br>  }, []);<br>  return (<br>    &lt;div className=&quot;mt-10 text-3xl mx-auto max-w-6xl&quot;&gt;<br>      &lt;div&gt;Name: react-host&lt;/div&gt;<br>      &lt;div ref={divRef }&gt; &lt;/div&gt;<br>    &lt;/div&gt;<br>  );<br>};<br><br>ReactDOM.render(&lt;App /&gt;, document.getElementById(&quot;app&quot;));</pre><p>Now our remote-host app is all setup</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*RGBHxc1kduvB3Spvv9Xozg.png" /></figure><h4>Summary</h4><p>In this tutorial, we learned how to create a micro-frontend architecture using React and Module Federation. We started by creating a remote app that exposes a Counter component. Then, we created a host app that imports the Counter component from the remote app using the ModuleFederationPlugin configuration.</p><p>Next, we wrapped the Counter component inside a new component called counterWrapper in the remote app. We then exposed the counterWrapper to the host app by updating the exposes property in the counter app&#39;s ModuleFederationPlugin configuration.</p><p>Finally, we used the counterWrapper component in the react-host app&#39;s App.jsx file by importing it using the remote app&#39;s name and module name. We then rendered the counterWrapper component inside the App component of the react-host app.</p><p>By following these steps, we were able to create a micro-frontend architecture where each micro frontend is developed and deployed independently by a small, cross-functional team responsible for a specific UI part. This approach can make it easier to manage and scale complex web applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qzGtQo5Vsm7SsOhMrkeNxQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a967a59e6e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>