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
Cliff Hall
9244ecf859
Merge branch 'main' into show-all-notifications
2025-03-27 16:42:44 -04:00
Cliff Hall
4d4bb9110c
Merge pull request #208 from olaservo/update-readme
...
Add note on security considerations for proxy server
2025-03-26 17:43:52 -04:00
Cliff Hall
0d17082480
Merge branch 'main' into update-readme
2025-03-26 17:41:59 -04:00
Cliff Hall
cdf1f1508a
Merge pull request #203 from olaservo/update-prism
...
Bump prismjs from 1.29.0 to 1.30.0
2025-03-26 16:22:54 -04:00
Cliff Hall
b97233f43a
Merge branch 'main' into update-prism
2025-03-26 15:29:36 -04:00
Cliff Hall
00118f7cf9
Merge branch 'main' into show-all-notifications
2025-03-25 15:31:46 -04:00
Ola Hungerford
806cdb204f
Merge pull request #186 from max-stytch/patch-1
...
fix: Prefer 127.0.0.1 over localhost
2025-03-25 09:13:16 -07:00
Max Gerber
029823bb92
Merge branch 'main' into patch-1
2025-03-25 11:05:42 -04:00
Ola Hungerford
88ffb5087e
Merge pull request #210 from olaservo/add-ui-tests
...
Add preliminary UI tests
2025-03-25 07:03:30 -07:00
Ola Hungerford
c031831e71
Merge pull request #213 from olaservo/release/0.7.0
...
Bump version to 0.7.0
0.7.0
2025-03-25 03:40:18 -07:00
Ola Hungerford
16b38071e7
Bump version to 0.7.0
2025-03-24 12:36:17 -07:00
Ola Hungerford
25f5bb7620
Merge branch 'main' into add-ui-tests
2025-03-24 12:01:41 -07:00
Ola Hungerford
731cee8511
Merge pull request #206 from markacianfrani/main
...
fix(sidebar): maintain order when changing values
2025-03-24 12:01:12 -07:00
Mark Anthony Cianfrani
30e7a4d7b7
Merge branch 'main' into main
2025-03-24 12:59:13 -04:00
Mark Anthony Cianfrani
f2f209dbd3
fix(sidebar): maintain order when changing values
2025-03-24 12:56:41 -04:00
Ola Hungerford
65a0d46816
Fix formatting
2025-03-24 09:47:34 -07:00
Ola Hungerford
951db44bad
Merge branch 'add-ui-tests' of https://github.com/olaservo/inspector into add-ui-tests
2025-03-24 09:43:52 -07:00
Ola Hungerford
379486b5ea
Add failing test for pull/206
2025-03-24 09:43:48 -07:00
Ola Hungerford
40213bb1ed
Merge branch 'main' into add-ui-tests
2025-03-24 09:30:35 -07:00
Ola Hungerford
f8b7b88a25
Merge pull request #198 from nathanArseneau/error-when-switching-Tools-without-changing-value
...
fix: set default value for input fields in ToolsTab component
2025-03-24 09:29:05 -07:00
Ola Hungerford
b7fa23676a
Fix formatting
2025-03-24 09:27:51 -07:00
Ola Hungerford
a7f25153c4
Add failing ToolsTab test that should get fixed with pull/198
2025-03-24 09:18:58 -07:00
Ola Hungerford
fa3e2867c9
Fix formatting
2025-03-24 09:07:53 -07:00
Ola Hungerford
5735f2347a
Add tests related to issues/187 to confirm fixed
2025-03-24 08:52:45 -07:00
Ola Hungerford
cab1ed3dd8
Add some json form tests and handle css in ui tests
2025-03-24 08:28:28 -07:00
Ola Hungerford
61e229a552
Add sidebar tests
2025-03-23 13:35:24 -07:00
Ola Hungerford
451704471c
Remove setup
2025-03-23 13:25:06 -07:00
Ola Hungerford
668cc915e4
Add jest-dom types
2025-03-23 13:22:31 -07:00
Ola Hungerford
85f0e21679
Use commonjs for jest
2025-03-23 13:22:13 -07:00
Ola Hungerford
fc76a7c7d4
Add setup file and remove old testing mock that no longer exists from moduleNameMapper
2025-03-23 12:46:30 -07:00
Ola Hungerford
210975e385
Add test dependencies
2025-03-23 12:44:30 -07:00
Ola Hungerford
ec73831487
Fix formatting
2025-03-23 08:30:06 -07:00
Ola Hungerford
9b0da1f892
Add note on security considerations for proxy server
2025-03-23 08:19:52 -07:00
Ola Hungerford
2890e036ed
Merge pull request #201 from Larmyliu/feat/proxyServerUrl
...
Update Vite configuration to enable host access and use `window.location.hostname` for Inspector URL
2025-03-22 21:13:39 -07:00
Ola Hungerford
008204fda5
Merge pull request #193 from seuros/main
...
feat: Add utility function to escape Unicode characters in tool results
2025-03-22 19:14:16 -07:00
Abdelkader Boudih
af44efb236
chore: extract utils escapeUnicode
2025-03-22 16:25:33 +00:00
Larmyliu
51f3135c76
Merge branch 'main' into feat/proxyServerUrl
2025-03-23 00:11:58 +08:00
Abdelkader Boudih
3488bdb613
feat: Add utility function to escape Unicode characters in tool results
2025-03-21 22:21:26 +00:00
Ola Hungerford
043f6040c6
Merge pull request #174 from ryanrozich/fix-env-var-parsing
...
Fix environment variable parsing to handle values with equals signs
2025-03-21 09:01:09 -07:00
Ola Hungerford
74d0fcf5a3
Merge branch 'main' into fix-env-var-parsing
2025-03-21 08:39:32 -07:00
Ola Hungerford
de8795106c
Merge pull request #189 from cliffhall/add-log-level-setting
...
Add log level setting in UI
2025-03-21 08:38:58 -07:00
Cliff Hall
c726c53b00
Merge branch 'main' into add-log-level-setting
2025-03-21 11:06:31 -04:00
Ola Hungerford
20db043b40
Merge branch 'main' into fix-env-var-parsing
2025-03-21 07:07:04 -07:00
Ola Hungerford
dcbd1dad41
Bump prismjs from 1.29.0 to 1.30.0 to address
2025-03-21 06:54:46 -07:00