@bryan-thompson/inspector-assessment 1.20.7 → 1.20.9

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.
@@ -89,14 +89,39 @@ function loadServerConfig(serverName, configPath) {
89
89
  */
90
90
  function loadSourceFiles(sourcePath) {
91
91
  const result = {};
92
+ // Search for README in source directory and parent directories (up to 3 levels)
93
+ // This handles cases where --source points to a subdirectory but README is at repo root
92
94
  const readmePaths = ["README.md", "readme.md", "Readme.md"];
95
+ let readmeFound = false;
96
+ // First try the source directory itself
93
97
  for (const readmePath of readmePaths) {
94
98
  const fullPath = path.join(sourcePath, readmePath);
95
99
  if (fs.existsSync(fullPath)) {
96
100
  result.readmeContent = fs.readFileSync(fullPath, "utf-8");
101
+ readmeFound = true;
97
102
  break;
98
103
  }
99
104
  }
105
+ // If not found, search parent directories (up to 3 levels)
106
+ if (!readmeFound) {
107
+ let currentDir = sourcePath;
108
+ for (let i = 0; i < 3; i++) {
109
+ const parentDir = path.dirname(currentDir);
110
+ if (parentDir === currentDir)
111
+ break; // Reached filesystem root
112
+ for (const readmePath of readmePaths) {
113
+ const fullPath = path.join(parentDir, readmePath);
114
+ if (fs.existsSync(fullPath)) {
115
+ result.readmeContent = fs.readFileSync(fullPath, "utf-8");
116
+ readmeFound = true;
117
+ break;
118
+ }
119
+ }
120
+ if (readmeFound)
121
+ break;
122
+ currentDir = parentDir;
123
+ }
124
+ }
100
125
  const packagePath = path.join(sourcePath, "package.json");
101
126
  if (fs.existsSync(packagePath)) {
102
127
  result.packageJson = JSON.parse(fs.readFileSync(packagePath, "utf-8"));
@@ -1,4 +1,4 @@
1
- import { u as useToast, r as reactExports, j as jsxRuntimeExports, p as parseOAuthCallbackParams, g as generateOAuthErrorDescription, S as SESSION_KEYS, I as InspectorOAuthClientProvider, a as auth } from "./index-DqYz5ZJL.js";
1
+ import { u as useToast, r as reactExports, j as jsxRuntimeExports, p as parseOAuthCallbackParams, g as generateOAuthErrorDescription, S as SESSION_KEYS, I as InspectorOAuthClientProvider, a as auth } from "./index-CzcF1S-Q.js";
2
2
  const OAuthCallback = ({ onConnect }) => {
3
3
  const { toast } = useToast();
4
4
  const hasProcessedRef = reactExports.useRef(false);
@@ -1,4 +1,4 @@
1
- import { r as reactExports, S as SESSION_KEYS, p as parseOAuthCallbackParams, j as jsxRuntimeExports, g as generateOAuthErrorDescription } from "./index-DqYz5ZJL.js";
1
+ import { r as reactExports, S as SESSION_KEYS, p as parseOAuthCallbackParams, j as jsxRuntimeExports, g as generateOAuthErrorDescription } from "./index-CzcF1S-Q.js";
2
2
  const OAuthDebugCallback = ({ onConnect }) => {
3
3
  reactExports.useEffect(() => {
4
4
  let isProcessed = false;
@@ -16320,7 +16320,7 @@ object({
16320
16320
  token_type_hint: string().optional()
16321
16321
  }).strip();
16322
16322
  const name = "@bryan-thompson/inspector-assessment-client";
16323
- const version$1 = "1.20.7";
16323
+ const version$1 = "1.20.9";
16324
16324
  const packageJson = {
16325
16325
  name,
16326
16326
  version: version$1
@@ -45352,7 +45352,7 @@ const useTheme = () => {
45352
45352
  [theme, setThemeWithSideEffect]
45353
45353
  );
45354
45354
  };
45355
- const version = "1.20.7";
45355
+ const version = "1.20.9";
45356
45356
  var [createTooltipContext] = createContextScope("Tooltip", [
45357
45357
  createPopperScope
45358
45358
  ]);
@@ -59167,13 +59167,13 @@ const App = () => {
59167
59167
  ) });
59168
59168
  if (window.location.pathname === "/oauth/callback") {
59169
59169
  const OAuthCallback = React.lazy(
59170
- () => __vitePreload(() => import("./OAuthCallback-CZQkdNXw.js"), true ? [] : void 0)
59170
+ () => __vitePreload(() => import("./OAuthCallback-CcMDWMuf.js"), true ? [] : void 0)
59171
59171
  );
59172
59172
  return /* @__PURE__ */ jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(OAuthCallback, { onConnect: onOAuthConnect }) });
59173
59173
  }
59174
59174
  if (window.location.pathname === "/oauth/callback/debug") {
59175
59175
  const OAuthDebugCallback = React.lazy(
59176
- () => __vitePreload(() => import("./OAuthDebugCallback-Cv0ovn5R.js"), true ? [] : void 0)
59176
+ () => __vitePreload(() => import("./OAuthDebugCallback-B-ZJISI6.js"), true ? [] : void 0)
59177
59177
  );
59178
59178
  return /* @__PURE__ */ jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(OAuthDebugCallback, { onConnect: onOAuthDebugConnect }) });
59179
59179
  }
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/mcp.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>MCP Inspector</title>
8
- <script type="module" crossorigin src="/assets/index-DqYz5ZJL.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-CzcF1S-Q.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-DiyPO_Zj.css">
10
10
  </head>
11
11
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bryan-thompson/inspector-assessment",
3
- "version": "1.20.7",
3
+ "version": "1.20.9",
4
4
  "description": "Enhanced MCP Inspector with comprehensive assessment capabilities for server validation",
5
5
  "license": "MIT",
6
6
  "author": "Bryan Thompson <bryan@triepod.ai>",
@@ -79,9 +79,9 @@
79
79
  "access": "public"
80
80
  },
81
81
  "dependencies": {
82
- "@bryan-thompson/inspector-assessment-cli": "^1.20.7",
83
- "@bryan-thompson/inspector-assessment-client": "^1.20.7",
84
- "@bryan-thompson/inspector-assessment-server": "^1.20.7",
82
+ "@bryan-thompson/inspector-assessment-cli": "^1.20.9",
83
+ "@bryan-thompson/inspector-assessment-client": "^1.20.9",
84
+ "@bryan-thompson/inspector-assessment-server": "^1.20.9",
85
85
  "@modelcontextprotocol/sdk": "^1.24.3",
86
86
  "concurrently": "^9.2.0",
87
87
  "node-fetch": "^3.3.2",