Commit graph

1,720 commits

Author SHA1 Message Date
olaservo
36f5ba995b Merge branch 'omit-optional-empty-strings' of https://github.com/olaservo/inspector into omit-optional-empty-strings-updated 2025-09-27 21:25:48 -07:00
Ola Hungerford
d255728a49
Merge branch 'main' into omit-optional-empty-strings 2025-09-27 21:25:00 -07:00
Ola Hungerford
5e1aef27bf
Merge pull request #772 from JMLX42/fix/optional-arrays-issue-771
Fix optional arrays/objects issue #771
2025-09-27 21:21:55 -07:00
olaservo
a11ee99818 Update ToolsTab tests to require JSON fields and adjust default value generation for optional types 2025-09-27 21:17:17 -07:00
olaservo
69c294c0ae Let servers validate invalid input 2025-09-27 21:05:00 -07:00
olaservo
a4f99bd5d0 Remove demo video file 2025-09-27 20:54:09 -07:00
olaservo
2b49ab7aaf Merge remote-tracking branch 'upstream/main' into omit-optional-empty-strings-updated 2025-09-27 20:53:06 -07:00
Ola Hungerford
ce4ac9e998
Merge pull request #528 from nandsha/fix/validate-json-on-tool-execution
fix: Validate JSON parameters before tool execution
2025-09-27 20:51:58 -07:00
olaservo
48fd23064c Remove unused function 2025-09-27 20:39:11 -07:00
olaservo
45a1bde010 Refactor ToolsTab to handle cleared fields as undefined instead of empty strings; update tests for new behavior 2025-09-27 20:21:03 -07:00
olaservo
45abfe0d87 Merge remote-tracking branch 'upstream/main' into omit-optional-empty-strings-updated 2025-09-25 21:18:25 -07:00
Cliff Hall
861812e023
Merge pull request #827 from modelcontextprotocol/revert-pr-715
Revert "fix: filter out client_secret when storing OAuth client information"
2025-09-24 10:40:57 -04:00
olaservo
fcaaffff51 Fix TypeScript error: replace 'any' with proper JsonSchemaType
- Import JsonSchemaType from utils/jsonUtils
- Cast tool.inputSchema to JsonSchemaType instead of any
- Matches typing pattern used elsewhere in codebase

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-24 07:13:37 -07:00
Paul Carleton
b72e3c1233
Revert "fix: filter out client_secret when storing OAuth client information"
This reverts commit 36b9acc97e.
2025-09-24 15:12:52 +01:00
olaservo
2846e179a3 Fix formatting with Prettier
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-24 07:06:31 -07:00
olaservo
754c97956f Omit optional fields with empty strings from tool calls 2025-09-24 07:01:04 -07:00
Nandha Reddy
9903c83753 Add PR demo video showing JSON validation improvements
- Demonstrates real-time JSON validation feedback
- Shows tool execution disabled on invalid JSON
- Displays improved error messages and auto-reset functionality
- File optimized for GitHub (709KB MP4 format)
2025-09-24 01:29:25 +10:00
Nandha Reddy
a3445c93ff Fix ESLint issues in DynamicJsonForm.tsx
- Remove unnecessary escape character in regex pattern
- Add missing schema dependency to useCallback hook
2025-09-24 01:04:24 +10:00
Nandha Reddy
8d149b2673 Add real-time JSON validation and prevent tool execution on invalid input 2025-09-24 00:25:06 +10:00
Nandha Reddy
119922b8b5
Merge branch 'main' into fix/validate-json-on-tool-execution 2025-09-23 20:10:59 +10:00
Ola Hungerford
42aa95b343
Merge pull request #544 from richardkmichael/accurate-cli-version
fix: hard-coded CLI inspector version
2025-09-22 21:24:52 -07:00
Ola Hungerford
32ea112051
Merge branch 'main' into accurate-cli-version 2025-09-22 20:46:14 -07:00
Cliff Hall
92d1665b7c
Merge pull request #727 from cameronldroberts/tool-search
feat: Add search capability to the ListPane component to allow users to filter resources, prompts and tools
2025-09-22 16:34:45 -04:00
Cliff Hall
71aadf9652
Merge branch 'main' into tool-search 2025-09-22 16:23:04 -04:00
Cliff Hall
cf9acf607a
Merge pull request #810 from cliffhall/no-proxy-for-http-transports
Allow bypassing proxy with Connection Type dropdown
2025-09-20 19:29:48 -04:00
Cameron Roberts
d50aa6a238
Merge branch 'main' into tool-search 2025-09-19 23:11:16 +01:00
cliffhall
6b7c752684 * In Sidebar.tsx
- Add tooltip over the Connection Type field
2025-09-18 17:43:12 -04:00
Cliff Hall
05534ca430
Merge branch 'main' into no-proxy-for-http-transports 2025-09-18 16:36:37 -04:00
Ola Hungerford
da386418ab
Merge branch 'main' into fix/optional-arrays-issue-771 2025-09-18 07:43:24 -07:00
Cliff Hall
01caa53779
Merge pull request #808 from modelcontextprotocol/claude/issue-807-20250916-0337 0.16.8
chore: bump version to 0.16.8
2025-09-17 18:00:05 -04:00
Ola Hungerford
801f650faa
Merge branch 'main' into claude/issue-807-20250916-0337 2025-09-17 14:48:01 -07:00
Ola Hungerford
d2a715c9fb
Merge pull request #813 from cliffhall/fix-new-headers-issue
Polyfill Headers in proxy with node-fetch
2025-09-17 14:47:42 -07:00
cliffhall
f1e93e0475 * In server/index.ts
- in createCustomFetch function
    - convert finalHeaders to headers object for node-fetch compatibility
    - for SSE streams, convert node stream to response body to web ReadableStream since EventSource polyfill expects web-compatible stream

