Logo Migrondi

ServerBuilder Module

Nested modules

Modules Description

ReadTools

Handlers for the multi-project read tools. Each returns the encoded `CallToolResult` served for the tool of the same name; internal so the contract tests (via `InternalsVisibleTo`) drive the exact handlers the server registers without widening the public API.

WriteTools

Handlers for the multi-project write tools; same contract as `ReadTools`.

Functions and values

Function or value Description

createTool serviceProvider spec del

Full Usage: createTool serviceProvider spec del

Parameters:
Returns: McpServerTool

Builds an `McpServerTool` from a delegate and its annotation spec.

serviceProvider : IServiceProvider
spec : ToolSpec
del : Delegate
Returns: McpServerTool

parseArgs argv

Full Usage: parseArgs argv

Parameters:
    argv : string array

Returns: McpOptions option

Parses raw argv into `McpOptions` for a host entry point (`--stdio`, `--http `, `--readonly`).

argv : string array
Returns: McpOptions option

run env options loggerFactory

Full Usage: run env options loggerFactory

Parameters:
Returns: Async<unit>

Runs the multi-project MCP server for a project collection.

env : McpEnvironment
options : McpOptions
loggerFactory : ILoggerFactory
Returns: Async<unit>

runTransport mode serverOptions loggerFactory serviceProvider

Full Usage: runTransport mode serverOptions loggerFactory serviceProvider

Parameters:
Returns: Async<unit>

Transport-running part shared by the multi-project server and the single-project server: binds the mode's transport and runs the server.

mode : McpMode
serverOptions : McpServerOptions
loggerFactory : ILoggerFactory
serviceProvider : IServiceProvider
Returns: Async<unit>

Type something to start searching.