<?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: AGI Software Solutions</title>
    <description>The latest articles on DEV Community by AGI Software Solutions (@agi_software_solutions_75).</description>
    <link>https://dev.to/agi_software_solutions_75</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%2F4254818%2F5d5bb40e-8ee8-4c5b-9adb-c2d0b8a7e0ec.png</url>
      <title>DEV Community: AGI Software Solutions</title>
      <link>https://dev.to/agi_software_solutions_75</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/agi_software_solutions_75"/>
    <language>en</language>
    <item>
      <title>The FastAPI Bottleneck Nobody Tells You About Until Production</title>
      <dc:creator>AGI Software Solutions</dc:creator>
      <pubDate>Fri, 27 Nov 2026 07:48:53 +0000</pubDate>
      <link>https://dev.to/agi_software_solutions_75/the-fastapi-bottleneck-nobody-tells-you-about-until-production-3ej</link>
      <guid>https://dev.to/agi_software_solutions_75/the-fastapi-bottleneck-nobody-tells-you-about-until-production-3ej</guid>
      <description>&lt;p&gt;Everyone benchmarks FastAPI with &lt;code&gt;wrk&lt;/code&gt; on a single endpoint that returns &lt;code&gt;{"ok": true}&lt;/code&gt; and calls it a day. Then it goes to production, traffic has real payloads and real I/O, and throughput falls off a cliff that the benchmark never showed.&lt;/p&gt;

&lt;p&gt;Three things that actually move the needle, in the order we usually find them:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Worker count isn't &lt;code&gt;2 x cores + 1&lt;/code&gt; once you have async I/O.&lt;/strong&gt; That formula is for sync WSGI workers saturating CPU. With &lt;code&gt;uvicorn&lt;/code&gt; workers running async handlers that spend most of their time awaiting a DB or an upstream call, you're often CPU-underutilized with "correct" worker counts. We've seen throughput improve 30-40% just by profiling actual CPU-busy time per request and sizing workers against &lt;em&gt;that&lt;/em&gt;, not core count.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Gunicorn + Uvicorn workers vs. plain Uvicorn: the difference shows up under load, not at idle.&lt;/strong&gt; A bare &lt;code&gt;uvicorn&lt;/code&gt; process looks identical to &lt;code&gt;gunicorn -k uvicorn.workers.UvicornWorker&lt;/code&gt; in a quick smoke test. Where it diverges is worker death/restart behavior under memory pressure and SIGTERM handling during rolling deploys — gunicorn's process management catches failure modes uvicorn alone doesn't surface until you're already paged.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. The bottleneck that actually ate our throughput wasn't FastAPI at all — it was connection pool exhaustion on the DB driver.&lt;/strong&gt; &lt;code&gt;asyncpg&lt;/code&gt;'s default pool size silently became the real concurrency ceiling, while CPU and worker metrics looked fine the whole time. If your latency graph has a hard ceiling that doesn't correlate with CPU, check your pool &lt;code&gt;max_size&lt;/code&gt; before you touch anything else.&lt;/p&gt;

&lt;p&gt;None of this shows up in a synthetic benchmark because synthetic benchmarks don't have a database. If you're chasing a req/s number, profile with your actual dependency graph in the loop, not a mocked handler.&lt;/p&gt;

&lt;p&gt;We wrote up the full tuning process — including the exact pool-size math and the gunicorn config that stopped our rolling deploys from dropping requests — in &lt;a href="https://agisoftwaresolutions.com/blogs/fastapi-50k-rps.html" rel="noopener noreferrer"&gt;a deeper breakdown of the worker-tuning math&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Our team at AGI Software Solutions (&lt;a href="https://agisoftwaresolutions.com/" rel="noopener noreferrer"&gt;agisoftwaresolutions.com&lt;/a&gt;) builds production AI and backend systems.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>fastapi</category>
      <category>python</category>
      <category>backend</category>
      <category>webdev</category>
    </item>
    <item>
      <title>From Demo to Production: 7 Hard Lessons for Shipping AI Agents That Actually Work</title>
      <dc:creator>AGI Software Solutions</dc:creator>
      <pubDate>Thu, 26 Nov 2026 09:44:40 +0000</pubDate>
      <link>https://dev.to/agi_software_solutions_75/from-demo-to-production-7-hard-lessons-for-shipping-ai-agents-that-actually-work-4jpo</link>
      <guid>https://dev.to/agi_software_solutions_75/from-demo-to-production-7-hard-lessons-for-shipping-ai-agents-that-actually-work-4jpo</guid>
      <description>&lt;p&gt;Building an AI agent demo takes a weekend. Getting one to run reliably for real customers, on real data, every day, is a different job.&lt;/p&gt;

