@bryan-thompson/inspector-assessment-cli 1.20.3 → 1.20.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/assess-full.js +13 -0
- package/package.json +1 -1
package/build/assess-full.js
CHANGED
|
@@ -41,6 +41,19 @@ function loadServerConfig(serverName, configPath) {
|
|
|
41
41
|
const config = JSON.parse(fs.readFileSync(tryPath, "utf-8"));
|
|
42
42
|
if (config.mcpServers && config.mcpServers[serverName]) {
|
|
43
43
|
const serverConfig = config.mcpServers[serverName];
|
|
44
|
+
// Check if serverConfig specifies http/sse transport
|
|
45
|
+
if (serverConfig.url ||
|
|
46
|
+
serverConfig.transport === "http" ||
|
|
47
|
+
serverConfig.transport === "sse") {
|
|
48
|
+
if (!serverConfig.url) {
|
|
49
|
+
throw new Error(`Invalid server config: transport is '${serverConfig.transport}' but 'url' is missing`);
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
transport: serverConfig.transport || "http",
|
|
53
|
+
url: serverConfig.url,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
// Default to stdio transport
|
|
44
57
|
return {
|
|
45
58
|
transport: "stdio",
|
|
46
59
|
command: serverConfig.command,
|
package/package.json
CHANGED