<?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: Srijan Shukla</title>
    <description>The latest articles on DEV Community by Srijan Shukla (@srijanshukla18).</description>
    <link>https://dev.to/srijanshukla18</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%2F1576269%2F488a7c50-2f20-4488-b99c-e71fb09a3e31.jpeg</url>
      <title>DEV Community: Srijan Shukla</title>
      <link>https://dev.to/srijanshukla18</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/srijanshukla18"/>
    <language>en</language>
    <item>
      <title>From Grep to ast-grep: Building XRAY MCP for Code-Aware AI</title>
      <dc:creator>Srijan Shukla</dc:creator>
      <pubDate>Sat, 16 Aug 2025 13:21:52 +0000</pubDate>
      <link>https://dev.to/srijanshukla18/from-grep-to-ast-grep-building-xray-mcp-for-code-aware-ai-31m3</link>
      <guid>https://dev.to/srijanshukla18/from-grep-to-ast-grep-building-xray-mcp-for-code-aware-ai-31m3</guid>
      <description>&lt;p&gt;I enjoy coding with AI assistants, but they failed the moment I asked a structural question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Show me everything that calls &lt;code&gt;authenticate()&lt;/code&gt;."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;They guessed—because under the hood they were using plain text search.&lt;/p&gt;

&lt;p&gt;After experiments with grep scripts (too noisy), tree-sitter bindings (too fragile), and LSPs (too heavy), I found &lt;strong&gt;ast-grep&lt;/strong&gt;. It offers syntax-aware search without the infrastructure weight.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;XRAY MCP&lt;/strong&gt; is my wrapper around ast-grep: a tiny server exposing &lt;code&gt;map&lt;/code&gt;, &lt;code&gt;find&lt;/code&gt;, and &lt;code&gt;impact&lt;/code&gt; endpoints. An assistant can now map the repo, locate a symbol, and see its references before suggesting changes.&lt;/p&gt;

&lt;p&gt;The code is open source if you want to try the approach.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/srijanshukla18/xray" rel="noopener noreferrer"&gt;https://github.com/srijanshukla18/xray&lt;/a&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>programming</category>
      <category>vibecoding</category>
    </item>
  </channel>
</rss>
