Helper module used to build ServerCapabilities structure.
(MCP protocol: 2025-11-25)
Short example:
%ServerCapabilities{}
|> ServerCapabilities.resources(true)
|> ServerCapabilities.build()Result:
%{resources: %{subscribe: true}}Long example:
%ServerCapabilities{}
|> ServerCapabilities.logging(%{})
|> ServerCapabilities.completions(%{})
|> ServerCapabilities.resources(true)
|> ServerCapabilities.tasks(%{}, %{}, %{tools: %{call: %{}}})
|> ServerCapabilities.build()Result:
%{
resources: %{subscribe: true},
tasks: %{list: %{}, cancel: %{}, requests: %{tools: %{call: %{}}}},
logging: %{},
completions: %{}
}Specification: ServerCapabilities
Fields
| Field | Setter | Type | Required |
|---|---|---|---|
experimental | experimental/2 | map | no |
logging | logging/2 | map | no |
completions | completions/2 | map | no |
prompts | see the module functions | map | no |
resources | see the module functions | map | no |
tools | see the module functions | map | no |
tasks | see the module functions | map | no |