Commit graph

1,249 commits

Author SHA1 Message Date
Alex Andru
e6c8b946aa feat: use decline instead of reject 2025-07-04 12:09:51 +02:00
Alex Andru
f2166c985f refactor: remove dead code 2025-07-04 10:59:29 +02:00
Alex Andru
28c1890117 feat: replace modal logic with new tab request for elicitation 2025-07-04 10:55:00 +02:00
Alex Andru
2baf8bc84b test: elicitations tab 2025-07-04 10:54:25 +02:00
Alex Andru
9539c16845 feat: add elicitations tab 2025-07-04 10:54:11 +02:00
Alex Andru
0411383d81 test: Elicitation request 2025-07-04 10:53:08 +02:00
Alex Andru
b4a2a6b7f8 feat: add elicitation request 2025-07-04 10:52:56 +02:00
Alex Andru
19ff315dd1 Merge branch 'origin/main' into feature/elicitations
Resolved conflicts by adopting the improved form input handling from main:
- Standardized JsonSchemaType.required to only accept string arrays (JSON Schema standard)
- Adopted enhanced object and array rendering with proper nested support
- Improved boolean field rendering (removed extra wrapper div)
- Enhanced array handling with add/remove functionality
- Simplified required field validation logic

This maintains elicitation functionality while benefiting from the form input fixes.
2025-07-03 16:14:21 +02:00
Cliff Hall
13014a0471
Merge pull request #500 from sebastian93921/sebastian/patch-remove-addition-slash
Fix: Remove addition slash for check proxy health
2025-07-02 15:54:37 -04:00
Cliff Hall
1089162f38
Merge branch 'main' into sebastian/patch-remove-addition-slash 2025-07-02 10:56:45 -04:00
Cliff Hall
ff1e5ec8f9
Merge pull request #581 from richardkmichael/fix-chrome-width
fix: full width in Chrome
2025-07-02 10:46:12 -04:00
Cliff Hall
415fb57589
Merge branch 'main' into fix-chrome-width 2025-07-02 10:13:40 -04:00
Sebastian Ko
85575de690
Merge branch 'main' into sebastian/patch-remove-addition-slash 2025-07-02 03:17:50 -04:00
Cliff Hall
7460ea2e49
Merge pull request #473 from baruchiro/baruchiro/node-version
chore: Add node-version to package.json and workflows
2025-07-01 15:34:21 -04:00
Richard Michael
0f2548e71d Remove unnecessary margin property 2025-07-01 09:31:19 -07:00
Richard Michael
daf5f0af38 Full-width #root 2025-07-01 09:30:36 -07:00
Baruch Odem
0027e870cc follow the README
https://github.com/modelcontextprotocol/inspector/pull/318
2025-07-01 08:25:39 +03:00
Baruch Odem
80082e1272 chore: update Node.js version requirement and adjust workflows to use package.json for node version 2025-06-29 07:46:25 +03:00
Baruch Odem (Rothkoff)
297a6b3a88
Merge branch 'main' into baruchiro/node-version 2025-06-29 07:35:01 +03:00
Ola Hungerford
fbe6c11975
Merge pull request #548 from markacianfrani/main
fix: allow typing negative numbers in tool parameter inputs
2025-06-27 21:06:49 -07:00
Mark Anthony Cianfrani
9eb5e7b8c2
Merge branch 'main' into main 2025-06-27 20:06:31 -04:00
Cliff Hall
6a8c831308
Merge pull request #480 from olaservo/fix-required
Fix fundamental schema issue with required fields defined incorrectly on JsonSchemaType
2025-06-27 14:09:10 -04:00
Cliff Hall
c24d2a952f
Merge pull request #555 from modelcontextprotocol/fweinberger/fix-proxy-port-config
Fix proxy port configuration for non-default SERVER_PORT
2025-06-27 13:28:02 -04:00
Felix Weinberger
1aea3374ff
refactor: use ES6 shorthand property syntax in start.js
Replace explicit property assignments with shorthand syntax when
property names match variable names (e.g., SERVER_PORT: SERVER_PORT
becomes just SERVER_PORT).
2025-06-27 17:40:22 +01:00
Felix Weinberger
042e7a2aa7
refactor: move browser auto-open logic to client process
Simplifies the startup flow by consolidating browser opening
in the client script rather than the start script for prod.

We were duplicating a lot of logging, making it easy for
logs to go out of sync - this is a proposal to consolidate:

- server only logs info about itself
- client only logs info about itself

To reduce the number of places we print connection information
to the user.
2025-06-27 15:01:34 +01:00
Felix Weinberger
ae1aeb3c3f
fix: improve logging consistency between dev and prod client startup
Refactored startProdClient to match startDevClient's logging pattern,
ensuring consistent user feedback whether auto-open is enabled or disabled.

