Creates a new McpServer instance and registers the supplied primitives on it. Tool,
resource, and prompt schemas are forwarded to the SDK so requests are validated at runtime,
and each callback signature is type-checked against its declared schema at compile time.
Parameters
config: McpServerConfig
Server identity, SDK options, and the primitive arrays to register.
Creates a new
McpServerinstance and registers the supplied primitives on it. Tool, resource, and prompt schemas are forwarded to the SDK so requests are validated at runtime, and each callback signature is type-checked against its declared schema at compile time.