diff --git a/client/package.json b/client/package.json index 0734ea9..3b50ab1 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "@modelcontextprotocol/inspector-client", - "version": "0.8.2", + "version": "0.9.0", "description": "Client-side application for the Model Context Protocol inspector", "license": "MIT", "author": "Anthropic, PBC (https://anthropic.com)", diff --git a/client/src/App.tsx b/client/src/App.tsx index fb78dc6..5964bd8 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -476,6 +476,10 @@ const App = () => { setLogLevel(level); }; + const clearStdErrNotifications = () => { + setStdErrNotifications([]); + }; + if (window.location.pathname === "/oauth/callback") { const OAuthCallback = React.lazy( () => import("./components/OAuthCallback"), @@ -513,6 +517,7 @@ const App = () => { logLevel={logLevel} sendLogLevelRequest={sendLogLevelRequest} loggingSupported={!!serverCapabilities?.logging || false} + clearStdErrNotifications={clearStdErrNotifications} />
diff --git a/client/src/components/JsonView.tsx b/client/src/components/JsonView.tsx index 3fcbf8e..bd7ef64 100644 --- a/client/src/components/JsonView.tsx +++ b/client/src/components/JsonView.tsx @@ -227,7 +227,7 @@ const JsonNode = memo( )}
diff --git a/client/src/components/Sidebar.tsx b/client/src/components/Sidebar.tsx
index 7c30a45..c736558 100644
--- a/client/src/components/Sidebar.tsx
+++ b/client/src/components/Sidebar.tsx
@@ -56,6 +56,7 @@ interface SidebarProps {
   onConnect: () => void;
   onDisconnect: () => void;
   stdErrNotifications: StdErrNotification[];
+  clearStdErrNotifications: () => void;
   logLevel: LoggingLevel;
   sendLogLevelRequest: (level: LoggingLevel) => void;
   loggingSupported: boolean;
@@ -82,6 +83,7 @@ const Sidebar = ({
   onConnect,
   onDisconnect,
   stdErrNotifications,
+  clearStdErrNotifications,
   logLevel,
   sendLogLevelRequest,
   loggingSupported,
@@ -530,9 +532,19 @@ const Sidebar = ({
             {stdErrNotifications.length > 0 && (
               <>
                 
-

- Error output from MCP server -

+
+

+ Error output from MCP server +

+ +
{stdErrNotifications.map((notification, index) => (
{ onConnect: jest.fn(), onDisconnect: jest.fn(), stdErrNotifications: [], + clearStdErrNotifications: jest.fn(), logLevel: "info" as const, sendLogLevelRequest: jest.fn(), loggingSupported: true, diff --git a/package-lock.json b/package-lock.json index dcc03d4..89e5240 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,20 +1,20 @@ { "name": "@modelcontextprotocol/inspector", - "version": "0.8.2", + "version": "0.9.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@modelcontextprotocol/inspector", - "version": "0.8.2", + "version": "0.9.0", "license": "MIT", "workspaces": [ "client", "server" ], "dependencies": { - "@modelcontextprotocol/inspector-client": "^0.8.2", - "@modelcontextprotocol/inspector-server": "^0.8.2", + "@modelcontextprotocol/inspector-client": "^0.9.0", + "@modelcontextprotocol/inspector-server": "^0.9.0", "concurrently": "^9.0.1", "shell-quote": "^1.8.2", "spawn-rx": "^5.1.2", @@ -32,7 +32,7 @@ }, "client": { "name": "@modelcontextprotocol/inspector-client", - "version": "0.8.2", + "version": "0.9.0", "license": "MIT", "dependencies": { "@modelcontextprotocol/sdk": "^1.9.0", @@ -9500,7 +9500,7 @@ }, "server": { "name": "@modelcontextprotocol/inspector-server", - "version": "0.8.2", + "version": "0.9.0", "license": "MIT", "dependencies": { "@modelcontextprotocol/sdk": "^1.9.0", diff --git a/package.json b/package.json index f9d2217..a3e10c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@modelcontextprotocol/inspector", - "version": "0.8.2", + "version": "0.9.0", "description": "Model Context Protocol inspector", "license": "MIT", "author": "Anthropic, PBC (https://anthropic.com)", @@ -36,8 +36,8 @@ "publish-all": "npm publish --workspaces --access public && npm publish --access public" }, "dependencies": { - "@modelcontextprotocol/inspector-client": "^0.8.2", - "@modelcontextprotocol/inspector-server": "^0.8.2", + "@modelcontextprotocol/inspector-client": "^0.9.0", + "@modelcontextprotocol/inspector-server": "^0.9.0", "concurrently": "^9.0.1", "shell-quote": "^1.8.2", "spawn-rx": "^5.1.2", diff --git a/server/package.json b/server/package.json index 248db61..4927ce0 100644 --- a/server/package.json +++ b/server/package.json @@ -1,6 +1,6 @@ { "name": "@modelcontextprotocol/inspector-server", - "version": "0.8.2", + "version": "0.9.0", "description": "Server-side application for the Model Context Protocol inspector", "license": "MIT", "author": "Anthropic, PBC (https://anthropic.com)",