Exposing Agents as MCP servers with mcp-agent: Sarmad Qadri

Introduction to MCP and Agents 00:00

  • Sarmad Qadri discusses the evolution of agent development and the significance of the Model Context Protocol (MCP) in simplifying agent design.
  • He predicts that 2025 will mark a significant year for agents in production, moving beyond proof of concept.

Agent Tech Stack in 2025 03:18

  • There are three key updates transforming agent development: better models, the introduction of MCP, and simpler architectures.
  • Enhanced LLMs and reasoning models allow for more streamlined development with less complexity.
  • MCP serves as a standardized interface for connecting LLMs to various tools and resources, becoming a common standard among major tech companies.

Agent Patterns and Architectures 06:02

  • Anthropic's blog post on effective agents highlights various successful patterns for deploying agents.
  • The concept of augmented LLMs involves integrating LLMs with access to tools and resources, enhancing their functionality.
  • More complex systems can be constructed using orchestrators to manage tasks and evaluate agent responses.

Building the MCP Agent 08:13

  • Sarmad introduces the MCP agent library built to implement effective agent patterns and align with MCP standards.
  • He emphasizes the future ubiquity of MCP compatibility in business applications and services.

Asynchronous Agent Workflows 12:19

  • Agents are modeled as asynchronous workflows that can be paused, resumed, or retried, accommodating human feedback and scheduled triggers.
  • Temporal is used as the backend for durable execution and orchestration of agent tasks.

Demonstration of MCP Agent 13:09

  • A demo showcases an agent designed to grade a student's short story, utilizing MCP servers for data fetching and file system access.
  • The agent employs various specialized roles such as a finder, proofreader, and style enforcer to complete its task efficiently.

Exposing Agents as MCP Servers 16:35

  • The demo concludes with the agent being exposed as an MCP server, allowing it to interact with MCP clients.
  • Users can initiate tasks and track the status of agent workflows asynchronously, demonstrating the flexibility and scalability of MCP agents.

Conclusion and Future of Agents 17:53

  • Sarmad invites further discussion on the potential of agents and the revolutionary impact of MCP on agent technology.