Posts

Showing posts from November, 2026

Understanding MCP resources and prompts

Resources give a server readable context In MCP, resources give an AI application structured access to information, so the application can retrieve that information and provide it to models as context. For a newcomer, this means a server can offer material to read and use during a conversation, so the first thing to check is whether your needed context exists as a resource. Those resources can expose data from files, APIs, databases, and other sources, covering many of the places an AI application may need to pull context from. That matters because one server interface can sit in front of very different information stores, so you should ask where the data comes from and how trustworthy it is. Resources can be discovered and watched Each resource has its own URI and can declare a MIME type for content handling, and servers can also publish resource templates for flexible queries with parameters. For readers, the practical point is discoverability: a fixed item is easy to fetch direct...

How MCP Organizes Hosts, Clients, and Servers

The roles MCP uses a client-server architecture, and the host is an AI application that connects to one or more MCP servers. For a beginner, the main takeaway is that host is a specific role in the protocol design, so a good first step is to identify which AI application in your setup is acting as that host. The host creates one MCP client for each MCP server, and each client keeps its own dedicated connection to that server. This separation matters because one host can talk to several servers at once without turning them into one shared channel, so connection handling should be checked per server rather than once for the whole app. An MCP client is the component that maintains the server connection and gets context from the server for the host to use. A useful interpretation is that client does not mean the end user or the whole application, and clearing up that term early can prevent confusion when reading SDKs, diagrams, or implementation guides. Servers and connections An MCP se...