Skip to content

Commit 6420605

Browse files
authored
Merge branch 'main' into set-header
2 parents f461f29 + 25cc0f6 commit 6420605

File tree

8 files changed

+33
-15
lines changed

8 files changed

+33
-15
lines changed

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@modelcontextprotocol/inspector-client",
3-
"version": "0.8.2",
3+
"version": "0.9.0",
44
"description": "Client-side application for the Model Context Protocol inspector",
55
"license": "MIT",
66
"author": "Anthropic, PBC (https://anthropic.com)",

client/src/App.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,10 @@ const App = () => {
476476
setLogLevel(level);
477477
};
478478

479+
const clearStdErrNotifications = () => {
480+
setStdErrNotifications([]);
481+
};
482+
479483
if (window.location.pathname === "/oauth/callback") {
480484
const OAuthCallback = React.lazy(
481485
() => import("./components/OAuthCallback"),
@@ -513,6 +517,7 @@ const App = () => {
513517
logLevel={logLevel}
514518
sendLogLevelRequest={sendLogLevelRequest}
515519
loggingSupported={!!serverCapabilities?.logging || false}
520+
clearStdErrNotifications={clearStdErrNotifications}
516521
/>
517522
<div className="flex-1 flex flex-col overflow-hidden">
518523
<div className="flex-1 overflow-auto">

client/src/components/JsonView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ const JsonNode = memo(
227227
)}
228228
<pre
229229
className={clsx(
230-
typeStyleMap.string,
230+
isError ? typeStyleMap.error : typeStyleMap.string,
231231
"break-all whitespace-pre-wrap",
232232
)}
233233
>

client/src/components/Sidebar.tsx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ interface SidebarProps {
5656
onConnect: () => void;
5757
onDisconnect: () => void;
5858
stdErrNotifications: StdErrNotification[];
59+
clearStdErrNotifications: () => void;
5960
logLevel: LoggingLevel;
6061
sendLogLevelRequest: (level: LoggingLevel) => void;
6162
loggingSupported: boolean;
@@ -82,6 +83,7 @@ const Sidebar = ({
8283
onConnect,
8384
onDisconnect,
8485
stdErrNotifications,
86+
clearStdErrNotifications,
8587
logLevel,
8688
sendLogLevelRequest,
8789
loggingSupported,
@@ -530,9 +532,19 @@ const Sidebar = ({
530532
{stdErrNotifications.length > 0 && (
531533
<>
532534
<div className="mt-4 border-t border-gray-200 pt-4">
533-
<h3 className="text-sm font-medium">
534-
Error output from MCP server
535-
</h3>
535+
<div className="flex justify-between items-center">
536+
<h3 className="text-sm font-medium">
537+
Error output from MCP server
538+
</h3>
539+
<Button
540+
variant="outline"
541+
size="sm"
542+
onClick={clearStdErrNotifications}
543+
className="h-8 px-2"
544+
>
545+
Clear
546+
</Button>
547+
</div>
536548
<div className="mt-2 max-h-80 overflow-y-auto">
537549
{stdErrNotifications.map((notification, index) => (
538550
<div

client/src/components/__tests__/Sidebar.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ describe("Sidebar Environment Variables", () => {
3030
onConnect: jest.fn(),
3131
onDisconnect: jest.fn(),
3232
stdErrNotifications: [],
33+
clearStdErrNotifications: jest.fn(),
3334
logLevel: "info" as const,
3435
sendLogLevelRequest: jest.fn(),
3536
loggingSupported: true,

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@modelcontextprotocol/inspector",
3-
"version": "0.8.2",
3+
"version": "0.9.0",
44
"description": "Model Context Protocol inspector",
55
"license": "MIT",
66
"author": "Anthropic, PBC (https://anthropic.com)",
@@ -36,8 +36,8 @@
3636
"publish-all": "npm publish --workspaces --access public && npm publish --access public"
3737
},
3838
"dependencies": {
39-
"@modelcontextprotocol/inspector-client": "^0.8.2",
40-
"@modelcontextprotocol/inspector-server": "^0.8.2",
39+
"@modelcontextprotocol/inspector-client": "^0.9.0",
40+
"@modelcontextprotocol/inspector-server": "^0.9.0",
4141
"concurrently": "^9.0.1",
4242
"shell-quote": "^1.8.2",
4343
"spawn-rx": "^5.1.2",

server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@modelcontextprotocol/inspector-server",
3-
"version": "0.8.2",
3+
"version": "0.9.0",
44
"description": "Server-side application for the Model Context Protocol inspector",
55
"license": "MIT",
66
"author": "Anthropic, PBC (https://anthropic.com)",

0 commit comments

Comments
 (0)