<?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: Jeanmi</title>
    <description>The latest articles on DEV Community by Jeanmi (@jeanmi_3fbea472e70e4e377d).</description>
    <link>https://dev.to/jeanmi_3fbea472e70e4e377d</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4217602%2F0472bfed-b3db-4885-b620-7d80e348d25e.jpg</url>
      <title>DEV Community: Jeanmi</title>
      <link>https://dev.to/jeanmi_3fbea472e70e4e377d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jeanmi_3fbea472e70e4e377d"/>
    <language>en</language>
    <item>
      <title>Give Claude Code and Cursor a shared, auto-updating map of your codebase</title>
      <dc:creator>Jeanmi</dc:creator>
      <pubDate>Fri, 30 Oct 2026 15:47:19 +0000</pubDate>
      <link>https://dev.to/jeanmi_3fbea472e70e4e377d/give-claude-code-and-cursor-a-shared-auto-updating-map-of-your-codebase-4b59</link>
      <guid>https://dev.to/jeanmi_3fbea472e70e4e377d/give-claude-code-and-cursor-a-shared-auto-updating-map-of-your-codebase-4b59</guid>
      <description>&lt;p&gt;AI coding assistants are great at writing code and surprisingly bad at knowing &lt;em&gt;where things are&lt;/em&gt;. Ask "what breaks if I change this function?" on a large repository and the assistant starts opening files one by one, burning tokens and context, and often still misses a caller three modules away.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/Graphify-Labs/graphify" rel="noopener noreferrer"&gt;Graphify&lt;/a&gt; fixes that by turning a codebase into a knowledge graph: functions, classes, modules and the edges between them, parsed locally with tree-sitter. Your assistant queries the graph through MCP instead of re-reading the code. With over 130k GitHub stars, it clearly hit a nerve.&lt;/p&gt;

&lt;p&gt;This post shows how to run Graphify as &lt;strong&gt;one shared MCP server&lt;/strong&gt; that every assistant on your team can use, kept up to date automatically. Everything here is open source.&lt;/p&gt;

&lt;h2&gt;
  
  
  Local graph vs. shared server
&lt;/h2&gt;

&lt;p&gt;The default Graphify workflow is local: you run it in your repo, it writes &lt;code&gt;graphify-out/graph.json&lt;/code&gt;, and your assistant reads it. If you work alone on one machine, that's perfect. Committing &lt;code&gt;graphify-out/&lt;/code&gt; and installing Graphify's git hook even keeps several of your own machines in sync.&lt;/p&gt;

&lt;p&gt;It gets clumsier when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;several people (or several agents) need the same graph,&lt;/li&gt;
&lt;li&gt;you don't want everyone to install and run Graphify locally,&lt;/li&gt;
&lt;li&gt;you want the graph to follow &lt;code&gt;main&lt;/code&gt; without anyone thinking about it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Graphify already ships an HTTP transport for its MCP server, so the missing piece is just the plumbing: clone, build, serve, refresh, secure. That's what &lt;a href="https://github.com/jean82290/graphify-railway" rel="noopener noreferrer"&gt;graphify-railway&lt;/a&gt; does.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;your Git repo ──clone/pull──▶ graphify extract --code-only ──▶ graph.json (volume)
                                                                   │ reloaded on change
Claude Code / Cursor ──HTTPS + API key──▶ /mcp ◀── graphify.serve --transport http
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Clone.&lt;/strong&gt; On start, the service clones &lt;code&gt;REPO_URL&lt;/code&gt;. Private repos work with a read-only token.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build.&lt;/strong&gt; It runs &lt;code&gt;graphify extract --code-only&lt;/code&gt;: pure local AST parsing, no LLM API key. On a small repo (about 100 nodes) it takes under a second.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Serve.&lt;/strong&gt; It starts &lt;code&gt;graphify.serve&lt;/code&gt; over MCP Streamable HTTP on &lt;code&gt;/mcp&lt;/code&gt;. Every request must carry the API key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Refresh.&lt;/strong&gt; Every hour (configurable), it pulls the repo. If the commit changed, it rebuilds and swaps &lt;code&gt;graph.json&lt;/code&gt; atomically. Graphify's server checks the file on each request and reloads it, so connected clients keep their session: no restart, no downtime.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A few details I cared about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The git token never touches the disk.&lt;/strong&gt; It's passed to each git command as an HTTP header, not written to &lt;code&gt;.git/config&lt;/code&gt;, and it's redacted from logs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The API key isn't on the command line.&lt;/strong&gt; It goes through the environment, so it doesn't show up in &lt;code&gt;ps&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The last good graph survives.&lt;/strong&gt; It lives on a persistent volume: if the repo is briefly unreachable at startup, the previous graph is served; if a refresh fails, the old graph stays online.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Graphify is pinned&lt;/strong&gt; to a tested release in the Dockerfile. Graphify ships very often, and you don't want a surprise upgrade on a team server.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The whole wrapper is one Python file and a Dockerfile.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deploy it
&lt;/h2&gt;

