MCP Server User Guide
These guides cover configuring an MCP server, keeping per-client state, and running work that does not fit in a single request. Start with Getting started if you do not have a server running yet.
Guides
| Guide | Scope | API starting points |
|---|---|---|
| Configuring the server | Identity and instructions, the fluent builder, every capability flag and what it commits you to, change notifications, pagination, logging, argument completions, and the JSON-RPC error codes. | TTMSMCPServer, TTMSMCPServerBuilder |
| Sessions and state | Which transports have sessions, per-session values and typed user data, session-only resources and prompts, subscriptions, lifecycle events, per-session protocol negotiation, and extensions. | TTMSMCPSessionState |
| Tasks and elicitation | Long-running tasks with progress and cancellation, asking the client a typed question, elicitation from inside a task, sampling, and querying the client's workspace roots. | TTMSMCPTask, TTMSMCPElicitRequest, TTMSMCPSamplingRequest |
Related components
- Tools, Resources, and Prompts are the three collections a server exposes.
- Attributes generates that whole surface from RTTI, so plain Delphi classes become a server without explicit registration.
- MCP Transports decides how a client reaches the server, and whether sessions exist at all.
- Authentication covers securing a server hosted over HTTP.