TTMSMCPServerBuilder Class
Fluent configuration helper that creates a server, applies settings step by step and hands over the finished instance.
API unit family: TMS.MCP.Server
Syntax
TTMSMCPServerBuilder = class
Remarks
Every step is a class function returning the builder class, so a chain reads as Initialize.Name(...).EnableLogging.Build. The server being configured is held in class-level state, so only one chain may be in progress at a time and each chain must end with Build, which returns the instance and releases the builder's reference to it.
Methods
| Name | Description |
|---|---|
| Build | Ends the configuration chain and returns the configured server, releasing the builder's reference to it so a new chain can be started. |
| DefaultPageSize | Sets the page size used by the list requests. |
| DefaultTaskPollInterval | Sets the poll interval new tasks suggest to clients. |
| Description | Sets the free-form description the server reports to clients. |
| EnableCompletions | Turns the argument auto-completion capability on or off. |
| EnableElicitation | Turns the elicitation capability on or off. |
| EnableLogging | Turns the logging capability on or off. |
| EnablePromptNotifications | Turns prompt list-changed notifications on or off. |
| EnableResourceNotifications | Turns resource list-changed notifications on or off. |
| EnableResourceSubscriptions | Turns per-resource subscriptions on or off. |
| EnableSampling | Turns the sampling capability on or off. |
| EnableTasks | Turns asynchronous task execution on or off. |
| EnableToolNotifications | Turns tool list-changed notifications on or off. |
| Initialize | Begins a configuration chain by creating the server instance the following steps configure. Any chain that was started but never built is abandoned. |
| Instructions | Sets the usage guidance the server reports to clients during initialization. |
| Name | Sets the name the server reports to clients. |
| ServerVersion | Sets the version string the server reports to clients. |
| WithTransport | Assigns the transport the server will use. Without this step the server creates a standard input/output transport when it is started. |