@modelcontextprotocol/inspector-client 0.11.0 → 0.13.0

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.
@@ -0,0 +1,33 @@
1
+ const parseOAuthCallbackParams = (location) => {
2
+ const params = new URLSearchParams(location);
3
+ const code = params.get("code");
4
+ if (code) {
5
+ return { successful: true, code };
6
+ }
7
+ const error = params.get("error");
8
+ const error_description = params.get("error_description");
9
+ const error_uri = params.get("error_uri");
10
+ if (error) {
11
+ return { successful: false, error, error_description, error_uri };
12
+ }
13
+ return {
14
+ successful: false,
15
+ error: "invalid_request",
16
+ error_description: "Missing code or error in response",
17
+ error_uri: null
18
+ };
19
+ };
20
+ const generateOAuthErrorDescription = (params) => {
21
+ const error = params.error;
22
+ const errorDescription = params.error_description;
23
+ const errorUri = params.error_uri;
24
+ return [
25
+ `Error: ${error}.`,
26
+ errorDescription ? `Details: ${errorDescription}.` : "",
27
+ errorUri ? `More info: ${errorUri}.` : ""
28
+ ].filter(Boolean).join("\n");
29
+ };
30
+ export {
31
+ generateOAuthErrorDescription as g,
32
+ parseOAuthCallbackParams as p
33
+ };
package/dist/index.html CHANGED
@@ -5,8 +5,8 @@
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-DoxCWJPh.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-D5WIP3OH.css">
8
+ <script type="module" crossorigin src="/assets/index-Dhd4mhZ2.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-CIxCnj5w.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modelcontextprotocol/inspector-client",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "description": "Client-side application for the Model Context Protocol inspector",
5
5
  "license": "MIT",
6
6
  "author": "Anthropic, PBC (https://anthropic.com)",
@@ -23,7 +23,7 @@
23
23
  "test:watch": "jest --config jest.config.cjs --watch"
24
24
  },
25
25
  "dependencies": {
26
- "@modelcontextprotocol/sdk": "^1.10.2",
26
+ "@modelcontextprotocol/sdk": "^1.11.5",
27
27
  "@radix-ui/react-checkbox": "^1.1.4",
28
28
  "@radix-ui/react-dialog": "^1.1.3",
29
29
  "@radix-ui/react-icons": "^1.3.0",