Skip to content

Commit 8bfd164

Browse files
authored
Merge branch 'main' into add-dropdowns-for-enums
2 parents 097e2dd + 5c3afda commit 8bfd164

File tree

5 files changed

+43
-36
lines changed

5 files changed

+43
-36
lines changed

AGENTS.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# MCP Inspector Development Guide
2+
3+
## Build Commands
4+
5+
- Build all: `npm run build`
6+
- Build client: `npm run build-client`
7+
- Build server: `npm run build-server`
8+
- Development mode: `npm run dev` (use `npm run dev:windows` on Windows)
9+
- Format code: `npm run prettier-fix`
10+
- Client lint: `cd client && npm run lint`
11+
12+
## Code Style Guidelines
13+
14+
- Use TypeScript with proper type annotations
15+
- Follow React functional component patterns with hooks
16+
- Use ES modules (import/export) not CommonJS
17+
- Use Prettier for formatting (auto-formatted on commit)
18+
- Follow existing naming conventions:
19+
- camelCase for variables and functions
20+
- PascalCase for component names and types
21+
- kebab-case for file names
22+
- Use async/await for asynchronous operations
23+
- Implement proper error handling with try/catch blocks
24+
- Use Tailwind CSS for styling in the client
25+
- Keep components small and focused on a single responsibility
26+
27+
## Project Organization
28+
29+
The project is organized as a monorepo with workspaces:
30+
31+
- `client/`: React frontend with Vite, TypeScript and Tailwind
32+
- `server/`: Express backend with TypeScript
33+
- `cli/`: Command-line interface for testing and invoking MCP server methods directly

CLAUDE.md

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1 @@
1-
# MCP Inspector Development Guide
2-
3-
## Build Commands
4-
5-
- Build all: `npm run build`
6-
- Build client: `npm run build-client`
7-
- Build server: `npm run build-server`
8-
- Development mode: `npm run dev` (use `npm run dev:windows` on Windows)
9-
- Format code: `npm run prettier-fix`
10-
- Client lint: `cd client && npm run lint`
11-
12-
## Code Style Guidelines
13-
14-
- Use TypeScript with proper type annotations
15-
- Follow React functional component patterns with hooks
16-
- Use ES modules (import/export) not CommonJS
17-
- Use Prettier for formatting (auto-formatted on commit)
18-
- Follow existing naming conventions:
19-
- camelCase for variables and functions
20-
- PascalCase for component names and types
21-
- kebab-case for file names
22-
- Use async/await for asynchronous operations
23-
- Implement proper error handling with try/catch blocks
24-
- Use Tailwind CSS for styling in the client
25-
- Keep components small and focused on a single responsibility
26-
27-
## Project Organization
28-
29-
The project is organized as a monorepo with workspaces:
30-
31-
- `client/`: React frontend with Vite, TypeScript and Tailwind
32-
- `server/`: Express backend with TypeScript
33-
- `cli/`: Command-line interface for testing and invoking MCP server methods directly
1+
@./AGENTS.md

client/src/components/PromptsTab.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ const PromptsTab = ({
131131
<Alert variant="destructive">
132132
<AlertCircle className="h-4 w-4" />
133133
<AlertTitle>Error</AlertTitle>
134-
<AlertDescription>{error}</AlertDescription>
134+
<AlertDescription className="break-all">
135+
{error}
136+
</AlertDescription>
135137
</Alert>
136138
) : selectedPrompt ? (
137139
<div className="space-y-4">

client/src/components/ResourcesTab.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,9 @@ const ResourcesTab = ({
225225
<Alert variant="destructive">
226226
<AlertCircle className="h-4 w-4" />
227227
<AlertTitle>Error</AlertTitle>
228-
<AlertDescription>{error}</AlertDescription>
228+
<AlertDescription className="break-all">
229+
{error}
230+
</AlertDescription>
229231
</Alert>
230232
) : selectedResource ? (
231233
<JsonView

client/src/components/ToolsTab.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ const ToolsTab = ({
144144
<Alert variant="destructive">
145145
<AlertCircle className="h-4 w-4" />
146146
<AlertTitle>Error</AlertTitle>
147-
<AlertDescription>{error}</AlertDescription>
147+
<AlertDescription className="break-all">
148+
{error}
149+
</AlertDescription>
148150
</Alert>
149151
)}
150152
<p className="text-sm text-gray-600 dark:text-gray-400">

0 commit comments

Comments
 (0)