File tree Expand file tree Collapse file tree 5 files changed +43
-36
lines changed
Expand file tree Collapse file tree 5 files changed +43
-36
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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" >
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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" >
You can’t perform that action at this time.
0 commit comments