Example

Let’s assume you want a given LLM application to summarize the 5 latest commits from your repository.

The MCP Host (together with the client) would first call the MCP Server to ask which tools are available.

mcp_example.png

The LLM receives the information and may choose to use a tool. It sends a request to the MCP Server via the Host, then receives the results, including the tool used.

mcp_example_2.png

Finally, the LLM receives the results and can parse an answer to the user.

mcp_example_3.png