&lt;p&gt;Plenty of teams have a slick prototype that books meetings, answers support tickets or reads invoices. Then it hits production. It makes things up, a tool call fails without anyone noticing, a three-second pause kills a phone call, and nobody can say whether last week's prompt change helped or hurt.&lt;/p&gt;

&lt;p&gt;This post covers the engineering habits that separate agents that ship from agents that stay stuck in pilot. It's written for developers, tech leads and founders who are deciding whether (and how) to put AI agents to work in their business.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Start with the workflow, not the model
&lt;/h2&gt;

&lt;p&gt;The most common mistake is choosing the tech first ("we need a GPT-powered agent") and looking for a problem second. Start from the other end:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Find a high-volume, low-differentiation step.&lt;/strong&gt; Good candidates are repetitive, rules-heavy and expensive in people's time: first-touch lead qualification, document intake, support triage, status follow-ups.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write down what "done" means.&lt;/strong&gt; "Handle support" is a wish. "Classify inbound tickets into 8 categories and draft a reply for the 3 most common ones" is something you can build.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the data before the model.&lt;/strong&gt; If the information the agent needs is scattered across inboxes and spreadsheets, fix that first.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A simple filter that works well: score each candidate on &lt;strong&gt;value&lt;/strong&gt;, &lt;strong&gt;feasibility&lt;/strong&gt; and &lt;strong&gt;data availability&lt;/strong&gt;, then build only the top one or two. If you're working through this across several departments, a structured &lt;a href="https://agisoftwaresolutions.com/ai-strategy.html" rel="noopener noreferrer"&gt;AI strategy and roadmap process&lt;/a&gt; helps you set priorities and costs before anyone writes code.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Give the agent tools, not just a prompt
&lt;/h2&gt;

&lt;p&gt;An LLM on its own can only produce text. An &lt;em&gt;agent&lt;/em&gt; becomes useful when it can &lt;strong&gt;act&lt;/strong&gt;: look up a CRM record, check a calendar, create a ticket, query a database.&lt;/p&gt;

&lt;p&gt;Some practical tips:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Keep tools narrow and well-typed.&lt;/strong&gt; &lt;code&gt;get_customer_by_email(email: str)&lt;/code&gt; is safer and easier to test than &lt;code&gt;run_sql(query: str)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Return structured errors.&lt;/strong&gt; Return &lt;code&gt;{"error": "customer_not_found"}&lt;/code&gt;, not a stack trace, so the model can recover gracefully.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use a standard interface where you can.&lt;/strong&gt; The &lt;strong&gt;Model Context Protocol (MCP)&lt;/strong&gt; has become a common way to expose business systems to LLM clients and agents through one consistent layer, with permissions and audit trails in one place.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# A narrow, typed tool beats a generic "do anything" tool&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pydantic&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;BaseModel&lt;/span&gt;

&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;BookMeeting&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;BaseModel&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;lead_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;
    &lt;span class="n"&gt;start_iso&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;   &lt;span class="c1"&gt;# e.g. "2026-12-01T10:30:00+05:30"&lt;/span&gt;
    &lt;span class="n"&gt;duration_min&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;book_meeting&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;BookMeeting&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;duration_min&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"duration_too_long"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="c1"&gt;# ...call calendar API, write back to CRM...&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"booked"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"lead_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lead_id&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Build evals before you build features
&lt;/h2&gt;

&lt;p&gt;If you can't measure it, you can't improve it, and you definitely can't prove it to leadership.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Collect 50–200 real examples&lt;/strong&gt; of inputs and expected outcomes before you tune any prompts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test each layer separately:&lt;/strong&gt; retrieval quality (did we fetch the right document?), tool-call accuracy (right tool, right arguments?) and final answer quality.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run evals in CI.&lt;/strong&gt; Treat every prompt or model change like a code change, and don't merge it if the scores drop.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This one habit stops the most common production failure: a "small prompt tweak" that quietly breaks a different workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Ground answers in your own data with RAG
&lt;/h2&gt;

&lt;p&gt;Hallucinations are the biggest reason businesses lose trust in AI. &lt;strong&gt;Retrieval-augmented generation (RAG)&lt;/strong&gt; lowers that risk by making the model answer from &lt;em&gt;your&lt;/em&gt; documents instead of from memory.&lt;/p&gt;

