Day 90 of 133

Agent protocols: MCP & A2A deep dive

MCP host/client/server; A2A; shared tool registries.

DSA · NeetCode Intervals

  • Interview questions to prep

    1. Do you sort by start or by end? Defend the choice based on the invariant you need.
    2. Walk through merge / overlap detection: what's your condition for 'overlapping'?
    3. How does complexity break down: O(n log n) sort + O(n) sweep — can you do better in any case?

GenAI · MCP, A2A, agent protocols

  • Interview questions to prep

    1. What's the MCP architecture (host, client, server)?
    2. When would you build an MCP server vs use function calling directly?
  • Interview questions to prep

    1. What problem does A2A solve over ad-hoc agent integration?
    2. Compare MCP and A2A — when do you reach for each, and can they coexist?
  • Interview questions to prep

    1. How would you design a shared tool registry for multiple agents in your company?
    2. How do you handle versioning and breaking changes in tool definitions consumed by many agents?

References & further reading