Improve code coverage (#40)

* Add tests for tool generation

* Add couple of MCPServer tests

* Fix merge issues

* More tests for McpServer

* Some more tests

* Fix merge issues
This commit is contained in:
Toni Wenzel 2025-03-10 18:19:49 +01:00 • committed by GitHub
commit 24c706b4ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,7 +30,7 @@ internal class McpServer : McpJsonRpcEndpoint, IMcpServer
: base(transport, loggerFactory)
{
_serverTransport = transport;
_options = options;
_options = options ?? throw new ArgumentNullException(nameof(options));
_logger = loggerFactory.CreateLogger<McpServer>();
ServerInstructions = options.ServerInstructions;
ServiceProvider = serviceProvider;