Method AddMailFathomServer
- Namespace
- MailFathom.Mcp
- Assembly
- MailFathom.Mcp.dll
AddMailFathomServer(IServiceCollection)
Adds the MailFathom MCP server, its tools, and the reporting that wraps every tool call.
public static IMcpServerBuilder AddMailFathomServer(this IServiceCollection services)
Parameters
servicesIServiceCollectionThe container to add to.
Returns
- IMcpServerBuilder
The builder, so a caller can extend the server registration.
Remarks
The tools resolve their dependencies per call from the request's scope, so the application ports they read through may be registered with any lifetime the host chooses.
Exceptions
- ArgumentNullException
Thrown when
servicesis null.