How It All Works Together

A user asks "What repositories do I have?" The MCP client lives inside our server: our app talks to it with ordinary function calls, and it talks to the MCP server over the protocol.

Our server (one process) Internal function call MCP message Claude API message Annotation

Note: In this example, the tool list is being fetched for each question to make the flow clear. Real apps usually fetch the list once when they connect, and again only when the server sends notifications/tools/list_changed.