Free · Daily brief + weekly playbookDaily 60-sec AI Voice Brief + Weekly Production AI Agent PlaybookGet the brief →
ReleaseInsight · On RadarMarkTechPost→ original

How to Build an MCP-Style System for Intelligent AI Agents

We built a complete MCP-style agent system with tool discovery, routing and execution. It includes web search, Python execution and dataset loading, and follows a discover → route → plan → execute flow. The system relies on a modular tool server and on dynamic context injection: at each stage the agent receives only what it needs at that moment.

AI-processed from MarkTechPost; edited by Hamidun News
How to Build an MCP-Style System for Intelligent AI Agents
Source: MarkTechPost. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceMarkTechPost ↗
Editor-in-Chief
Tool discoverythe agent scans the server and finds out which capabilities are available
Routingthe system decides which tool suits the task
Planningthe agent draws up a step-by-step execution plan

The MarkTechPost developers have put together a complete guide to building an MCP-style AI agent system. It is not just an agent but an ecosystem with tool discovery, smart routing, planning and task execution. The result works as a single mechanism in which each part handles its own stage.

A modular tool server

At the heart of the system sits a modular server that gives the agent everything it needs. The server acts as a hub through which the agent accesses tools. Each tool is described through structured definitions, so the agent knows what it can do, which parameters to pass and what result to expect.

The system supports several types of tools. Web search lets the agent look up information on the internet. Local retrieval works with documents and knowledge bases on the server. Dataset loading helps with data for analysis. Python execution makes it possible to run code directly on the server. All tools share the same interface, which lets the agent switch between them without retraining.

Four stages of operation

The process follows a strict four-stage scheme:

  • Tool discovery: the agent scans the server and finds out which capabilities are available
  • Routing: the system decides which tool suits the task
  • Planning: the agent draws up a step-by-step execution plan
  • Execution: the plan is carried out with checks on the results

The first stage is tool discovery. The agent scans the server and works out which capabilities are available to it. In the second stage, routing, the system analyzes the task and picks a suitable tool or combination of tools. The third stage is planning: the agent builds a step-by-step plan, because most tasks require several steps. The fourth stage is execution, in which the agent carries out the plan and checks the results of each step.

Dynamic context injection

The key idea is not to pass all the context at once. Instead, at each stage only what is needed right now is added to the agent's memory. During tool discovery, the agent sees only the list of available capabilities. During planning, it sees the goal and the tools, but not the full context of the whole system. During execution, it sees the results of the previous steps.

This approach reduces the load on the model and makes its decisions more focused. The agent is not distracted by information it does not need right now. Results improve, and running costs fall.

What this means

An MCP-style architecture makes it possible to build agents that work more efficiently and reliably. It is not just a new tool but a new class of systems in which each component handles its own part of the work. A new tool can be added simply by defining its structure, and the system will automatically understand when to use it.

Story

Key Questions Answered

What are the key details on A modular tool server?

At the heart of the system sits a modular server that gives the agent everything it needs. The server acts as a hub through which the agent accesses tools. Each tool is described through structured definitions, so the agent knows what it can do, which parameters to pass and what result to expect. The system supports several types of tools. Web search lets the agent look up information on the internet. Local retrieval works with documents and knowledge bases on the server.

What are the key details on Four stages of operation?

The process follows a strict four-stage scheme: Tool discovery: the agent scans the server and finds out which capabilities are available Routing: the system decides which tool suits the task Planning: the agent draws up a step-by-step execution plan Execution: the plan is carried out with checks on the results The first stage is tool discovery. The agent scans the server and works out which capabilities are available to it.

What are the key details on Dynamic context injection?

The key idea is not to pass all the context at once. Instead, at each stage only what is needed right now is added to the agent's memory. During tool discovery, the agent sees only the list of available capabilities. During planning, it sees the goal and the tools, but not the full context of the whole system. During execution, it sees the results of the previous steps. This approach reduces the load on the model and makes its decisions more focused.

ZK
Zhemal Khamidun — Head of AI at Alpina Digital · MIPT (academic supervisor of the Tech Entrepreneurship department). Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Free · Waitlist · Hermes + DeepSeek

Free 2-Day Vibecoding & AI Agents Intensive

Day 1: the autonomous Hermes + DeepSeek AI agent — vibecoding and development on par with Claude Code / Codex / Gemini. Led by Jemal Hamidun, Head of AI at Alpina Digital and academic supervisor at MIPT. Right after you register with our bot Nika: the recording + 11 materials from the previous intensive.

Join the waitlist →Nomad AI Workspace
Jemal Hamidun

Editor-in-chief · Cite this analysis

Jemal Hamidun

Head of AI at Alpina Digital · Academic Supervisor of the Tech Entrepreneurship Department at MIPT

Head of AI & CPO of AlpinaGPT at Alpina Digital, Academic Lead of Tech Entrepreneurship at MIPT. Founder of Hamidun News and Vibe Academy.

Ready-to-paste citation for journalists, blogs and Telegram channels

Source: Hamidun News — How to Build an MCP-Style System for Intelligent AI Agents https://news.hamidun.com/en/news/9324/how-to-build-an-mcp-style-system-for-intelligent-ai-agents

What do you think?
Loading comments…