<?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: Harbeahorlar Berry</title>
    <description>The latest articles on DEV Community by Harbeahorlar Berry (@harbeahorlar_berry_e03970).</description>
    <link>https://dev.to/harbeahorlar_berry_e03970</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%2F3597037%2Fe9d22302-3205-42ef-933c-3529de389aeb.png</url>
      <title>DEV Community: Harbeahorlar Berry</title>
      <link>https://dev.to/harbeahorlar_berry_e03970</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/harbeahorlar_berry_e03970"/>
    <language>en</language>
    <item>
      <title>🔧 Building TaskBuddy — My Mastra A2A Agent for Task Management</title>
      <dc:creator>Harbeahorlar Berry</dc:creator>
      <pubDate>Wed, 05 Nov 2025 10:59:48 +0000</pubDate>
      <link>https://dev.to/harbeahorlar_berry_e03970/building-taskbuddy-my-mastra-a2a-agent-for-task-management-2kpk</link>
      <guid>https://dev.to/harbeahorlar_berry_e03970/building-taskbuddy-my-mastra-a2a-agent-for-task-management-2kpk</guid>
      <description>&lt;p&gt;🔧 Building TaskBuddy — My Mastra A2A Agent for Task Management&lt;/p&gt;

&lt;p&gt;By Harbeahorlar Berry • nov 2025 • &lt;/p&gt;

&lt;p&gt;Introduction&lt;/p&gt;

&lt;p&gt;In today’s world of workflow automation and intelligent assistants, agents that can communicate and work together — AKA Agent-to-Agent (A2A) — are the next frontier. I built TaskBuddy, a task-management agent using Mastra, and deployed it with a public A2A endpoint. This post shows how I integrated Mastra’s A2A protocol, created tools for tasks, and exposed a JSON-RPC endpoint ready for Telex-style workflows.&lt;/p&gt;

&lt;p&gt;What Is Mastra A2A?&lt;/p&gt;

&lt;p&gt;Mastra’s A2A implementation standardizes how agents interact:&lt;/p&gt;

&lt;p&gt;Uses JSON-RPC 2.0 format&lt;/p&gt;

&lt;p&gt;Agents expose endpoints (e.g., /a2a/agent/:agentId)&lt;/p&gt;

&lt;p&gt;Supports messages, tool results, artifacts and history&lt;/p&gt;

&lt;p&gt;Architecture Overview&lt;br&gt;
[ External Agent or App ]  →  POST /a2a/agent/taskBuddy&lt;br&gt;&lt;br&gt;
                           ↑&lt;br&gt;&lt;br&gt;
                        Mastra Agent&lt;br&gt;&lt;br&gt;
                           ↑&lt;br&gt;&lt;br&gt;
            Tools: create-task | list-tasks  &lt;/p&gt;

&lt;p&gt;Key components:&lt;/p&gt;

&lt;p&gt;Mastra agent: TaskBuddy&lt;/p&gt;

&lt;p&gt;Tools: Create Task &amp;amp; List Tasks&lt;/p&gt;

&lt;p&gt;Endpoint: &lt;a href="https://abundant-rhythmic-fall-f46cbeb7-10e3-48d6-a489-c34c7301e91b.mastra.cloud/a2a/agent/taskBuddy" rel="noopener noreferrer"&gt;https://abundant-rhythmic-fall-f46cbeb7-10e3-48d6-a489-c34c7301e91b.mastra.cloud/a2a/agent/taskBuddy&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Core Tools&lt;br&gt;
✅ create-task&lt;/p&gt;

&lt;p&gt;Creates a new task:&lt;br&gt;
Input: { title: string, due?: string }&lt;br&gt;
Output: { message: string, taskId: string }&lt;/p&gt;

&lt;p&gt;✅ list-tasks&lt;/p&gt;

&lt;p&gt;Lists all tasks:&lt;br&gt;
Output: { tasks: [...], message: string }&lt;/p&gt;

&lt;p&gt;Demo — Try It Now&lt;br&gt;
1️⃣ Create a task&lt;/p&gt;

&lt;p&gt;POST to /a2a/agent/taskBuddy&lt;/p&gt;

&lt;p&gt;{&lt;br&gt;
  "jsonrpc": "2.0",&lt;br&gt;
  "id": "req-1",&lt;br&gt;
  "method": "generate",&lt;br&gt;
  "params": {&lt;br&gt;
    "message": {&lt;br&gt;
      "role": "user",&lt;br&gt;
      "parts": [&lt;br&gt;
        { "kind": "text", "text": "Add task: Write blog post due Monday" }&lt;br&gt;
      ]&lt;br&gt;
    }&lt;br&gt;
  }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;2️⃣ List tasks&lt;/p&gt;

&lt;p&gt;Same endpoint with message: “Show my tasks” → returns tasks array and message.&lt;/p&gt;

&lt;p&gt;Implementation Notes&lt;/p&gt;

&lt;p&gt;Built with Node.js + Mastra&lt;/p&gt;

&lt;p&gt;Uses Google Gemini (“gemini-2.0-flash”) as backend&lt;/p&gt;

&lt;p&gt;Schema validation via Zod&lt;/p&gt;

&lt;p&gt;Stores tasks in memory (easily extended to DB)&lt;/p&gt;

&lt;p&gt;Follows clean JSON-RPC A2A spec&lt;/p&gt;

&lt;p&gt;GitHub &amp;amp; Endpoint&lt;/p&gt;

&lt;p&gt;➡ GitHub repo: &lt;a href="https://github.com/HarbeahorlarBerry/Abiola_Olatunji_stage3" rel="noopener noreferrer"&gt;https://github.com/HarbeahorlarBerry/Abiola_Olatunji_stage3&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;➡ A2A Agent URL: &lt;a href="https://abundant-rhythmic-fall-f46cbeb7-10e3-48d6-a489-c34c7301e91b.mastra.cloud/a2a/agent/taskBuddy" rel="noopener noreferrer"&gt;https://abundant-rhythmic-fall-f46cbeb7-10e3-48d6-a489-c34c7301e91b.mastra.cloud/a2a/agent/taskBuddy&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What’s Next&lt;/p&gt;

&lt;p&gt;Persist tasks to database&lt;/p&gt;

&lt;p&gt;Add delete/update tools&lt;/p&gt;

&lt;p&gt;Chain multiple agents together for workflows&lt;/p&gt;

&lt;p&gt;Build UI for agent monitoring&lt;/p&gt;

&lt;p&gt;Conclusion&lt;/p&gt;

&lt;p&gt;TaskBuddy is a simple but powerful demonstration of multi-agent workflows: tools, A2A endpoint, cloud-deployed, ready to integrate. If you’re building intelligent workflows or agent orchestration, this pattern is a strong foundation. Let’s build the future of interoperable AI together.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
