Commit Graph

650 Commits

Author SHA1 Message Date
Abdelkader Boudih
80f5ab1136 fix: typo 2025-03-31 18:28:40 +00:00
Ola Hungerford
2f854304a7 Merge pull request #216 from Skn0tt/cleanup-old-transports
fix: clean up previous transport processes
2025-03-31 10:42:10 -07:00
Cliff Hall
6b63bacbcd Merge pull request #229 from modelcontextprotocol/dependabot/npm_and_yarn/npm_and_yarn-7631eb0223
Bump vite from 5.4.12 to 5.4.15 in the npm_and_yarn group across 1 directory
2025-03-31 13:21:19 -04:00
Cliff Hall
fb29ca0113 Merge branch 'main' into cleanup-old-transports 2025-03-31 12:36:34 -04:00
dependabot[bot]
83ceefca79 Bump vite in the npm_and_yarn group across 1 directory
Bumps the npm_and_yarn group with 1 update in the / directory: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite).


Updates `vite` from 5.4.12 to 5.4.15
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.15/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.15/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-31 16:30:35 +00:00
Cliff Hall
c3bd1fb1c6 Merge pull request #224 from cliffhall/fix-214
Gracefully handle proxy server and inspector client startup errors
2025-03-31 12:29:15 -04:00
Cliff Hall
45d8202de8 Merge branch 'main' into fix-214 2025-03-31 12:27:41 -04:00
Ola Hungerford
180760c4db Fix formatting 2025-03-31 09:16:25 -07:00
Simon Knott
538fc97289 fix prettier 2025-03-31 18:10:16 +02:00
Simon Knott
04442b52a2 Merge branch 'main' into cleanup-old-transports 2025-03-31 18:10:00 +02:00
Ola Hungerford
7753b275e5 Update test to fail more explicitly 2025-03-31 08:04:53 -07:00
Ola Hungerford
7ac1e40c9d Update tests 2025-03-31 07:51:28 -07:00
Ola Hungerford
d2696e48a5 Add failing test for integer input 2025-03-31 07:32:55 -07:00
katopz
7b055b6b9a fix: prop.type not accept integer 2025-03-31 18:29:09 +09:00
Abdelkader Boudih
da9dd09765 refactor: Update default ports for MCPI client and MPCP server
Changes the default ports used by the MCP Inspector client UI and the MCP Proxy server to avoid conflicts with common development ports and provide a memorable mnemonic based on T9 mapping.
2025-03-31 00:31:28 +00:00
Cliff Hall
539f32bf3b Merge pull request #204 from pulkitsharma07/main
Add "Configuration" support in UI for configuring the request timeout (and more things in the future)
2025-03-29 16:36:19 -04:00
Pulkit Sharma
c6174116b0 update screenshot 2025-03-29 23:39:06 +05:30
Pulkit Sharma
65fc6d0490 prettier-fix, add contribution guidelines 2025-03-29 23:31:46 +05:30
Pulkit Sharma
834eb0c934 add Sidebar tests 2025-03-29 22:31:57 +05:30
cliffhall
054741be03 Run prettier. 2025-03-29 12:36:03 -04:00
Cliff Hall
eaa8055fd1 Merge branch 'main' into fix-214 2025-03-29 12:34:20 -04:00
Pulkit Sharma
9e1186f5ac Document configuration in Readme and add TSDoc for the same. 2025-03-29 09:40:13 +05:30
Pulkit Sharma
81c0ef29ab Merge branch 'main' into main 2025-03-29 09:11:01 +05:30
Ola Hungerford
75537c7cae Merge pull request #218 from cliffhall/fix-rules-of-hooks-warning
Fix ESLint rules-of-hooks warnings
2025-03-28 20:01:23 -07:00
Cliff Hall
dbaa731097 Merge branch 'main' into fix-rules-of-hooks-warning 2025-03-28 17:49:40 -04:00
Cliff Hall
dd0434c4ed Merge pull request #207 from samuel871211/perf_useTheme
perf: add `useMemo` to the return value of `useTheme`
2025-03-28 17:47:59 -04:00
Cliff Hall
ed31f9893f Merge branch 'main' into perf_useTheme 2025-03-28 17:46:00 -04:00
Cliff Hall
38fb710f2f Merge pull request #211 from cgoinglove/feat/json-view-component
feat: Add JSON View Component
2025-03-28 17:45:22 -04:00
Cliff Hall
240c67037c Merge branch 'main' into feat/json-view-component 2025-03-28 17:32:41 -04:00
Cliff Hall
02155570df Merge branch 'main' into cleanup-old-transports 2025-03-28 16:34:21 -04:00
cliffhall
7227909df3 Fix spurious linebreak 2025-03-28 16:03:39 -04:00
cliffhall
84335ae5f4 Remove else block wrapper for final component return to reduce indenting and hopefully make the PR diff easier to approve. 2025-03-28 15:57:11 -04:00
Pulkit Sharma
8486696240 Merge branch 'main' of github.com:pulkitsharma07/inspector 2025-03-29 01:23:29 +05:30
Pulkit Sharma
6a6b15ab45 don't disable rules-of-hooks 2025-03-29 01:22:35 +05:30
Cliff Hall
804a144ffb Merge branch 'main' into fix-rules-of-hooks-warning 2025-03-28 15:20:11 -04:00
Cliff Hall
1d4ca435b8 Merge branch 'main' into fix-214 2025-03-28 12:32:59 -04:00
cliffhall
1b754f52ca This fixes #214 where when the inspector is started, it can report that the inspector is up, when in fact it isn't because the address is already in use. It catches this condition, as well as the condition where the proxy server port is in use, reports it, and exits.
* In bin/cli.js
  - in the delay function, have the setTimeout return a true value.
  - try the server's spawnPromise call and within the try block, use Promise.race to get the return value of the first promise to resolve. If the server is up, it will not resolve and the 2 second delay will resolve with true, telling us the server is ok. Any error will have been reported by the server startup process, so we will not pile on with more output in the catch block.
  - If the server started ok, then we will await the spawnPromise call for starting the client. If the client fails to start it will report and exit, otherwise we are done and both servers are running and have reported as much. If an error is caught and it isn't SIGINT or if process.env.DEBUG is true then the error will be thrown before exiting.
