Part 5: Connecting the Agent to Your Work Apps (MCP Data Integration)

Baca dalam bahasa lain: Read in Sundanese · Read in Indonesian

Seri: Setting Up Your Own AI Assistant, Step by Step · Bagian 5 / 7← Bagian sebelumnya · Semua bagian · Bagian berikutnya →

By part four the agent had a door: a WhatsApp number and a Telegram bot answering at any hour. The trouble is, that agent still behaves like a new hire who knows plenty about the world but nothing about its own desk. Ask about this month's study schedule and it guesses. Ask it to tidy up meeting notes and it has no idea where they live.

MCP closes that gap. The name sounds technical — Model Context Protocol — but the idea is plain: one agreed way of talking between the agent and other applications, so the agent can open files, read a calendar, write to a spreadsheet, or search an archive without you coding a separate bridge for each one.

Why not wire them by hand

You can, but it costs. Every app has its own way in: one wants an access key, another wants a shared folder, a third exposes an awkward API with half-finished docs. Five apps means five bridges, and each bridge breaks on its own the day its app changes.

With MCP the glue sits outside the agent. A small program called an MCP server stands in front of one app and translates the agent's requests into real actions. Swap the app, swap the server; the agent stays as it is.

Start at your own desk

A sensible order: files first, then the calendar, then office apps. The working folder answers most everyday questions — letters, minutes, attendance sheets. Run it read-only for the first few days. You will be surprised how often the agent hunts down "that letter from last month".

The calendar comes next because the payoff is instant: the agent can answer "what meetings are coming up" without you opening an app. Spreadsheets and digital notes go last, and they are the riskiest, because there the agent is allowed to write, not just read.

One config file to rule them

Every MCP server gets registered in one config file: the server name, the command that launches it, and its secret values. Three habits save you later:

  • Secrets live in a separate file readable only by the owner, never pasted into code.
  • One server, one permission. Do not hand a single connection the whole drive just because it is convenient.
  • Name things clearly: "archive-dkm" is easier to trace than "server1".

When one server dies, the agent usually stays up and simply loses one ability. A small failure does not take everything down.

Test one at a time

Do not wire five apps and hope. Switch on one, ask something whose answer you already know, then check whether the answer really came from your files or was a tidy-sounding guess.

Good test questions are specific and checkable. "Name three files in the minutes folder" beats "what is in my folder" every time. If the answer drifts, shut that server down and stop there.

Limits worth setting

An agent that can write is an agent that can write wrong. For archives and official records, start read-only; grant write access once you trust the pattern. Keep a copy of important folders, and never point the agent at a place nobody is supposed to touch.

One more thing: say out loud that the agent can reach work data. People deserve to know.

This is the step where an agent stops being a chat partner and becomes a colleague. With the data flowing, part six adds the next piece: an agent that moves on its own schedule, without you reminding it.

tutorialai-agentmcpintegration

← Kembali ke daftar tulisan

Lebih baru → Bagian 5: Nyambungkeun Agén ka Aplikasi Gawé (Integrasi Data MCP)← Bagian 5: Menyambungkan Agen ke Aplikasi Kerja (Integrasi Data MCP)