&lt;p&gt;What a production-grade RAG system needs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Citations&lt;/strong&gt; in every answer, so users can check the source.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Permission-aware retrieval&lt;/strong&gt;, so a sales rep can't surface HR documents just by asking.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Measured retrieval quality.&lt;/strong&gt; Track whether the right chunks come back, not just whether the final answer "sounds right".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A clear "I don't know" path&lt;/strong&gt; for when retrieval comes back empty.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. Design for latency, especially with voice
&lt;/h2&gt;

&lt;p&gt;Text users will wait a couple of seconds. Callers on a phone line won't. Voice agents are hard because the whole loop (speech-to-text → reasoning → text-to-speech) has to feel like talking to a person:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Stream everything:&lt;/strong&gt; partial transcripts in, partial audio out.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Handle interruptions (barge-in).&lt;/strong&gt; People talk over each other, so the agent has to stop speaking and listen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep the reasoning step lean.&lt;/strong&gt; Use smaller prompts, cache context and pre-fetch CRM data when the call connects.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For a real-world example, this &lt;a href="https://agisoftwaresolutions.com/case-studies/voice-calling-agent.html" rel="noopener noreferrer"&gt;outbound voice calling agent case study&lt;/a&gt; walks through a production stack built on Twilio, Deepgram streaming speech-to-text, ElevenLabs voice, GPT-4o and a FastAPI/PostgreSQL backend. The agent changes its script based on the objection it hears, books meetings during the call and gives supervisors a live view where they can whisper to it or take over.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Put a human in the loop where the risk is
&lt;/h2&gt;

&lt;p&gt;"Fully autonomous" makes a good headline but is often bad engineering. Match the oversight to the risk:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Risk level&lt;/th&gt;
&lt;th&gt;Example action&lt;/th&gt;
&lt;th&gt;Oversight&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;td&gt;Summarising a ticket&lt;/td&gt;
&lt;td&gt;Fully automated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;Sending a templated follow-up email&lt;/td&gt;
&lt;td&gt;Sampled review&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;td&gt;Issuing a refund, changing a contract&lt;/td&gt;
&lt;td&gt;Human approval checkpoint&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Also build in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Compliance handling&lt;/strong&gt; from the start (opt-out detection, consent, data-retention rules), not as an afterthought.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Audit logs&lt;/strong&gt; for every tool call the agent makes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A kill switch.&lt;/strong&gt; Someone non-technical should be able to pause the agent.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  7. Plan for day 2: monitoring, cost and handover
&lt;/h2&gt;

&lt;p&gt;Launch day is the start, not the finish line. Models change, data drifts and usage grows.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Monitor outcomes, not just uptime:&lt;/strong&gt; task success rate, escalation rate, cost per task and user feedback.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Track cost per successful outcome.&lt;/strong&gt; A cheaper model that fails more often can end up costing more.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Document and hand over.&lt;/strong&gt; Your in-house team should understand the system well enough to change it. Pairing your developers with experienced engineers during the build, as in an &lt;a href="https://agisoftwaresolutions.com/ai-transformation.html" rel="noopener noreferrer"&gt;embedded AI transformation model&lt;/a&gt;, is one way to make sure the knowledge stays with you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Train the people who use it.&lt;/strong&gt; Adoption fails when staff don't know what the agent is good at or where it breaks. Short, practical &lt;a href="https://agisoftwaresolutions.com/ai-training.html" rel="noopener noreferrer"&gt;AI training workshops&lt;/a&gt; do more for adoption than another feature.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  A quick production-readiness checklist
&lt;/h2&gt;

&lt;p&gt;Before you call your AI agent "production-ready", check that you can answer &lt;strong&gt;yes&lt;/strong&gt; to each of these:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[ ] The use case has a written, measurable definition of success&lt;/li&gt;
&lt;li&gt;[ ] Tools are narrow, typed and return structured errors&lt;/li&gt;
&lt;li&gt;[ ] An eval suite runs on every prompt or model change&lt;/li&gt;
&lt;li&gt;[ ] Answers are grounded in your data, with citations&lt;/li&gt;
&lt;li&gt;[ ] Latency fits the channel (chat vs. voice)&lt;/li&gt;
&lt;li&gt;[ ] High-risk actions require human approval&lt;/li&gt;
&lt;li&gt;[ ] Every tool call is logged and auditable&lt;/li&gt;
&lt;li&gt;[ ] Cost per successful task is tracked&lt;/li&gt;
&lt;li&gt;[ ] Your team can maintain and extend the system&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;AI agents are no longer experimental, but reliable agents still come from ordinary engineering discipline: clear scope, good tools, solid evals, grounded data and sensible human oversight. The model is just one part of the system.&lt;/p&gt;