&lt;h3&gt;
  
  
  One click on Railway
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://railway.com/deploy/graphify-or-team-mcp-server-with-auto-up" rel="noopener noreferrer"&gt;Deploy on Railway&lt;/a&gt;. You get the service and a volume. Fill in one variable, &lt;code&gt;REPO_URL&lt;/code&gt; (for example &lt;code&gt;https://github.com/your-org/your-repo&lt;/code&gt;); the API key is generated for you. For a private repo, also set &lt;code&gt;GIT_TOKEN&lt;/code&gt;. On GitHub, use a fine-grained token limited to that repository with &lt;strong&gt;Contents: Read-only&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Anywhere you can run a container
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker build &lt;span class="nt"&gt;-t&lt;/span&gt; graphify-server https://github.com/jean82290/graphify-railway.git

docker run &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; 8080:8080 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-v&lt;/span&gt; graphify-data:/data &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="nv"&gt;REPO_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;https://github.com/your-org/your-repo &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="nv"&gt;GRAPHIFY_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;openssl rand &lt;span class="nt"&gt;-hex&lt;/span&gt; 24&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  graphify-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Put it behind HTTPS before sharing it with anyone.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Variable&lt;/th&gt;
&lt;th&gt;Required&lt;/th&gt;
&lt;th&gt;Default&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;REPO_URL&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;HTTPS URL of the repository to map&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;GRAPHIFY_API_KEY&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Key every MCP client must send&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;GIT_TOKEN&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;private repos&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Read-only access token&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;REPO_BRANCH&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;default branch&lt;/td&gt;
&lt;td&gt;Branch to map&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;REFRESH_MINUTES&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;&lt;code&gt;60&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;How often to pull and rebuild (&lt;code&gt;0&lt;/code&gt; disables)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Connect your assistant
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Claude Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add &lt;span class="nt"&gt;--transport&lt;/span&gt; http graphify https://YOUR-SERVICE.up.railway.app/mcp &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--header&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer YOUR_GRAPHIFY_API_KEY"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Cursor&lt;/strong&gt; (&lt;code&gt;.cursor/mcp.json&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"graphify"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"https://YOUR-SERVICE.up.railway.app/mcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"headers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Bearer YOUR_GRAPHIFY_API_KEY"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Any MCP client that supports Streamable HTTP with custom headers works the same way.&lt;/p&gt;

&lt;h2&gt;
  
  
  What your assistant can do with it
&lt;/h2&gt;

&lt;p&gt;Graphify exposes tools such as &lt;code&gt;query_graph&lt;/code&gt;, &lt;code&gt;get_node&lt;/code&gt;, &lt;code&gt;get_neighbors&lt;/code&gt;, &lt;code&gt;get_community&lt;/code&gt;, &lt;code&gt;god_nodes&lt;/code&gt;, &lt;code&gt;graph_stats&lt;/code&gt; and &lt;code&gt;shortest_path&lt;/code&gt;, plus PR-oriented tools (&lt;code&gt;list_prs&lt;/code&gt;, &lt;code&gt;get_pr_impact&lt;/code&gt;, &lt;code&gt;triage_prs&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;In practice, this means questions like these get answered from the graph instead of a file-by-file crawl:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"What calls &lt;code&gt;buildEvent&lt;/code&gt;, directly or indirectly?"&lt;/li&gt;
&lt;li&gt;"What's the shortest path between the HTTP handler and the database layer?"&lt;/li&gt;
&lt;li&gt;"Which parts of the code are the most connected, and therefore the riskiest to change?"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When I tested it on a small Node.js project, a &lt;code&gt;query_graph&lt;/code&gt; call starting from one function returned its 80 related nodes and 152 edges in a single response. That's the context an assistant would otherwise have to rebuild by opening a dozen files.&lt;/p&gt;

&lt;h2&gt;
  
  
  Security notes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The server is reachable on the internet, and &lt;strong&gt;the API key is what keeps your code map private&lt;/strong&gt;. Rotate it by changing &lt;code&gt;GRAPHIFY_API_KEY&lt;/code&gt; and redeploying.&lt;/li&gt;
&lt;li&gt;The graph contains names and relationships from your code, not the full source, but treat it as confidential if your code is.&lt;/li&gt;
&lt;li&gt;Use a token with read access to a single repository.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Limitations
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Code only, for now.&lt;/strong&gt; Graphify can also extract docs, PDFs and images, but that pass needs an LLM backend and an API key. The wrapper sticks to the free, offline AST mode.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One repository per instance.&lt;/strong&gt; If you need several, run several instances (or tell me you'd like multi-repo support).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hourly refresh by default.&lt;/strong&gt; Lower &lt;code&gt;REFRESH_MINUTES&lt;/code&gt; if you need fresher graphs.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ul&gt;
&lt;li&gt;Source (MIT): &lt;a href="https://github.com/jean82290/graphify-railway" rel="noopener noreferrer"&gt;github.com/jean82290/graphify-railway&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;One-click deploy: &lt;a href="https://railway.com/deploy/graphify-or-team-mcp-server-with-auto-up" rel="noopener noreferrer"&gt;Railway template&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Graphify itself (Apache-2.0): &lt;a href="https://github.com/Graphify-Labs/graphify" rel="noopener noreferrer"&gt;github.com/Graphify-Labs/graphify&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Disclosure: this is an unofficial wrapper, not affiliated with Graphify Labs. If you deploy through the Railway template, I receive a share of Railway's hosting fees. The Docker route above costs me nothing and works just as well.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Questions, ideas or bugs: open an issue on GitHub or leave a comment below. I'm especially curious whether multi-repo support would be useful to you.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
