<?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: phuongrealmax</title>
    <description>The latest articles on DEV Community by phuongrealmax (@phuongrealmax).</description>
    <link>https://dev.to/phuongrealmax</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%2F3678052%2Fc0d00c41-4e08-499e-9936-e6a15a303e57.jpeg</url>
      <title>DEV Community: phuongrealmax</title>
      <link>https://dev.to/phuongrealmax</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/phuongrealmax"/>
    <language>en</language>
    <item>
      <title>Building Code Guardian Studio: An MCP Server for AI-Powered Code Refactoring</title>
      <dc:creator>phuongrealmax</dc:creator>
      <pubDate>Thu, 25 Dec 2025 09:28:36 +0000</pubDate>
      <link>https://dev.to/phuongrealmax/building-code-guardian-studio-an-mcp-server-for-ai-powered-code-refactoring-1ice</link>
      <guid>https://dev.to/phuongrealmax/building-code-guardian-studio-an-mcp-server-for-ai-powered-code-refactoring-1ice</guid>
      <description>&lt;p&gt;Managing large codebases is challenging. Finding what to refactor first, tracking technical debt, and maintaining context across long coding sessions can be overwhelming.&lt;/p&gt;

&lt;p&gt;I built Code Guardian Studio to solve these problems using the Model Context Protocol (MCP).&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Code Guardian Studio?
&lt;/h2&gt;

&lt;p&gt;It's an MCP server that provides 80+ tools for:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Code Analysis
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Scan repositories for complexity metrics&lt;/li&gt;
&lt;li&gt;Detect "hotspots" - files that need attention&lt;/li&gt;
&lt;li&gt;Calculate Technical Debt Index (TDI)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Persistent Memory
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Remember decisions across sessions&lt;/li&gt;
&lt;li&gt;Store code patterns and conventions&lt;/li&gt;
&lt;li&gt;Recall similar errors and their fixes&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Code Guards
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Validate code before commits&lt;/li&gt;
&lt;li&gt;Catch fake tests, empty catch blocks&lt;/li&gt;
&lt;li&gt;Security-focused rules&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Workflow Management
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Task tracking with priorities&lt;/li&gt;
&lt;li&gt;Checkpoint system for progress&lt;/li&gt;
&lt;li&gt;Process management for dev servers&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Quick Start
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Install&lt;/span&gt;
npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; codeguardian-studio

&lt;span class="c"&gt;# Add to Claude Code settings&lt;/span&gt;
ccg init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Example: Finding Refactoring Priorities
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Claude: Use code_quick_analysis to scan the codebase

Result:
- Top hotspot: src/legacy/parser.ts (score: 8.5)
  - 500+ lines, deep nesting, high complexity
- Suggested: Split into smaller modules
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/phuongrealmax/claude-code-guardian" rel="noopener noreferrer"&gt;https://github.com/phuongrealmax/claude-code-guardian&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Website: &lt;a href="https://codeguardian.studio" rel="noopener noreferrer"&gt;https://codeguardian.studio&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;npm: codeguardian-studio&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;What features would you find most useful for your workflow? Let me know in the comments!&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>claudeai</category>
      <category>refactoring</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