&lt;p&gt;If you want to see what production agents look like across different industries (voice calling, visual quality inspection, marketplace support and warehouse forecasting), the &lt;a href="https://agisoftwaresolutions.com/case-studies.html" rel="noopener noreferrer"&gt;AGI Software Solutions case studies&lt;/a&gt; are a useful set of examples. To go deeper on building agents, chatbots, RAG systems, MCP servers or computer-vision pipelines, see their &lt;a href="https://agisoftwaresolutions.com/ai-development.html" rel="noopener noreferrer"&gt;custom AI development services&lt;/a&gt;. You can also explore &lt;a href="https://agisoftwaresolutions.com/" rel="noopener noreferrer"&gt;AGI Software Solutions, an AI development company&lt;/a&gt;, to learn how they help teams find where AI pays off.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What's the biggest blocker you've hit getting an AI agent into production?&lt;/strong&gt; Share it in the comments. I'd like to compare notes. 👇&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I've worked with AGI Software Solutions, whose work is referenced in this article.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>automation</category>
      <category>python</category>
    </item>
    <item>
      <title>Connecting ERPNext to an AI Agent: What an MCP Server Actually Needs to Get Right</title>
      <dc:creator>AGI Software Solutions</dc:creator>
      <pubDate>Thu, 26 Nov 2026 08:32:42 +0000</pubDate>
      <link>https://dev.to/agi_software_solutions_75/connecting-erpnext-to-an-ai-agent-what-an-mcp-server-actually-needs-to-get-right-42ln</link>
      <guid>https://dev.to/agi_software_solutions_75/connecting-erpnext-to-an-ai-agent-what-an-mcp-server-actually-needs-to-get-right-42ln</guid>
      <description>&lt;p&gt;Model Context Protocol (MCP) servers are becoming the standard way to connect AI assistants like Claude or ChatGPT to real business systems — and ERPNext is a natural candidate, since so much of a company's operational truth (orders, stock, customers, invoices) already lives there.&lt;/p&gt;

&lt;p&gt;The part that's easy to get wrong isn't the protocol itself. It's permissions.&lt;/p&gt;

&lt;p&gt;A naive ERPNext MCP integration gives an AI assistant the same access as an admin user — read and write across every doctype. That's a fast way to ship a demo and a slow way to cause an incident, because the moment the assistant can act (not just answer questions), every mistake it makes is a mistake made in your live ERP data.&lt;/p&gt;

&lt;p&gt;The three things we've found actually matter when building these integrations in production:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Read vs. write is a different trust boundary, not a toggle&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;An MCP tool that reads a customer's order history is low-risk. A tool that creates a sales invoice or triggers a payment is not — and it shouldn't live behind the same permission check. We scope these as genuinely separate tool definitions with separate approval paths, not a single "erpnext_action" tool with a parameter for what kind of action.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The MCP server should authenticate as a real ERPNext user, not a service account with blanket access&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;ERPNext's own role-based permissions are the right place to enforce "can this assistant touch payroll data" — re-implementing that logic in the MCP layer is how permission bugs get introduced. The server should sit between the AI client and the Frappe REST API, passing through a scoped user's actual role permissions rather than acting as a superuser proxy.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Evals matter more here than in a typical chatbot&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When an assistant can only answer questions, a wrong answer is a mildly bad experience. When it can act on ERPNext — issue a refund, adjust stock, approve a purchase order — you need a test suite that runs the agent through real scenarios before launch and re-runs on every change, the same discipline you'd apply to any system with write access to financial data.&lt;/p&gt;

&lt;p&gt;None of this is unique to ERPNext — it's the general shape of "connect an AI agent to a system of record" — but ERPNext's specific role/permission model (and the fact that most installs have years of custom doctypes layered on top) makes the read/write distinction especially easy to blur if you're not deliberate about it.&lt;/p&gt;

&lt;p&gt;We've built several of these integrations for manufacturing and trading businesses moving off Tally and spreadsheets, and the permission design is consistently where the real engineering effort goes — not the MCP boilerplate itself.&lt;/p&gt;

&lt;p&gt;Written by the team at AGI Software Solutions, an AI development studio building AI agents, voice AI, and ERPNext/CRM integrations.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>mcp</category>
      <category>security</category>
    </item>
  </channel>
</rss>
