<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Milad Jafary on Medium]]></title>
        <description><![CDATA[Stories by Milad Jafary on Medium]]></description>
        <link>https://medium.com/@milad.jafary?source=rss-939c28655685------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*r_c9tmfBLwwPcFDG</url>
            <title>Stories by Milad Jafary on Medium</title>
            <link>https://medium.com/@milad.jafary?source=rss-939c28655685------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 17:15:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@milad.jafary/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How AI Made End-to-End Testing Cheap Enough to Finally Do]]></title>
            <link>https://medium.com/@milad.jafary/we-never-wrote-this-end-to-end-test-until-ai-made-it-cheap-5e65e29946ba?source=rss-939c28655685------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e65e29946ba</guid>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Milad Jafary]]></dc:creator>
            <pubDate>Wed, 10 Jun 2026 21:26:29 GMT</pubDate>
            <atom:updated>2026-06-10T21:37:03.957Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A story about testing a feature whose price isn’t known until fulfilment, across many services and teams — and how AI helped build the end-to-end test nobody had time to write.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QWIwDGRY919CCPa_Vc9bPw.png" /></figure><p><strong>The problem: a price that doesn’t exist yet</strong></p><p>Most online orders are simple — the price is fixed the moment you hit checkout. But some products break that assumption.</p><p>Anything sold <strong>by weight</strong> doesn’t have a final price yet. The number you see at checkout is only an estimate. The real price is determined later, when the item is physically weighed during fulfilment.</p><p>That small detail turns a simple order into a multi-step journey:</p><ul><li>The customer is authorized for an estimated amount</li><li>The item is picked and weighed</li><li>The order is recalculated based on the real weight</li><li>The difference is settled — charge more or refund</li></ul><p>A clean idea on a slide — Much messier in reality.</p><p>It also raises genuinely interesting product questions. For example: <em>what should happen if the weight is never captured?</em> Do you fall back to a sensible default price, pause the order, or tell the customer? There’s no single obvious answer — each choice is a branch the system has to handle correctly. (Fascinating problems, but not the focus of this story.)</p><h3>Why a feature like this demands an end-to-end test</h3><p>Here’s the part that matters: this flow isn’t owned by one team or one service. It spans <strong>many services across several teams</strong> — ordering, fulfilment, pricing, payments, and the systems that store and reconcile the final state. Each one writes a different piece of the pricing outcome.</p><p>When responsibility is spread that thin, a particular kind of risk appears. Every team’s own unit tests can be green, every service correct in isolation — and the <em>combined</em> behaviour can still be wrong. A price that lands on the wrong item. A state that silently never advances. A refund that’s off by the weight of a single product. These failures live <strong>between</strong> services, in the seams no single test owns.</p><p>The only way to catch them is to exercise the whole journey, together, the way a real order would travel it. In other words: a feature like this <em>requires</em> an<strong> end-to-end test</strong>. Not as a nice-to-have — as the only test that can actually see the failure modes that cost real money.</p><p>And yet, before this, that whole cross-service journey had <strong>no automated coverage at all.</strong></p><h3>The reason that test never got written</h3><p>Every engineer knows why. <strong>End-to-end tests are expensive to build</strong> — especially in a behaviour-driven (BDD) style.</p><p>The <em>valuable</em> part is easy: writing the scenario in plain language — “given a customer orders a weight-based item, when it’s weighed at fulfilment, then the order is repriced to the actual amount.” Anyone can read that.</p><p>The <em>expensive</em> part is everything beneath it: the clients that call each service, the data models, the fixtures, the code that wires each plain-language step to a real action, the waiting logic for systems that update asynchronously, and the long tail of debugging a flaky harness. That iceberg is where end-to-end efforts quietly sink. It’s why the conversation always ends with <em>“let’s do it later — it takes too long, and it’s not urgent.”</em> Later never arrives.</p><h3>The shift: humans describe intent, AI builds the machinery</h3><p>This time I inverted the workflow, working with an AI coding agent (Claude). Instead of grinding through the plumbing first:</p><ol><li><strong>I described the behaviour in plain BDD.</strong> The scenarios became the contract — readable by engineers, QA, product, and even other AI agents.</li><li><strong>The AI built everything underneath.</strong> Working in <a href="https://quarkus.io/">Quarkus</a> with <a href="https://cucumber.io/">Cucumber</a> for the BDD scenarios, it generated the whole iceberg beneath each one-line scenario — the service clients, the domain model, the assertions, the step definitions, the async waiting, the fixtures. Practically all of it, written for us.</li></ol><p>A test in the suite reads like this — and this <em>is</em> the test, not a description of it:</p><pre>Scenario: A variable-weight item is priced from its weight at fulfilment<br>  Given a customer orders a weight-based item<br>  When the item is picked and its weight is captured at the warehouse<br>  Then the order is repriced to the captured amount<br>  And the customer is charged the final price</pre><p>A product manager can read that and confirm it’s right. An engineer can trust it. And it drives a <em>real</em> order through the entire flow against a test environment.</p><p>And the AI was never a one-shot scaffolder. It stayed in the loop the entire way: turning a sentence of intent into working clients and assertions, talking through architecture and trade-offs, and untangling the genuinely fiddly parts — authenticating against a real environment, waiting correctly for asynchronous state to settle, taming flaky setup. When a requirement changed, it refactored the suite to match. When I wanted the tests to run automatically, it wrote the pipeline wiring too. The conversation became the IDE: I described what I wanted, reviewed what came back, and refined — and what would normally have been weeks of plumbing and debugging compressed into a focused back-and-forth.</p><p>The result was that the <strong>cost of a solid end-to-end test collapsed.</strong> When the boilerplate is no longer a multi-day slog, <em>“let’s do it later”</em> stops being a defensible excuse. The barrier that had kept this test from existing simply dissolved.</p><h3>Making it run on its own</h3><p>A test that only runs on a laptop is a missed opportunity. So — again with the AI doing the heavy lifting — we made the suite a <strong>standalone, reusable component</strong> and wired it into the delivery pipelines, so it runs automatically whenever a change ships to a test environment. Cross-service regressions now surface early, in a safe environment, instead of in a production incident weeks later. Adding it to another service’s pipeline went from a bespoke chore to a short, guided change.</p><h3>The impact</h3><ul><li><strong>A living specification.</strong> The plain-language scenarios are now the single source of truth for how the feature should behave — readable by every role, not buried in code only engineers can parse.</li><li><strong>Shared confidence across teams.</strong> No single team could previously verify the whole journey. Now everyone leans on one safety net that runs the real, combined flow.</li><li><strong>Regressions caught early.</strong> The expensive bugs — the ones that mis-charge or mis-refund — are caught automatically, the day they’re introduced.</li><li><strong>A repeatable pattern.</strong> Because the suite is reusable, the next service is minutes of integration, not a new project.</li><li><strong>The excuse is gone.</strong> Comprehensive end-to-end testing stopped being the thing we’d “get to,” because it was finally cheap to do well.</li></ul><h3>What actually changed for me</h3><p>The deeper shift wasn’t the test suite — it was <strong>where my time went.</strong></p><p>I spent my hours on the parts that need human judgment:</p><ul><li><em>what</em> behaviour matters,</li><li><em>which</em> edge cases are dangerous,</li><li>and <em>how</em> this fits the wider system.</li></ul><p>The AI absorbed the work that used to eat the days — the boilerplate, the client wiring, the flaky-setup debugging, the pipeline plumbing, even the back-and-forth on architecture and trade-offs.</p><p>Writing this kind of test used to be slow and expensive, so it was easy to keep putting off. With AI it’s quick — so we simply did it. That matters most for a feature like this one: many teams touch it, but no one owns it end to end, so the test everyone needs is the test no one has time to build.</p><p>And it doesn’t stop here. The suite and the approach are reusable, so the next end-to-end test is just as cheap to add. For me, that’s the real win with AI — not a single test, but making every future test easy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e65e29946ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Event Sourcing in Payments: My Journey, Lessons, and Why I’d Think Twice Next Time]]></title>
            <link>https://medium.com/@milad.jafary/event-sourcing-in-payments-my-journey-lessons-and-why-id-think-twice-next-time-fec25d7fdf9a?source=rss-939c28655685------2</link>
            <guid isPermaLink="false">https://medium.com/p/fec25d7fdf9a</guid>
            <category><![CDATA[event-sourcing]]></category>
            <category><![CDATA[payment-processing]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Milad Jafary]]></dc:creator>
            <pubDate>Mon, 13 Oct 2025 19:20:16 GMT</pubDate>
            <atom:updated>2025-10-13T19:20:16.891Z</atom:updated>
            <content:encoded><![CDATA[<p>When building a payment operations platform, architectural decisions can make or break your system’s long-term maintainability. Event Sourcing seemed like the perfect solution — promising auditability, scalability, and immutability. After years of living with this choice in production, I want to share the unfiltered reality of what I encountered.</p><p>This isn’t just another tutorial singing praises; it’s an honest reflection on when Event Sourcing shines and when it becomes a burden you didn’t sign up for.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cAaejjhKGYvhRAVnUGkJkQ.png" /><figcaption>Event Sourcing: The timeline nobody shows you</figcaption></figure><h3><strong>🧩 What Is Event Sourcing?</strong></h3><p>Event Sourcing is an architectural pattern where state changes are stored as a sequence of immutable events rather than in-place updates. The current state is reconstructed by replaying those events.</p><p>Think of it like a bank statement: instead of just knowing your current balance, you have every transaction that led to that balance. Want to know your balance on any given day? Just replay the transactions up to that point.</p><p>A good overview of this pattern is given in the Microsoft Patterns &amp; Practices “<a href="https://learn.microsoft.com/en-us/azure/architecture/patterns/event-sourcing">Event Sourcing</a>” article. More background and trade-offs are discussed in Martin Fowler’s “<a href="https://martinfowler.com/eaaDev/EventSourcing.html">Event Sourcing</a>” write-up.</p><p><strong>In short:</strong></p><ul><li><strong>Traditional (CRUD) systems</strong> store only the latest snapshot</li><li><strong>With Event Sourcing</strong>, you store the full history, enabling temporal queries, auditing, and replay</li></ul><h3><strong>⚙️ Why We Chose It?</strong></h3><p>When designing our payment platform, Event Sourcing appeared to align perfectly with our requirements. Payment systems demand strict auditability — regulators and auditors need to see not just what happened, but when and why. The promise of having an immutable, append-only log of every state change was compelling.</p><p>The main goals were transparency, traceability, and scalability. Event Sourcing appeared to check many boxes.</p><h4><strong>✅ The Advantages We Actually Realised</strong></h4><p><strong>Complete Audit Trail</strong></p><p>Every state transition is captured as an immutable event — ideal for compliance or debugging. This was the crown jewel. When auditors came knocking or when investigating incidents, we could trace every state transition with precision. No one could argue about what happened — the events told the definitive story.</p><p><strong>Events as First-Class Domain Objects</strong></p><p>Since our architecture already centered around events, publishing them to external consumers was straightforward. Message queues, webhooks, and downstream systems could consume our domain events directly with minimal translation.</p><p><strong>Scalability by Design</strong></p><p>Append-only writes scale well, and you can rebuild or replay projections as needed. No locks, no complex transactions spanning multiple tables. Each event append was an independent operation that could scale horizontally.</p><p><strong>Immutable Data Model</strong></p><p>No updates, only inserts — boundaries are clearer, and history is preserved. No one could accidentally overwrite critical data.</p><p><strong>Schema Flexibility / Decoupling</strong></p><p>Events evolve more independently than schema-bound tables. Adding new event types didn’t require database migrations.</p><h3><strong>⚠️ The Winter Is Coming (Challenges After Deployment)</strong></h3><p>The real challenges emerged not during development, but after deployment — when the system was live, handling real payments, and changing in response to business needs.</p><p>Our development velocity slowed. Simple features that would take hours in a traditional architecture took days. New team members faced a steep learning curve.</p><h4><strong>1️⃣ Event Versioning Nightmare</strong></h4><p>In a traditional database, adding a new column is straightforward. You run a migration, existing records have NULL for that column, and life goes on. With Event Sourcing, introducing a new field in an event broke everything.</p><p>Our stored events — thousands of them — didn’t have this new field. When we tried to deserialize old events, the system failed. The “proper” solution is event versioning: maintaining multiple versions of events and upcasting logic to transform old events to new formats.</p><p><strong>We didn’t go down that path.</strong> Instead, we made every new field nullable. This might sound reasonable until you realize what it means in practice: every single place in your codebase that reads or writes this field must include null checks. Your domain logic becomes polluted with conditional statements.</p><pre>// This becomes your reality<br>if (event.getNewField() != null) {<br>// Handle the case where field exists<br>} else {<br>// Handle the legacy case where field doesn&#39;t exist<br>}</pre><p>When a field was renamed? Even worse. Old events had the old field name, new events had the new name, and your code needed to handle both indefinitely.</p><h4><strong>2️⃣ Concurrency: The Race Condition Nightmare</strong></h4><p>This was our most painful lesson. Event Sourcing’s append-only nature seems to eliminate concurrency issues at first glance — no UPDATE conflicts, right? <strong>Wrong.</strong></p><p>In our Kubernetes deployment, we ran multiple pods to handle load and availability. Here’s what happened in production:</p><p><strong>Scenario 1: Duplicate Records</strong></p><p>Two pods simultaneously received the same payment authorization request. Since there are no UPDATEs in event sourcing, both pods read the current state, determined the request was valid, and successfully inserted authorization events. We ended up with duplicate records. In this case, the harm was minimal — the payment was eventually marked as authorized — but it revealed a fundamental problem.</p><p><strong>Scenario 2: The Invalid State Catastrophe</strong></p><p>This one kept us up at night. A user initiated a payment cancellation request while simultaneously, a payment provider webhook arrived confirming authorization.</p><ul><li><strong>Pod A</strong> received the cancellation request, loaded the payment aggregate (status: “AuthorizationSent”), and began processing the discard logic.</li><li><strong>Pod B</strong> received the authorization webhook, loaded the same payment aggregate (status: “AuthorizationSent”), and began processing the authorization.</li><li><strong>Pod B</strong> finished first, appending a “PaymentAuthorized” event, changing the status to “Paid.”</li><li><strong>Pod A</strong> continued with its discard logic, unaware of Pod B’s changes. Based on its stale view of “AuthorizationSent,” it determined the payment could be cancelled and appended a “PaymentDiscarded” event.</li><li><strong>Result:</strong> The payment ended up in an invalid state — authorized by the provider but marked as cancelled in our system. Money was collected, but our records showed the transaction as cancelled.</li></ul><p><strong>The Fix: Adding Complexity Back</strong></p><p>We had to introduce <strong>optimistic locking</strong>. We created an additional table storing the latest status and a version field for each payment. Before appending events, we had to check and increment this version, implementing manual optimistic locking logic.</p><p>This defeated much of Event Sourcing’s simplicity. We were back to managing concurrent updates, just with more steps.</p><h3><strong>3️⃣ Projections: The Hidden Cost</strong></h3><p>Because the primary store is a sequence of events, you can’t efficiently query domain state like “all payments over €100” or “status = FAILED.”</p><h4><strong>The Investigation Nightmare</strong></h4><p>Imaging you should investigating a payment issue at 2 AM, you couldn’t just query a table. You had to:</p><ol><li>Find all events for that payment ID</li><li>Open each JSON event one by one</li><li>Mentally replay the state transitions</li><li>Piece together what happened</li></ol><p>In a traditional table, you’d simply run:</p><pre>SELECT * FROM payments WHERE reference = &#39;X&#39;;</pre><h4><strong>Querying JSON is Painful</strong></h4><p>We stored events as JSON. PostgreSQL supports querying JSON fields, but these queries are CPU-intensive and slow. Want to find all payments with a specific amount? You’re scanning JSON fields across potentially millions of events.</p><p>Running analytics or generating reports became an exercise in patience. Query performance degraded over time as events accumulated.</p><p><strong>Binary Storage Makes it Worse:</strong> Some teams store events in binary format for efficiency. This makes the events completely unqueryable without deserializing them first. Debugging becomes nearly impossible.</p><h4><strong>Replicating domain logic</strong></h4><p>You also face the necessity of <strong>replicating domain logic</strong> wherever you reconstruct state. If you want a separate read-replica or a back-office view of payments (in a different repository or service), your choices are:</p><ul><li><strong>Copy the aggregate logic</strong> into each consumer (high duplication, drift risk)</li><li><strong>Extract it into a shared library</strong> (tight coupling, versioning headaches)</li><li><strong>Build projections / materialized views</strong> — the more robust choice, though it introduces additional infrastructure, consistency challenges, and storage overhead</li></ul><h4><strong>The Inevitable Projection Layer</strong></h4><p>We eventually built read-model projections — essentially recreating traditional tables that aggregated event data into queryable formats. This meant:</p><ul><li>Additional infrastructure to maintain</li><li>Eventual consistency between events and projections</li><li>Projection rebuilding when event schemas changed</li><li>Another layer of potential bugs</li></ul><p>We came full circle: building the traditional database tables we tried to avoid, but now with the added complexity of keeping them in sync with events.</p><h3><strong>4️⃣ Gradually Increasing Code Complexity</strong></h3><p>Initially, we handled a small set of events — <em>PaymentInitiated</em>, <em>AuthorizationPending</em>, <em>PaymentAuthorized</em> — with manageable apply and handle(command) methods.</p><p>Over time, as flows like Refund, Capture, or Chargeback were added, the number of events and commands ballooned. The aggregate code became harder to read and maintain. Eventually, we had to break it into multiple command handlers (authorization module, refund module, etc.) to keep things understandable.</p><p>What started clean gradually morphed into complexity — tangled handlers, branching logic, and brittle tests.</p><h3>💡<strong>Final Thoughts: Choose Wisely</strong></h3><p>After living with Event Sourcing in production for years, my perspective has evolved significantly. Event Sourcing isn’t inherently bad — it’s a powerful tool for specific problems. But like any architectural pattern, it comes with trade-offs that are often downplayed in blog posts and conference talks.</p><p><strong>When Event Sourcing Makes Sense:</strong></p><ul><li>You have genuine regulatory requirements for complete audit trails</li><li>Your domain naturally thinks in terms of events</li><li>You need to publish domain events to many consumers</li><li>Your team has deep experience with the pattern</li></ul><p><strong>When to Think Twice:</strong></p><ul><li>You’re building a typical CRUD application</li><li>Your team is unfamiliar with Event Sourcing</li><li>You need fast development velocity</li><li>Querying and reporting are critical requirements</li><li>You can’t afford the operational complexity</li></ul><h4><strong>My Honest Take:</strong></h4><p>Would I choose Event Sourcing again? <strong>Only if the benefits clearly and significantly outweigh the disadvantages.</strong> For our payment platform, the audit trail was valuable, but the operational burden, development complexity, and concurrency challenges made me question whether we could have achieved similar benefits with simpler approaches.</p><p><strong>If your primary objective is auditability</strong>, then logging events in a well-structured audit table can often satisfy that requirement with far less complexity.</p><p>Traditional database design with audit tables, database triggers for change tracking, or CDC (Change Data Capture) mechanisms can provide many of Event Sourcing’s benefits without the architectural complexity.</p><p><strong>I would only choose full Event Sourcing when its unique benefits</strong> (replay, multi-model projections, integration flexibility) <strong>are truly critical to your domain.</strong> Otherwise, the overhead, versioning risks, and operational complexity can outweigh its advantages.</p><p><strong>Sometimes the boring solution is the right solution.</strong></p><p>If you’re considering Event Sourcing, I urge you to be honest about your requirements. Don’t adopt it because it’s trendy or intellectually appealing. Adopt it because you have specific problems it solves better than alternatives, and you’re prepared to handle the challenges that come with it.</p><p><strong>The winter will come. Make sure you’re ready for it.</strong></p><h3>References</h3><ul><li><a href="https://martinfowler.com/eaaDev/EventSourcing.html?utm_source=chatgpt.com">Event Sourcing — Martin Fowler</a></li><li><a href="https://microservices.io/patterns/data/event-sourcing.html?utm_source=chatgpt.com">Event Sourcing — Microservices.io</a></li><li><a href="https://learn.microsoft.com/en-us/azure/architecture/patterns/event-sourcing?utm_source=chatgpt.com">Event Sourcing pattern — Microsoft Learn</a></li><li><a href="https://event-driven.io/en/optimistic_concurrency_for_pessimistic_times/?utm_source=chatgpt.com">Optimistic Concurrency — Event-Driven.io</a></li><li><a href="https://arxiv.org/abs/2104.01146?utm_source=chatgpt.com">Schema Evolution in Event-Sourced Systems — arXiv</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fec25d7fdf9a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Connect Atlassian MCP Server to Claude Code]]></title>
            <link>https://medium.com/@milad.jafary/how-to-connect-atlassian-mcp-server-to-claude-code-5c22d47d5cd5?source=rss-939c28655685------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c22d47d5cd5</guid>
            <category><![CDATA[atlassian]]></category>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[clauds]]></category>
            <dc:creator><![CDATA[Milad Jafary]]></dc:creator>
            <pubDate>Fri, 03 Oct 2025 09:21:25 GMT</pubDate>
            <atom:updated>2025-10-03T09:21:25.682Z</atom:updated>
            <content:encoded><![CDATA[<h4>A Simple Guide to Integrating Claude Code with Jira and Confluence</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*tbPZBOKCA8PeSjlMUTKC-g.png" /></figure><p>AI assistants are becoming essential in the developer workflow. Recently, I connected Claude Code to the Atlassian MCP (Model Context Protocol) server, which gave me superpowers:</p><ul><li>Get context-aware help while coding</li><li>Automatically generate Confluence pages (goodbye boring documentation)</li></ul><p>In this post, I’ll walk you step by step through the setup.</p><h3>Prerequisites</h3><p>Before you start, make sure you have:</p><ol><li><strong>Node.js</strong> installed on your system</li><li><strong>Claude Code</strong> installed: npm install -g @anthropic-ai/claude-code</li><li><strong>Atlassian account</strong> with access to Jira and/or Confluence</li></ol><h3>Installation</h3><h4>Add the Atlassian MCP Server</h4><p>Run this command in your terminal:</p><pre>claude mcp add --transport sse atlassian https://mcp.atlassian.com/v1/sse</pre><p>This command installs the Atlassian MCP server and makes it available <strong>everywhere on your local machine</strong> (user scope by default).</p><h4>Verify Installation</h4><p>Start Claude Code:</p><pre>claude</pre><p>Inside Claude Code, type:</p><pre>/mcp</pre><p>You should see “atlassian” listed as an available MCP server.</p><h4>Authenticate with Atlassian</h4><ol><li>Claude will prompt you with an authentication URL</li><li>Open the URL in your browser</li><li>Log in to your Atlassian account</li><li>Grant access to Jira and Confluence</li><li>Return to Claude Code — you’re now connected!</li></ol><h4>Test the Connection</h4><p>After executing claude on your terminal, try these commands to verify everything works:</p><p>Show me my open Jira tickets</p><p>Search Confluence for Payment Platform documentation</p><h3>MCP Installation Scopes</h3><p>MCP servers can be configured at three different scope levels, each serving distinct purposes for managing server accessibility and sharing.</p><h4>User Scope (Default)</h4><p><strong>When to use:</strong> Personal utilities needed across multiple projects, or when you want the MCP server available everywhere on your machine.</p><p><strong>How to install:</strong></p><pre>claude mcp add --transport sse atlassian https://mcp.atlassian.com/v1/sse</pre><h4>Local Scope</h4><p><strong>When to use:</strong> Project-specific configurations, experimental setups, or sensitive credentials that shouldn’t be shared.</p><p><strong>How to install:</strong></p><pre>cd /path/to/your/project<br>claude mcp add --transport sse atlassian https://mcp.atlassian.com/v1/sse --scope local</pre><h4>Project Scope</h4><p><strong>When to use:</strong> Project-scoped servers make team collaboration easier by keeping their settings in a <strong>.mcp.json</strong> file at the root of your project. This file is meant to be committed to version control so everyone on the team can share the same MCP tools and services. When you add a project-scoped server, Claude Code automatically creates or updates this file with the required configuration.</p><p><strong>How to install:</strong></p><pre>cd /path/to/your/project<br>claude mcp add --transport sse atlassian https://mcp.atlassian.com/v1/sse --scope project</pre><h3>Scope Precedence</h3><p>When MCP servers with the same name exist at multiple scopes, Claude Code follows this priority order:</p><ol><li><strong>Local scope</strong> (highest priority)</li><li><strong>Project scope</strong></li><li><strong>User scope</strong> (lowest priority)</li></ol><p>This means personal configurations can override shared ones when needed.</p><h3>Managing MCP Servers</h3><h4>List Configured Servers</h4><pre>claude mcp list</pre><p>This shows all MCP servers and their scope (user, local, or project).</p><h4>Remove a Server</h4><pre># Remove from user scope<br>claude mcp remove atlassian<br><br># Remove from local scope (run in project directory)<br>claude mcp remove atlassian --scope local<br><br># Remove from project scope (run in project directory)<br>claude mcp remove atlassian --scope project</pre><h3>Conclusion</h3><p>Connecting the Atlassian MCP server to Claude Code streamlines your development workflow by bringing Jira and Confluence data directly into your terminal. With a single command, you can eliminate context switching and access project information, tickets, and documentation without leaving your coding environment.</p><h3>Related content</h3><ul><li><a href="https://docs.claude.com/en/docs/claude-code/mcp">https://docs.claude.com/en/docs/claude-code/mcp</a></li><li><a href="https://docs.claude.com/en/docs/claude-code/mcp#mcp-installation-scopes">https://docs.claude.com/en/docs/claude-code/mcp#mcp-installation-scopes</a></li><li><a href="https://support.atlassian.com/rovo/docs/getting-started-with-the-atlassian-remote-mcp-server/">https://support.atlassian.com/rovo/docs/getting-started-with-the-atlassian-remote-mcp-server/</a></li><li><a href="https://modelcontextprotocol.io/">https://modelcontextprotocol.io/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c22d47d5cd5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>