* In package-lock.json and package.json
  - add node-fetch as a dependency

This fixes #600
2025-09-17 14:45:58 -04:00
Cliff Hall
00a49736e7
Merge branch 'main' into tool-search 2025-09-17 13:42:39 -04:00
Ola Hungerford
c45ec06e14
Merge branch 'main' into fix/optional-arrays-issue-771 2025-09-17 06:38:16 -07:00
Ola Hungerford
88218785c2
Merge branch 'main' into claude/issue-807-20250916-0337 2025-09-16 17:56:30 -07:00
Ola Hungerford
81889e680d
Merge pull request #801 from modelcontextprotocol/basil/fix-oauth-redirect-uri-mismatch
Fix OAuth redirect URI mismatch in debug flow
2025-09-16 17:56:14 -07:00
Cliff Hall
e5c8a315d6
Merge branch 'main' into tool-search 2025-09-16 18:40:50 -04:00
cliffhall
5ef78470de * In App.tsx
- Add state for connectionType
  - Fetch connectionType from localstorage if present

* In Sidebar.tsx
  - Add dropdown for connectionType, only visible if transport type is not stdio

* In Sidebar.test.tsx
  - set connectionType to "proxy"

* In useConnection.ts
  - add connectionType param, defaulting to "proxy"
  - add state for mcpSessionId
  - Only check proxy health if the connection type is proxy
  - create a serverUrl variable which will either be the proxy url OR the server url depending upon the connection type
  - added captureResponseHeaders function to extract the protocol-related headers from a response.
  - when creating transport options and connectionType is "direct" and transportType is not "stdio",
    - add the appropriate `Accept` and `Content-Type` headers
    - capture the protocol related response headers and store them in the custom fetch handler
    - set serverUrl to be the server url, not the proxy url
  - if connection type is proxy set serverUrl to the mcpProxyUrl
  - use serverUrl instead of mcpProxyUrl for the  transport instantiation
* In useConnection.test.tsx
  - replaced test "sends X-MCP-Proxy-Auth header when proxy auth token is configured" with two tests:
    - "sends X-MCP-Proxy-Auth header when proxy auth token is configured for 'proxy' connectionType"
    - "does NOT send X-MCP-Proxy-Auth header when proxy auth token is configured for 'direct' connectionType"
   - added Connection URL Verification section with 2 tests
     - uses server URL directly when connectionType is 'direct'"
     - "uses proxy server URL when connectionType is 'proxy'"
2025-09-16 17:26:29 -04:00
claude[bot]
7b338b3ea3 chore: bump version to 0.16.8
Co-authored-by: Ola Hungerford <olaservo@users.noreply.github.com>
2025-09-16 03:39:40 +00:00
Ola Hungerford
19e12e2091
Merge pull request #806 from cliffhall/fix-stateless-http-connections
Fix stateless StreamableHttp connections
2025-09-15 20:35:08 -07:00
Ola Hungerford
e0071a9889
Merge branch 'main' into tool-search 2025-09-15 20:33:20 -07:00
cliffhall
51d28cd7b4 When the client sends a request, do not pass on the mcp-session-id header for the Client <-> Proxy connection. This causes a problem for stateless SSE or StreamableHttp connections. 2025-09-15 18:09:44 -04:00
Cliff Hall
4352d322f9
Merge pull request #751 from Jeetulsamaiya/main
Add support for custom headers and migrate from legacy auth
2025-09-15 14:24:09 -04:00
jeetul.samaiya
e08ce8cee9 feat: add default Authorization Bearer header and clean up legacy auth
- Provide "Authorization: Bearer " as default starting header
- Remove legacy auth props from components
- Centralize migration logic and fix localStorage cleanup
- Update tests for new auth architecture
2025-09-15 20:19:56 +05:30
Jeetul Samaiya
f36c649bb9
Merge branch 'main' into main 2025-09-15 19:30:18 +05:30
Ola Hungerford
0850de74d9
Merge branch 'main' into tool-search 2025-09-15 06:35:28 -07:00
Ola Hungerford
758d6f7913
Merge pull request #662 from alex210501/alejandro.borbolla/copy-input
feat: Copy the tool input parameters
2025-09-15 06:33:51 -07:00
Ola Hungerford
3075cbbf18
Merge branch 'main' into alejandro.borbolla/copy-input 2025-09-14 21:27:07 -07:00
Cameron Roberts
36c38e7b47
Update ListPane.tsx 2025-09-14 00:29:54 +01:00