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:
parent
709b2e0a74
commit
24c706b4ff
1 changed files with 1276 additions and 89 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue