We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 138e912 commit f769503Copy full SHA for f769503
1 file changed
test/scenarios/tools/mcp-servers/csharp/Program.cs
@@ -10,16 +10,16 @@
10
11
try
12
{
13
- var mcpServers = new Dictionary<string, object>();
+ var mcpServers = new Dictionary<string, McpServerConfig>();
14
var mcpServerCmd = Environment.GetEnvironmentVariable("MCP_SERVER_CMD");
15
if (!string.IsNullOrEmpty(mcpServerCmd))
16
17
var mcpArgs = Environment.GetEnvironmentVariable("MCP_SERVER_ARGS");
18
- mcpServers["example"] = new Dictionary<string, object>
+ mcpServers["example"] = new McpStdioServerConfig
19
20
- { "type", "stdio" },
21
- { "command", mcpServerCmd },
22
- { "args", string.IsNullOrEmpty(mcpArgs) ? Array.Empty<string>() : mcpArgs.Split(' ') },
+ Command = mcpServerCmd,
+ Args = string.IsNullOrEmpty(mcpArgs) ? [] : [.. mcpArgs.Split(' ')],
+ Tools = ["*"],
23
};
24
}
25
0 commit comments