惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

有赞技术团队
有赞技术团队
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
Google DeepMind News
Google DeepMind News
G
Google Developers Blog
N
News | PayPal Newsroom
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Apple Machine Learning Research
Apple Machine Learning Research
SecWiki News
SecWiki News
L
LINUX DO - 最新话题
Schneier on Security
Schneier on Security
Y
Y Combinator Blog
小众软件
小众软件
A
Arctic Wolf
博客园 - 【当耐特】
Google Online Security Blog
Google Online Security Blog
P
Palo Alto Networks Blog
T
The Blog of Author Tim Ferriss
Martin Fowler
Martin Fowler
云风的 BLOG
云风的 BLOG
C
Cybersecurity and Infrastructure Security Agency CISA
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Simon Willison's Weblog
Simon Willison's Weblog
S
Securelist
N
News and Events Feed by Topic
腾讯CDC
The Last Watchdog
The Last Watchdog
Google DeepMind News
Google DeepMind News
The GitHub Blog
The GitHub Blog
T
Tor Project blog
Hugging Face - Blog
Hugging Face - Blog
NISL@THU
NISL@THU
D
DataBreaches.Net
雷峰网
雷峰网
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
Security Archives - TechRepublic
Security Archives - TechRepublic
MongoDB | Blog
MongoDB | Blog
AWS News Blog
AWS News Blog
Engineering at Meta
Engineering at Meta
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Privacy International News Feed
C
CERT Recently Published Vulnerability Notes
T
The Exploit Database - CXSecurity.com
F
Full Disclosure
H
Help Net Security
爱范儿
爱范儿
K
Kaspersky official blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
The Hidden Layer Behind Every Smart AI App: RAG, MCP, and Agentic Systems
Prasun Chakraborty · 2026-06-21 · via DEV Community

If you've spent any time with ChatGPT, Gemini, or Claude, you already know they're impressive. Ask them to explain a concept, debug your code, or draft an email, they do an excelent job. But the moment you try to build something real with them say a customer support bot that knows your product, an internal assistant that understands your business, a tool that reasons over your company's data, there you hit a wall.
The problem isn't intelligence. It's access.
Out of the box, these models know nothing about you. Not your database, not your documentation, not your users, not your business logic. Their knowledge ends at their training cutoff and the boundaries of whatever tools their platform has plugged in. That gap between what LLMs can do in a demo and what they need to do in production is exactly what this post is about.
By the end, you'll have a clear mental model for three things that close that gap: RAG which gives your AI access to your data; MCP which gives it the ability to use tools and act on the world; and agentic architecture, which ties them together into a system that doesn't just answer questions but gets things done. You won't write a line of code today, but you'll walk away thinking like someone who can build this.

What Is RAG? Understanding Retrieval-Augmented Generation

So how do we give an LLM access to your data? The first technique is RAG Retrieval Augmented Generation.
Before the model answers, your system retrieves the most relevant information from your own data sources such as documents, databases, PDFs, knowledge bases, whatever you have and augments the model's prompt with that context. The model then generates a response grounded in what you gave it, not just what it was trained on.
Think of it like this: a brilliant student with open book exam. They're not rewriting everything they know from memory but they're also flipping to the updated pages for answering relatively. That's RAG.
Let's take an example. A user asks your support bot: "What's your refund policy?" Without RAG, the LLM has no idea because your policy was never in its training data. With RAG, your system searches your policy documents, pulls the relevant section, injects it into the prompt, and the model answers accurately. Same model. Completely different result.
One thing to note here and the one fact that people confuses most is RAG doesn't retrain the model on your data. The model's weights don't change. What changes is what you put in front of it at the moment it answers. You're not teaching it your data permanently just you're handing it the right notes, every single time, right before it responds.

Introduction to MCP. How It Complements RAG

RAG solves the memory problem. But what if your AI needs to act like to check a live exchange rate, query a real time inventory, trigger an external service? Just knowing your documents isn't enough for that. You need a different layer entirely.
That's MCP Model Context Protocol, an open standard introduced by Anthropic that gives AI models a structured way to connect to the outside world: external APIs, live databases, file systems, third party services. If RAG is the library your AI can read, MCP is the phone it can pick up and make calls with.
Here's how it works in practice. Your application exposes a set of capabilities through an MCP server with functions like get_weather(), fetch_exchange_rate(), or search_inventory(). Each capability has a name and a description written in plain language. When a user sends a query, the LLM reads those descriptions, reasons about what it needs and requests the right one. The MCP server executes it, returns the result and the model incorporates that live data into its response.
The model never directly touches your database or API keys, MCP sits between them. Handling the execution, enforcing the boundaries and most importantly keeping the AI layer clean and the data layer secure.
You've already seen this pattern at work. Cursor connecting to Figma to read your actual component tree. GitHub Copilot understanding your specific repository rather than guessing from generic patterns. Gemini surfacing live search results mid conversation. In every case, there's a coordination layer doing exactly what MCP formalizes: bridging the gap between what the model knows and what the world currently holds.
You can think MCP as the USB-C of AI integrations. Before a universal standard existed, every AI application had to build custom, one off connections to every external system. With MCP, you build one server per capability following the protocol and any compatible model can plug straight into it.

How MCP Server Actually Works

Understanding MCP is one thing but also let's trace what you actually build and what happens when it runs.
Every MCP server starts with registering your capabilities. You define functions like get_weather(), fetch_price(), search_database() each with a name and a plain language description the LLM can read to understand what it does. Those descriptions matter more than you'd expect because they're how the model decides which capability to invoke for a given query.
Next, you set up a transport layer that is typically an HTTP endpoint that serves as the communication channel between the LLM and your server. This is what makes the whole system work: a standardized, secure interface the model can call without ever touching your underlying infrastructure directly.
Then comes the live loop. When a user submits a query, here's what actually happens:

The query reaches the LLM along with the list of available capabilities
The model reasons over both, identifies what it needs, and fires a structured request to your MCP server
Your server receives it, executes the relevant logic — an API call, a database query, whatever the capability does — and returns a structured response in the format the LLM expects
The model incorporates that result and generates a final, grounded answer

MCP

If the server doesn't have a relevant capability for the query, the model says so with no hallucination and no guessing.
The separation here is intentional. The LLM decides what to call. Your MCP server decides how to execute it.

MCP Architecture: How It Fits Into a Real Application

Now that you understand how MCP works in isolation, let's place it inside a real application, because knowing the mechanism is one thing but knowing where it lives in your stack is what lets you actually build with it.

AI-Fullstack

The frontend is straightforward React, Angular, Vue whatever you're working with. The user types a query, it travels to your backend. Nothing unusual yet.
Your backend is where things get interesting. This is where your MCP server lives but not as a separate deployed service you have to manage independently. Often as a layer embedded within your existing backend, whether that's Node.js/Express, Python, Laravel, or Spring Boot. Your capabilities like get_weather(), get_orders(), search_knowledge_base() are defined here, sitting alongside your regular business logic, backed by whatever data sources your application already uses.
When a query arrives, your backend doesn't simply forward it to the LLM. It packages the query together with the full list of available capabilities and sends both to the model. This is a subtle but important detail: the LLM needs to know what it can reach for before it starts reasoning and not after. Think of it as handing someone both the question and the toolkit simultaneously, rather than making them ask for tools one by one.
The LLM reads the query, scans the available capabilities, and identifies what it needs. It fires a structured request back to your MCP layer: "Execute get_weather() with region = Mumbai." Your backend runs the function, hits the API, queries the database, reads the file and returns the result in a structured format the model can consume. The model incorporates that live data into its reasoning and generates a final, grounded response.
This back and forth between the LLM and your MCP layer isn't always a single round trip. For complex queries, the model might call multiple capabilities in sequence, retrieving an order first, then fetching the live shipping status, then checking the refund policy before it has everything it needs to answer well. That's the loop working as designed.
Once the model is satisfied, the final response travels back through your backend to the frontend and gets rendered for the user. From the user's perspective, they asked a question and got an accurate answer. Under the hood, an entire orchestration cycle ran in seconds.
What makes this architecture robust is the strict separation of responsibilities. The frontend owns the user experience. The backend owns the capabilities and the data layer. The LLM owns the reasoning. None of these layers bleeds into the others, which means you can swap out the model, add new capabilities, or change your data sources without rebuilding everything around it. The MCP layer is the contract that keeps them decoupled.

The Evolution: From Chatbots to Agentic Systems

You now have all the pieces. Let's put them together and arrive at what we've actually been building toward.
Take a query like: "Compare my Q1 sales report with today's live exchange rates." A raw LLM can't touch this because it has no access to your data and no way to fetch live rates. But with RAG and MCP working as a team, the picture changes completely. RAG retrieves the Q1 sales data from your stored documents. MCP calls an external exchange rate API for today's figures. Both results are combined into a single context and handed to the LLM simultaneously. The model doesn't stitch together two separate answers but it reasons over a unified picture drawn from two fundamentally different sources, and returns one coherent, accurate response.
That combination of stored knowledge plus live capability is what closes the gap and something else happens. The application stops being a chatbot and becomes something qualitatively different: an agentic system.
Here's what that actually means. A standard LLM interaction is a single turn system you ask, it answers, from whatever it already knows. An agentic system works differently. It breaks complex queries into sub problems. It decides on its own which capability to invoke and when. It retrieves from your documents when it needs context and calls a live API when it needs current data without you specifying the steps. It maintains memory across the conversation, building on what was said earlier rather than treating each message in isolation. And critically, it doesn't stop after one action. It loops, calling capabilities in sequence, until it has everything it needs to answer well.
The best analogy is JARVIS from Iron Man. JARVIS doesn't wait to be told exactly what to do. It monitors, retrieves, acts, and reports back. You state the goal, it figures out the path. That's the shift from a chatbot to an agent, from answering to getting things done.

JARVIS

You've already seen this in production. ChatGPT browsing the web mid conversation, retrieving live information and reasoning over it before responding. GitHub Copilot reading your actual repository context to give suggestions specific to your codebase. Gemini surfacing live search results and executing multi step reasoning in a single response. These aren't tricks, they're the same architecture we've been building up to: retrieval plus live capabilities plus autonomous reasoning, running together in a loop.
This is the hidden layer behind every smart AI app. Not a bigger model or a better prompt a deliberate architecture that gives the model memory, reach, and the ability to act. RAG for what you know. MCP for what's happening now. And an agentic loop that ties them together into something that doesn't just answer your questions it works toward solving them.
That's what you're going to build.