<?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: Diya</title>
    <description>The latest articles on DEV Community by Diya (@diya730).</description>
    <link>https://dev.to/diya730</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%2F3979482%2F5cc042c3-6d91-4387-8957-e14d130d550d.jpg</url>
      <title>DEV Community: Diya</title>
      <link>https://dev.to/diya730</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/diya730"/>
    <language>en</language>
    <item>
      <title>I built a self-hosted MCP server registry and proxy in TypeScript</title>
      <dc:creator>Diya</dc:creator>
      <pubDate>Sat, 13 Jun 2026 16:01:36 +0000</pubDate>
      <link>https://dev.to/diya730/i-built-a-self-hosted-mcp-server-registry-and-proxy-in-typescript-12b</link>
      <guid>https://dev.to/diya730/i-built-a-self-hosted-mcp-server-registry-and-proxy-in-typescript-12b</guid>
      <description>&lt;p&gt;The official MCP registry is written in Go and cloud-hosted.&lt;br&gt;
I wanted something I could self-host, written in TypeScript, &lt;br&gt;
that my team could run inside our own infra.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;mcp-hub&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Register&lt;/strong&gt; any MCP server (SSE, HTTP, stdio transports)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Proxy&lt;/strong&gt; all tool calls through one endpoint with auth forwarding&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stream&lt;/strong&gt; every tool call live via WebSocket (Socket.io)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Monitor&lt;/strong&gt; server health async via BullMQ jobs&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;NestJS — API framework&lt;/li&gt;
&lt;li&gt;PostgreSQL — server registry + tool call logs
&lt;/li&gt;
&lt;li&gt;Redis — WebSocket pub/sub + BullMQ transport&lt;/li&gt;
&lt;li&gt;BullMQ — async health check queue&lt;/li&gt;
&lt;li&gt;Socket.io — real-time log streaming&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;Register a server once:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST http://localhost:3000/api/v1/servers &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s1"&gt;'Content-Type: application/json'&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{
    "name": "github-mcp",
    "url": "http://my-mcp-server:8080",
    "transport": "http"
  }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then proxy any tool call through mcp-hub:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST http://localhost:3000/api/v1/proxy/&lt;span class="o"&gt;{&lt;/span&gt;serverId&lt;span class="o"&gt;}&lt;/span&gt;/call &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s1"&gt;'Content-Type: application/json'&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{ "tool": "create_issue", "input": { "title": "Bug" } }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every call is logged to PostgreSQL and streamed live over WebSocket.&lt;/p&gt;

&lt;h2&gt;
  
  
  Run it in one command
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/DIYA73/mcp-hub
&lt;span class="nb"&gt;cd &lt;/span&gt;mcp-hub
&lt;span class="nb"&gt;cp&lt;/span&gt; .env.example .env
docker compose up
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;API at &lt;code&gt;http://localhost:3000/api/v1&lt;/code&gt;&lt;br&gt;
WebSocket at &lt;code&gt;ws://localhost:3000/logs&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I built this
&lt;/h2&gt;

&lt;p&gt;I'm running multiple MCP servers locally and needed a central &lt;br&gt;
place to register them, forward calls, and see what's happening &lt;br&gt;
in real time. Nothing TypeScript-native existed.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/DIYA73/mcp-hub" rel="noopener noreferrer"&gt;https://github.com/DIYA73/mcp-hub&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Feedback welcome — especially if you're running MCP servers in prod.&lt;/p&gt;

</description>
      <category>typescript</category>
      <category>nestjs</category>
      <category>ai</category>
      <category>mcp</category>
    </item>
    <item>
      <title>I built a self-hosted "Git for AI prompts" — version control, test runner &amp; A/B testing (open source)</title>
      <dc:creator>Diya</dc:creator>
      <pubDate>Thu, 11 Jun 2026 23:49:31 +0000</pubDate>
      <link>https://dev.to/diya730/i-built-a-self-hosted-git-for-ai-prompts-version-control-test-runner-ab-testing-open-1i2b</link>
      <guid>https://dev.to/diya730/i-built-a-self-hosted-git-for-ai-prompts-version-control-test-runner-ab-testing-open-1i2b</guid>
      <description>&lt;p&gt;If you're building anything with LLMs, you've probably hit this problem: your prompts are scattered across code files, Notion docs, and Slack threads. There's no version history. You can't easily test a change. And you have no idea what's actually running in production.&lt;br&gt;
I built Prompt Vault to fix this — a self-hosted web app that treats your prompts like code.&lt;br&gt;
What it does&lt;br&gt;
Version control — every edit creates a new version. You can activate any version at any time, just like git checkout.&lt;br&gt;
Auto-detected variables — use {{variable}} syntax in your prompts. The UI automatically detects them and lets you fill values before testing.&lt;br&gt;
Test runner — run any prompt version directly against OpenAI from the UI. See the response, latency, and token usage instantly.&lt;br&gt;
A/B testing — create a test between two prompt versions, run both in parallel, and compare outputs side by side.&lt;br&gt;
Multi-user — JWT auth, each user's data is fully isolated.&lt;br&gt;
Self-hosted — Docker Compose for one-command setup. Your prompts stay on your infrastructure.&lt;br&gt;
Tech stack&lt;/p&gt;

&lt;p&gt;Backend: NestJS + TypeScript&lt;br&gt;
Database: PostgreSQL + Prisma&lt;br&gt;
Frontend: Next.js 15 + Tailwind CSS&lt;br&gt;
Auth: JWT + bcrypt&lt;br&gt;
AI: OpenAI API&lt;/p&gt;

&lt;p&gt;Quick start&lt;br&gt;
bashgit clone &lt;a href="https://github.com/DIYA73/prompt-vault" rel="noopener noreferrer"&gt;https://github.com/DIYA73/prompt-vault&lt;/a&gt;&lt;br&gt;
cd prompt-vault/backend&lt;br&gt;
cp .env.example .env&lt;/p&gt;

&lt;h1&gt;
  
  
  Add your DATABASE_URL and OPENAI_API_KEY
&lt;/h1&gt;

&lt;p&gt;npm install&lt;br&gt;
npx prisma generate&lt;br&gt;
npx prisma migrate dev --name init&lt;br&gt;
npm run start:dev&lt;/p&gt;

&lt;h1&gt;
  
  
  New terminal
&lt;/h1&gt;

&lt;p&gt;cd ../frontend&lt;br&gt;
npm install&lt;br&gt;
npm run dev&lt;br&gt;
Open &lt;a href="http://localhost:3000" rel="noopener noreferrer"&gt;http://localhost:3000&lt;/a&gt; — register, create a project, add your first prompt.&lt;br&gt;
Why I built it&lt;br&gt;
Every team I've seen building LLM features manages prompts the same broken way — hardcoded strings in source code, no history, no way to safely iterate. Prompt Vault is the tool I wished existed.&lt;br&gt;
GitHub&lt;br&gt;
⭐ &lt;a href="https://github.com/DIYA73/prompt-vault" rel="noopener noreferrer"&gt;https://github.com/DIYA73/prompt-vault&lt;/a&gt;&lt;br&gt;
Would love feedback — especially from anyone managing prompts at scale.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkg451qfi3dqxa4s8imc2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkg451qfi3dqxa4s8imc2.png" alt=" " width="800" height="438"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>nextjs</category>
      <category>nestjs</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
