<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Raman Sharma</title>
    <description>The latest articles on DEV Community by Raman Sharma (@techraman100).</description>
    <link>https://dev.to/techraman100</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F562154%2F2a1fbfc2-aeed-499a-ace7-8eadb1f86ba4.jpeg</url>
      <title>DEV Community: Raman Sharma</title>
      <link>https://dev.to/techraman100</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/techraman100"/>
    <language>en</language>
    <item>
      <title>Cortex: The AI-Powered Notion CLI That Builds Your Entire Startup Workspace in 30 Seconds</title>
      <dc:creator>Raman Sharma</dc:creator>
      <pubDate>Mon, 23 Mar 2026 06:53:00 +0000</pubDate>
      <link>https://dev.to/techraman100/cortex-the-ai-powered-notion-cli-that-builds-your-entire-startup-workspace-in-30-seconds-4b42</link>
      <guid>https://dev.to/techraman100/cortex-the-ai-powered-notion-cli-that-builds-your-entire-startup-workspace-in-30-seconds-4b42</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/notion-2026-03-04"&gt;Notion MCP Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"The best way to predict the future is to build it. The fastest way to build it is with Cortex." — &lt;em&gt;Modern Founder Proverb&lt;/em&gt; 🧘‍♂️&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Cortex&lt;/strong&gt; is a state-of-the-art CLI agent designed to eliminate the "Organization Tax" that kills startup momentum. Instead of spending hours manually setting up Notion pages, roadmaps, and competitor analyses, Cortex turns a single idea prompt into a fully structured, modular empire in Notion in under 30 seconds.&lt;/p&gt;

&lt;h3&gt;
  
  
  🚀 Key Features:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;💡 Premium Strategy Briefs (&lt;code&gt;idea:&lt;/code&gt;)&lt;/strong&gt;: Generates high-end strategy documents using native Notion Callouts, Quotes, and structured Hierarchies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;📋 Jira-Style Roadmap (&lt;code&gt;tasks:&lt;/code&gt;)&lt;/strong&gt;: Creates a native Notion Database with AI-calculated Priority, Status, and Deadlines.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;🎭 User Persona Stories (&lt;code&gt;stories:&lt;/code&gt;)&lt;/strong&gt;: Maps personas to actions and business value in a dedicated database.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;🏗️ Full-Stack Startup Build (&lt;code&gt;build:&lt;/code&gt;)&lt;/strong&gt;: Launches a complete "Enterprise Workspace" including both databases and 5 strategy pages in one unified hierarchy.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Video Demo
&lt;/h2&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/i5BSp_Dg-IA"&gt;
  &lt;/iframe&gt;
&lt;br&gt;
&lt;em&gt;(See Cortex in action: From an empty terminal to a 7-page populated Notion ecosystem with dual databases!)&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Show us the code
&lt;/h2&gt;

&lt;p&gt;The entire project is open-source and built with TypeScript, Node.js, and the Model Context Protocol.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub Repository&lt;/strong&gt;: &lt;a href="https://github.com/RamanSharma100/cortex-notion" rel="noopener noreferrer"&gt;https://github.com/RamanSharma100/cortex-notion&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  How I Used Notion MCP
&lt;/h2&gt;

&lt;p&gt;Cortex isn't just a simple API wrapper; it's a sophisticated orchestration of the &lt;strong&gt;Model Context Protocol (MCP)&lt;/strong&gt;. &lt;/p&gt;
&lt;h3&gt;
  
  
  The Implementation
&lt;/h3&gt;

&lt;p&gt;We use &lt;code&gt;@modelcontextprotocol/sdk/client&lt;/code&gt; to manage a live &lt;code&gt;stdio&lt;/code&gt; transport connection with the &lt;code&gt;@notionhq/notion-mcp-server&lt;/code&gt;. This allows the AI to execute high-level tools via the same protocol used by tools like Claude Desktop and Cursor.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Spawn the Notion MCP server as a subprocess&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;transport&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;StdioClientTransport&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="na"&gt;command&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;npx&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;args&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@notionhq/notion-mcp-server&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="na"&gt;env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="na"&gt;OPENAPI_MCP_HEADERS&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
        &lt;span class="na"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`Bearer &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;token&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Notion-Version&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;2022-06-28&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;}),&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Client&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;notion-cortex&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;1.0.0&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;capabilities&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;transport&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// Write to Notion via MCP tool calls, NOT a direct REST API&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;callTool&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; 
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;API-post-page&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 
  &lt;span class="na"&gt;arguments&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; 
    &lt;span class="na"&gt;parent&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;workspace&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="na"&gt;properties&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[{&lt;/span&gt; &lt;span class="na"&gt;text&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;New Startup&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; 
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  What it Unlocks
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Rich Structural Integrity&lt;/strong&gt;: By using MCP tool calls, we can reliably convert Markdown (headers, quotes, callouts) into native Notion block objects on-the-fly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Resilient Multi-Model Architecture&lt;/strong&gt;: Cortex cycles through a &lt;strong&gt;Gemini Array&lt;/strong&gt; (3.1 Pro, 3 Flash, 2.5 Flash) with &lt;strong&gt;GPT-4.1&lt;/strong&gt; as a fail-safe. If one model hits a rate limit, the MCP connection remains stable while the CLI intelligently pivots to the next model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Complex Data Relations&lt;/strong&gt;: MCP makes it trivial to inject complex database properties like &lt;code&gt;Status&lt;/code&gt;, &lt;code&gt;Select&lt;/code&gt;, and &lt;code&gt;Date&lt;/code&gt; without manually constructing massive JSON payloads for the REST API.&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;&lt;em&gt;“Why did the startup founder cross the road?”&lt;/em&gt;&lt;br&gt;
&lt;em&gt;“To find a more sustainable way to disrupt the other side.”&lt;/em&gt; 😂 🚀&lt;/p&gt;

&lt;p&gt;Seriously, the goal of Cortex is to &lt;strong&gt;eliminate the friction of starting&lt;/strong&gt;. Stop clicking, start building.&lt;/p&gt;

&lt;h1&gt;
  
  
  notion #startup #ai #cli #typescript #automation #devchallenge #gemini #mcp
&lt;/h1&gt;

</description>
      <category>notionchallenge</category>
      <category>webdev</category>
      <category>ai</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
