<?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>Forem: Hà Trần</title>
    <description>The latest articles on Forem by Hà Trần (@h_trn_9e005c8e3d82967be).</description>
    <link>https://forem.com/h_trn_9e005c8e3d82967be</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%2F3645807%2F6fa2b838-bb1f-448f-a65e-a7653dcec1d3.png</url>
      <title>Forem: Hà Trần</title>
      <link>https://forem.com/h_trn_9e005c8e3d82967be</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/h_trn_9e005c8e3d82967be"/>
    <language>en</language>
    <item>
      <title>How I Built PocketDC: Shift-Left FinOps Powered by Kiro Hooks + MCP</title>
      <dc:creator>Hà Trần</dc:creator>
      <pubDate>Thu, 04 Dec 2025 09:33:39 +0000</pubDate>
      <link>https://forem.com/h_trn_9e005c8e3d82967be/how-i-built-pocketdc-shift-left-finops-powered-by-kiro-hooks-mcp-5f3d</link>
      <guid>https://forem.com/h_trn_9e005c8e3d82967be/how-i-built-pocketdc-shift-left-finops-powered-by-kiro-hooks-mcp-5f3d</guid>
      <description>&lt;p&gt;🚧 The Problem&lt;/p&gt;

&lt;p&gt;Cloud cost surprises are painful.&lt;br&gt;
Teams only discover cost issues after deployment — when it's too late and too expensive to fix.&lt;/p&gt;

&lt;p&gt;FinOps tools exist, but they’re reactive, complex, and outside the developer’s workflow.&lt;/p&gt;

&lt;p&gt;I wanted something simpler:&lt;/p&gt;

&lt;p&gt;👉 Cost visibility inside the IDE&lt;br&gt;
👉 Cost analysis that runs on save&lt;br&gt;
👉 No dashboards, no terminals, no scripts&lt;/p&gt;

&lt;p&gt;Just instant FinOps inside Kiro.&lt;/p&gt;

&lt;p&gt;⚡ Introducing PocketDC&lt;/p&gt;

&lt;p&gt;PocketDC is a real-time FinOps guardrail built directly into the Kiro IDE.&lt;/p&gt;

&lt;p&gt;Whenever I save a service spec:&lt;/p&gt;

&lt;p&gt;A Kiro Hook fires&lt;/p&gt;

&lt;p&gt;It reads my service design&lt;/p&gt;

&lt;p&gt;It calls an MCP cost-engine&lt;/p&gt;

&lt;p&gt;It rewrites a “FinOps Report” block at the top of the file&lt;/p&gt;

&lt;p&gt;It warns me if my service is OVER_BUDGET&lt;/p&gt;

&lt;p&gt;This transforms a simple Markdown file into a living, cost-aware document.&lt;/p&gt;

&lt;p&gt;🧩 How I Built It (Kiro = Magic)&lt;/p&gt;

&lt;p&gt;PocketDC stitches together:&lt;/p&gt;

&lt;p&gt;Kiro Hooks – triggers logic when saving .service.md&lt;/p&gt;

&lt;p&gt;Specs – single source of truth&lt;/p&gt;

&lt;p&gt;MCP – external cost engine returning estimates&lt;/p&gt;

&lt;p&gt;Kiro Chat – orchestrating everything&lt;/p&gt;

&lt;p&gt;This combination allowed me to build a fully automated cost-check system within the IDE.&lt;/p&gt;

&lt;p&gt;Here’s the workflow:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Save service spec →
Hook triggers →
MCP server estimates cost →
Kiro rewrites FinOps Report →
Developer instantly sees budget status
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Simple. Beautiful. Powerful.&lt;/p&gt;

&lt;p&gt;🛠 Example: Saving a File&lt;/p&gt;

&lt;p&gt;Before saving:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;service_name: my-web-service
max_cost: 50
runtime: node18
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After saving:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# PocketDC Report:
# estimated_cost: 80 USD/month
# max_cost: 50 USD/month
# status: OVER_BUDGET
# over_by: 30 USD
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Kiro automatically updated the file and suggested optimizations.&lt;/p&gt;

&lt;p&gt;🔥 What I Learned&lt;/p&gt;

&lt;p&gt;MCP is incredibly powerful for integrating external tools&lt;/p&gt;

&lt;p&gt;Hooks turn Kiro into an event-driven automation engine&lt;/p&gt;

&lt;p&gt;Specs as source-of-truth lead to predictable, maintainable workflows&lt;/p&gt;

&lt;p&gt;“Shift-Left FinOps” is more valuable than I expected — catching issues early saves real money&lt;/p&gt;

&lt;p&gt;🚀 What’s Next&lt;/p&gt;

&lt;p&gt;Real AWS/GCP/Azure cost APIs&lt;/p&gt;

&lt;p&gt;Auto-optimization engine&lt;/p&gt;

&lt;p&gt;PR-blocking for over-budget services&lt;/p&gt;

&lt;p&gt;System-level cost modeling&lt;/p&gt;

&lt;p&gt;PocketDC started as an experiment but now feels like a real FinOps platform.&lt;/p&gt;

&lt;p&gt;Kiro made it possible — and made it fun.&lt;/p&gt;

&lt;p&gt;✔ Conclusion&lt;/p&gt;

&lt;p&gt;PocketDC shows that IDEs can be more than text editors.&lt;/p&gt;

&lt;p&gt;With Kiro’s Hooks, Specs, and MCP, the IDE becomes a smart, automated partner that helps developers build better — and cheaper — systems.&lt;/p&gt;

</description>
      <category>kiro</category>
      <category>finops</category>
      <category>developertools</category>
      <category>automation</category>
    </item>
  </channel>
</rss>