* In client/bin/cli.js
  - add a "listening" handler to the server, logging that the MCP inspector is up at the given port
  - Add an "error" handler to the server that reports  that the client port is in use if the error message includes "EADDRINUSE", otherwise throw the error so the entire contents can be seen.
* In server/src/index.ts
  - add a "listening" handler to the server, logging that the Proxy server is up at the given port
  - Add an "error" handler to the server that reports  that the server port is in use if the error message includes "EADDRINUSE", otherwise throw the error so the entire contents can be seen.
* In package.json
  - in preview script
    - add --port 5173 to start the client on the proper port. This was useful in getting an instance of the client running before trying the start script. otherwise it starts on 4173
2025-03-28 11:59:21 -04:00
Ola Hungerford
e47b1d8f4d Merge pull request #200 from morinokami/patch-1
Restructure link buttons in sidebar to respect theme
2025-03-28 06:50:47 -07:00
Shinya Fujino
d2e211a597 Update Sidebar component icons to use 'text-foreground' for better visibility 2025-03-28 22:13:31 +09:00
Ola Hungerford
205e70736c Merge pull request #191 from nathanArseneau/show-all-notifications
Refactor notification handling to include all notifications
2025-03-28 06:04:39 -07:00
Shinya Fujino
827d867aae Merge branch 'main' into patch-1 2025-03-28 21:01:22 +09:00
Simon Knott
da0c855ef5 adapt title 2025-03-28 09:45:17 +01:00
cgoing
8180b0bd6f refactor: JsonEditor 2025-03-28 15:16:17 +09:00
yusheng chen
f09d2b6096 style: prettier format file client/src/lib/useTheme.ts 2025-03-28 07:05:22 +08:00
Cliff Hall
f846c154f5 Merge branch 'main' into perf_useTheme 2025-03-27 17:10:02 -04:00
Cliff Hall
9244ecf859 Merge branch 'main' into show-all-notifications 2025-03-27 16:42:44 -04:00
cliffhall
0891077402 This fixes the linter's warning that Hooks must be run in order each time.
* In App.tsx
  - move the conditional that returns suspense if the path is oauth/callback to the end of the component after all hooks, rendering either suspense or the normal component.
  - move handleApproveSampling and handleRejectSampling functions down below all the hooks for clarity. There are a lot of hooks so finding the end of them is a scroll, and these function constants aren't referenced until the rendering section below anyway.
2025-03-27 15:59:41 -04:00
Simon Knott
353d6b549b fix: clean up previous transport processes 2025-03-27 09:52:35 +01:00
cgoing
18ca6e28a7 Use <pre> tag inside JsonView component for consistency 2025-03-27 12:55:36 +09:00
cgoing
2d252a389c Remove escapeUnicode function from ToolsTab.tsx 2025-03-27 11:42:39 +09:00