You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+15-4Lines changed: 15 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
- Build web: `npm run build-web`
9
9
- Development mode: `npm run dev` (use `npm run dev:windows` on Windows)
10
10
- Format code: `npm run prettier-fix`
11
-
- Web lint: `cd web && npm run lint`
11
+
- Web lint: `cd clients/web && npm run lint`
12
12
13
13
## Code Style Guidelines
14
14
@@ -25,12 +25,23 @@
25
25
- Use Tailwind CSS for styling in the web app
26
26
- Keep components small and focused on a single responsibility
27
27
28
+
## Tool Input Parameter Handling
29
+
30
+
When implementing or modifying tool input parameter handling in the Inspector:
31
+
32
+
-**Omit optional fields with empty values** - When processing form inputs, omit empty strings or null values for optional parameters, UNLESS the field has an explicit default value in the schema that matches the current value
33
+
-**Preserve explicit default values** - If a field schema contains an explicit default (e.g., `default: null`), and the current value matches that default, include it in the request. This is a meaningful value the tool expects
34
+
-**Always include required fields** - Preserve required field values even when empty, allowing the MCP server to validate and return appropriate error messages
35
+
-**Defer deep validation to the server** - Implement basic field presence checking in the Inspector client, but rely on the MCP server for parameter validation according to its schema
36
+
37
+
These guidelines maintain clean parameter passing and proper separation of concerns between the Inspector client and MCP servers.
38
+
28
39
## Project Organization
29
40
30
41
The project is organized as a monorepo with workspaces:
31
42
32
-
-`web/`: Web application (Vite, TypeScript, Tailwind)
43
+
-`clients/web/`: Web application (Vite, TypeScript, Tailwind)
33
44
-`core/`: Core shared code used by web, CLI, and TUI
34
-
-`cli/`: Command-line interface for testing and invoking MCP server methods directly
35
-
-`tui/`: Terminal user interface
45
+
-`clients/cli/`: Command-line interface for testing and invoking MCP server methods directly
46
+
-`clients/tui/`: Terminal user interface
36
47
-`test-servers/`: Composable MCP test servers, fixtures, and harness
0 commit comments