Also ensures that we log full information on how to open the browser
regardless of whether MCP_AUTO_OPEN_ENABLED=false.
2025-06-27 15:00:21 +01:00
Felix Weinberger
9e9419bf21
fix: ensure MCP_PROXY_PORT is included when auth is disabled
Address PR feedback by restructuring getClientUrl to always include
MCP_PROXY_PORT parameter when using non-default port, regardless of
auth status. Also improved code clarity by using params.size check.
2025-06-26 10:52:49 +01:00
Felix Weinberger
9fcfd89326
fix: pass proxy port via URL params when non-default
- Update client to read MCP_PROXY_PORT from URL parameters
- Update server to include port in displayed URL when non-default
- Update start scripts to pass SERVER_PORT to client
- Use DEFAULT_MCP_PROXY_LISTEN_PORT constant instead of magic numbers

This fixes the issue where the client couldn't connect to the proxy
when SERVER_PORT was set to a non-default value.
2025-06-26 10:52:49 +01:00
Felix Weinberger
eb5be0d853
Merge pull request #529 from modelcontextprotocol/fweinberger/client-localhost
fix: bind client to localhost to match server
2025-06-26 10:05:52 +01:00
Cliff Hall
b28a10eae5
Merge branch 'main' into fweinberger/client-localhost 2025-06-25 17:57:55 -04:00
Cliff Hall
5e92e889b8
Merge pull request #560 from olaservo/bump-version-15-0-0 0.15.0
Bump version to 0.15.0 and bump sdk
2025-06-25 13:36:52 -04:00
olaservo
d49a5f65c1 Bump sdk 2025-06-25 07:22:34 -07:00
olaservo
2ca82b5be6 Bump version to 0.15.0 2025-06-25 07:19:44 -07:00
Ola Hungerford
d29d7074f9
Merge pull request #557 from richardkmichael/update-radix-and-icons
chore: Update radix-ui components and icons
2025-06-25 06:12:45 -07:00
Ola Hungerford
f2aaa8d668
Merge pull request #479 from ryanjclark/feat/cli-http
Feat/cli http
2025-06-25 05:02:32 -07:00
Richard Michael
36e053ae66 Adjust e2e test configuration
- Playwright installation can take more than 5m, increase to 15m

- Only attempt to upload the report if Playwright executed, otherwise
  there are no report files, and the upload step will error
2025-06-25 02:05:46 -07:00
Ryan Clark
14a9b8fb36
feat: formatting 2025-06-25 00:46:11 -05:00
Sebastian Ko
7dc7b09cd4
Change var to let 2025-06-25 00:45:03 -04:00
Ola Hungerford
95975c58e7
Merge branch 'main' into fix-required 2025-06-24 21:35:27 -07:00
Richard Michael
73bb000597 Update lucide-react
Checked for icon name changes by teaching Claude to search the lucide-react repo with:

`git log -i -E --grep '(rename|change)' 0.448.0^...0.523.0

  ..then searching for any of the found icons in the Inspector imports.
2025-06-24 12:43:03 -07:00
Ryan Clark
0bef6f71ad
feat: add tests for http transport 2025-06-24 09:23:51 -05:00
Felix Weinberger
d0673ba9e1
refactor: Use specific SERVER_PORT and CLIENT_PORT env vars
Per PR feedback from cliffhall:
- Changed PORT to SERVER_PORT in server/src/index.ts
- Changed PORT to CLIENT_PORT in client/bin/client.js
- Added parseInt() for CLIENT_PORT consistency
- Updated start.js to pass correct env var names

This improves clarity by using specific environment variables for
server and client ports instead of the generic PORT variable.
2025-06-24 10:43:13 +01:00
Felix Weinberger
fe2c5c767d
refactor: deduplicate URL generation and standardize on localhost
- Extract duplicated URL generation code into getClientUrl() helper function in start.js
- Replace all 127.0.0.1 references with localhost for consistency across codebase
- Update server to respect HOST environment variable for URL generation
- Remove 127.0.0.1 from default allowed origins in CORS configuration
- Update documentation to use localhost instead of 127.0.0.1

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-24 10:43:13 +01:00
Felix Weinberger
9c5c7575c0
fix: Bind client to localhost by default to prevent DNS rebinding attacks
Complete the security hardening started in e8e9909 by also binding the client to localhost only.
Previously only the server was protected while the client remained exposed to the network,
allowing attackers to access the server through the client as a proxy.

Changes:
- Add HOST environment variable support to client (prod mode)
- Configure Vite dev server to bind to localhost by default
- Update browser auto-open URLs to use actual host instead of hardcoded 127.0.0.1
- Fix missing cancelled parameter in startProdClient function

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-24 10:43:13 +01:00
Sebastian Ko
66abc3bfac
Merge branch 'main' into sebastian/patch-remove-addition-slash 2025-06-24 05:25:18 -04:00
Richard Michael
e0fe311528 Update @radix-ui/react-select 2025-06-23 18:25:23 -07:00
Richard Michael
5d00e870b6 Update @radix-ui/react-popover 2025-06-23 18:20:36 -07:00
Richard Michael
8153f0d5e4 Update @radix-ui/react-dialog 2025-06-23 18:08:59 -07:00
Richard Michael
0987127255 Update @radix-ui/react-toast 2025-06-23 17:38:28 -07:00
Richard Michael
54209f4809 Update @radix-ui/react-tooltip 2025-06-23 17:20:05 -07:00