MCP Learning Series - Part 5
We know that MCP is a Client-Server Architecture. Both the sides offer services to each other. From the server side it offers 3 different services (Primitive) to the client. 1) Tools - Used by the LLM 2) Resources - Used by the AI Applications 3) Prompts - Used by the users interacting with the AI Applications Tools @mcp.tool() - These are the functions used by the LLM's to perform an action. Resources @mcp.resource() - Refers to any data sources which is access by the AI application including reading file, accessing the database via SQL, reading a CSV file or connecting to a DataLake. Prompts @mcp.prompt() - Structured template which gets inputs from the user and perform an action. How to add a prompt and resources to existing MCP Server: @mcp.prompt () def get_prompt (topic: str ) -> str : """ Returns a prompt for the given topic which will do a detailed analysis on the topic. Args: topic (str): The topic to analyze. ""...